Changeset 175 for trunk/lib/utility.cc


Ignore:
Timestamp:
Sep 2, 2006, 5:22:52 AM (16 years ago)
Author:
Peter Johansson
Message:

fixes #53

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.cc

    r174 r175  
    5555      }
    5656    return access(path.c_str(),mode);
     57  }
     58
     59
     60  void anchor(std::ostream& os, const std::string& href,
     61              const std::string& name, u_int level,
     62              const std::string& title)
     63  {
     64    os << "<a title=\"" << title << "\" href=\"" ;
     65    for (size_t i=0; i<level; ++i)
     66      os << "../";
     67    os << href << "\">" << name << "</a>";
    5768  }
    5869
     
    148159    s << "table.listings tbody td { text-align: left }\n";
    149160    s << "\n";
     161    s << ".sep { color: #666}\n";
    150162    s << "\n";
    151163    s << "\n";
Note: See TracChangeset for help on using the changeset viewer.