Changeset 199 for trunk/lib/Node.cc


Ignore:
Timestamp:
Sep 9, 2006, 12:42:09 PM (16 years ago)
Author:
Peter Johansson
Message:

refs #87 moved print_header function to html_utility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r185 r199  
    5454  void Node::path_anchor(std::ostream& os) const
    5555  {
     56    os << "<h2 class=\"path\">\n";
    5657    std::vector<std::string> words;
    5758    words.reserve(level_+1);
     
    6667    anchor(os,href(), words.back(), level_+2-words.size(),
    6768           "View " + words.back());
     69    os << "\n</h2>\n";
    6870  }
    6971
     
    103105
    104106
    105   void Node::print_header(std::ostream& os) const
    106   {
    107     os << "<!DOCTYPE html\n"
    108        << "PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n"
    109        << "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
    110        << "<html xmlns=\"http://www.w3.org/1999/xhtml\""
    111        << " xml:lang=\"en\" lang=\"en\"><head>\n"
    112        << "<head>\n"
    113        << "<title> svndigest " << name() << "</title>\n"
    114        << "</head>\n"
    115        << "<link rel=\"stylesheet\" "
    116        << "href=\"";
    117     for (u_int i=0; i<level_; ++i)
    118       os << "../";
    119     os << "svndigest.css\" type=\"text/css\" />\n"
    120        << "<body>\n"
    121        << "<div id=\"menu\">"
    122        << "<ul><li></li>"
    123        << "<li>";
    124     anchor(os, "index.html", "Home", level_, "Main page");
    125     os << "</li>"
    126        << "</ul></div>"
    127        << "<div id=\"main\">\n"
    128        << "<h2 class=\"path\">\n";
    129     path_anchor(os);
    130     os << "\n</h2>\n";
    131   }
    132 
    133107}} // end of namespace svndigest and namespace theplu
Note: See TracChangeset for help on using the changeset viewer.