Changeset 893


Ignore:
Timestamp:
Nov 26, 2009, 7:09:02 AM (11 years ago)
Author:
Peter Johansson
Message:

fixes #400. Make url on first page an anchor if url is http (or https)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/first_page.cc

    r860 r893  
    9393       << "</th></tr></thead>\n"
    9494       << "<tbody>\n"
    95        << "<tr><td>URL:</td><td>"
    96        << url << "</td></tr>\n"
     95       << "<tr><td>URL:</td><td>";
     96    if (url.size()>=4 && url.substr(0,4)=="http")
     97      os << anchor(url, url);
     98    else
     99      os << url;
     100    os << "</td></tr>\n"
    97101       << "<tr><td>First Revision Date:</td><td>"
    98102       << begin(timefmt) << "</td></tr>\n"
Note: See TracChangeset for help on using the changeset viewer.