Changeset 181


Ignore:
Timestamp:
Sep 3, 2006, 9:44:28 AM (13 years ago)
Author:
Peter Johansson
Message:

using anchor function

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Directory.cc

    r176 r181  
    2424#include "Directory.h"
    2525#include "File.h"
     26#include "html_utility.h"
    2627#include "Node.h"
    2728#include "SVN.h"
     
    142143    if (level_){
    143144      os << "<tr class=\"light\">\n";
    144       os << "<td colspan=\"6\"><a href=\"../index.html\">../</a></td>\n";
    145       os << "</tr>\n";
     145      os << "<td colspan=\"6\">";
     146      anchor(os, "../index.html", "../");
     147      os << "</td>\n</tr>\n";
    146148      dark=!dark;
    147149    }
  • trunk/lib/File.cc

    r176 r181  
    2323
    2424#include "File.h"
     25#include "html_utility.h"
    2526#include "Stats.h"
    2627
     
    7980    bool dark=false;
    8081    os << "<tr class=\"light\">\n";
    81     os << "<td colspan=\"5\"><a href=\"index.html\">../</a></td>\n";
    82     os << "</tr>\n";
     82    os << "<td colspan=\"5\">";
     83    anchor(os, "index.html", "../");
     84    os << "</td>\n</tr>\n";
    8385    dark=!dark;
    8486   
  • trunk/lib/Node.cc

    r177 r181  
    8888    timeinfo =  gmtime ( &rawtime );
    8989    os << "<p align=center><font size=-2>\nGenerated on "
    90        << asctime (timeinfo) << " (UTC) "
    91        << "by <a href=http://lev.thep.lu.se/trac/svndigest/>"
    92        << PACKAGE_STRING << "</a>"
    93        << "</font>\n</p>\n</div>\n</body>\n</html>\n";
     90       << asctime (timeinfo) << " (UTC) by ";
     91    anchor(os, "http://lev.thep.lu.se/trac/svndigest/", PACKAGE_STRING);
     92    os << "</font>\n</p>\n</div>\n</body>\n</html>\n";
    9493  }
    9594
     
    113112       << "<div id=\"menu\">"
    114113       << "<ul><li></li>"
    115        << "<li><a href=\"";
    116     for (u_int i=0; i<level_; ++i)
    117       os << "../";
    118     os << "index.html\">Home</a></li>"
     114       << "<li>";
     115    anchor(os, "index.html", "Home", level_, "Main page");
     116    os << "</li>"
    119117       << "</ul></div>"
    120118       << "<div id=\"main\">\n"
Note: See TracChangeset for help on using the changeset viewer.