Ignore:
Timestamp:
Jan 3, 2010, 4:05:25 AM (12 years ago)
Author:
Peter Johansson
Message:

refs #405. Move replicated code to a function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/first_page.cc

    r978 r1005  
    44  Copyright (C) 2006 Peter Johansson
    55  Copyright (C) 2007, 2008, 2009 Jari Häkkinen, Peter Johansson
     6  Copyright (C) 2010 Peter Johansson
    67
    78  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    232233    stats.plot_summary(name);
    233234    os << "<div class=\"main\">\n";
    234     os << "<object data='" << name << "' type='image/svg+xml' width='600'>\n"
    235        << "<embed src='" << name << "' type='image/svg+xml' width='600' />\n"
    236        << "</object>\n";
     235    os << image("svg", name);
    237236    os << "</div>";
    238237
Note: See TracChangeset for help on using the changeset viewer.