Ignore:
Timestamp:
Sep 9, 2006, 12:55:52 PM (15 years ago)
Author:
Peter Johansson
Message:

refs #87 moved print_footer to html_utility.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/html_utility.cc

    r199 r200  
    2323
    2424#include "utility.h"
     25#include <config.h> // this header file is created by configure
    2526
    2627#include <fstream>
    27 #include <iostream> // remove this when 'blame' is removed
     28#include <iostream>
    2829#include <sstream>
    2930#include <stdexcept>
     
    177178
    178179
     180  void print_footer(std::ostream& os)
     181  {
     182    time_t rawtime;
     183    struct tm * timeinfo;
     184    time ( &rawtime );
     185    timeinfo =  gmtime ( &rawtime );
     186    os << "<p align=center><font size=-2>\nGenerated on "
     187       << asctime (timeinfo) << " (UTC) by ";
     188    anchor(os, "http://lev.thep.lu.se/trac/svndigest/", PACKAGE_STRING, 0, "");
     189    os << "</font>\n</p>\n</div>\n</body>\n</html>\n";
     190  }
     191
     192
    179193  void print_header(std::ostream& os, const std::string& title, u_int level)
    180194  {
Note: See TracChangeset for help on using the changeset viewer.