- Timestamp:
- Jun 28, 2007, 2:19:31 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Directory.cc
r380 r400 163 163 local_path()+"/index.html"); 164 164 path_anchor(os); 165 os << "<p align=center>\n<img src='";165 os << "<p class=\"plot\">\n<img src='"; 166 166 for (size_t i=0; i<level_; ++i) 167 167 os << "../"; … … 171 171 else 172 172 os << imagedir << "/index.png"; 173 os << "' alt='[plot]' border=0><br>\n";173 os << "' alt='[plot]' /></p>\n"; 174 174 os << "<h3>File Summary"; 175 175 if (user!="all") … … 238 238 os << "</table>\n"; 239 239 print_author_summary(os, line_type, log); 240 os << " </p>\n";240 os << "\n"; 241 241 print_footer(os); 242 242 os.close(); -
trunk/lib/File.cc
r399 r400 84 84 void File::print_blame(std::ofstream& os) const 85 85 { 86 os << "<br ><h3>Blame Information</h3>";86 os << "<br /><h3>Blame Information</h3>"; 87 87 os << "<table class=\"blame\">\n"; 88 88 os << "<thead>\n"; … … 115 115 std::string color; 116 116 if (using_dates) 117 color =hex(static_cast<int>(k*Date(blame.date()).seconds()+m),2);117 color = hex(static_cast<int>(k*Date(blame.date()).seconds()+m),2); 118 118 else 119 color =hex(static_cast<int>(k*blame.revision()+m),2);119 color = hex(static_cast<int>(k*blame.revision()+m),2); 120 120 os << "<tr>\n<td class=\"number\"><font color=\"#" << color 121 121 << color << color << "\">" << blame.revision() 122 << "</td>\n<td class=\"date\"><font color=\"#" << color 123 << color << color << "\">" << Date(blame.date())("%e %b %y") 124 << "</td>\n<td class=\"author\">"; 122 << "</font></td>\n<td class=\"date\"><font color=\"#" << color 123 << color << color << "\">" 124 << Date(blame.date())("%e %b %y") 125 << "</font></td>\n<td class=\"author\">"; 125 126 hs << blame.author(); 126 127 os << "</td>\n<td class=\"number\">" << blame.line_no()+1 … … 261 262 path_anchor(os); 262 263 263 os << "<p align=center>\n<img src='";264 os << "<p class=\"plot\">\n<img src='"; 264 265 for (size_t i=0; i<level_; ++i) 265 266 os << "../"; … … 269 270 else 270 271 os << imagefile; 271 os << "' alt='[plot]' border=0>\n</p>";272 os << "' alt='[plot]' />\n</p>"; 272 273 273 274 print_author_summary(os, line_type, log); 274 os << " </p>\n";275 os << "\n"; 275 276 276 277 print_blame(os); -
trunk/lib/Trac.cc
r317 r400 205 205 if (node.empty()) 206 206 href = std::string(Configuration::instance().trac_root()+ 207 "changeset?new="+new_rev+"& old="+old_rev);207 "changeset?new="+new_rev+"&old="+old_rev); 208 208 else 209 209 href = std::string(Configuration::instance().trac_root()+ 210 "changeset?new="+new_rev+"& new_path="+node+"&old="+211 old_rev+"&old_path="+node);210 "changeset?new="+new_rev+"&new_path="+node+ 211 "&old="+old_rev+"&old_path="+node); 212 212 hs_.stream() << anchor(href, anchor_text(first_orig,first, last_trunc)); 213 213 return true; … … 240 240 } 241 241 std::string href(Configuration::instance().trac_root()+ 242 "changeset?new_path="+new_path+"& old_path="+old_path);242 "changeset?new_path="+new_path+"&old_path="+old_path); 243 243 hs_.stream() << anchor(href, anchor_text(first_orig,first, last_trunc)); 244 244 return true; … … 282 282 283 283 std::string href(Configuration::instance().trac_root()+ 284 "changeset?new="+new_rev+"& new_path="+new_path+285 "& old="+old_rev+"&old_path="+old_path);284 "changeset?new="+new_rev+"&new_path="+new_path+ 285 "&old="+old_rev+"&old_path="+old_path); 286 286 hs_.stream() << anchor(href, anchor_text(first_orig,first, last_trunc)); 287 287 return true; … … 327 327 } 328 328 std::string href(Configuration::instance().trac_root()+"log/?rev="+ 329 rev+"& stop_rev="+stop_rev);329 rev+"&stop_rev="+stop_rev); 330 330 hs_.stream() << anchor(href, anchor_text(first_orig,first, last_trunc)); 331 331 return true; … … 358 358 ++first; // eating ']' 359 359 std::string href(Configuration::instance().trac_root()+"log/?rev="+ 360 rev+"& stop_rev="+stop_rev);360 rev+"&stop_rev="+stop_rev); 361 361 hs_.stream() << anchor(href, anchor_text(first_orig,first, last_trunc)); 362 362 return true; … … 395 395 if (!node.empty() && node[0]=='/') 396 396 href = std::string(Configuration::instance().trac_root()+"log"+node+ 397 "?rev="+rev+"& stop_rev="+stop_rev);397 "?rev="+rev+"&stop_rev="+stop_rev); 398 398 else 399 399 href = std::string(Configuration::instance().trac_root()+"log/"+node+ 400 "?rev="+rev+"& stop_rev="+stop_rev);400 "?rev="+rev+"&stop_rev="+stop_rev); 401 401 402 402 hs_.stream() << anchor(href, anchor_text(first_orig,first, last_trunc)); -
trunk/lib/css.cc
r380 r400 149 149 s << "}\n\n"; 150 150 151 152 s << "p.plot { text-align: center; }\n"; 153 s << "p.plot img { border: 0; }\n"; 154 155 s << "p.footer {\n"; 156 s << "text-align: center;\n"; 157 s << "font-size: 70%;\n"; 158 s << "}\n\n"; 159 151 160 s << "table.blame {\n"; 152 161 s << " clear: both;\n"; -
trunk/lib/first_page.cc
r378 r400 24 24 #include "first_page.h" 25 25 26 #include "html_utility.h"27 28 26 #include "Commitment.h" 29 27 #include "Configuration.h" 30 28 #include "Date.h" 31 29 #include "HtmlStream.h" 30 #include "html_utility.h" 32 31 #include "Stats.h" 33 32 #include "SVNlog.h" … … 201 200 } 202 201 203 os << "</td></tr> ";202 os << "</td></tr>\n"; 204 203 ++a; 205 204 ++d; … … 216 215 stats.plot_summary(name); 217 216 os << "<div class=\"main\">\n"; 218 os << "<img src='" << name << "' alt='[plot]' >";217 os << "<img src='" << name << "' alt='[plot]'/>"; 219 218 os << "</div>"; 220 219 } -
trunk/lib/html_utility.cc
r376 r400 57 57 { 58 58 Date date; 59 os << "<p align=center><font size=-2>\nGenerated on "59 os << "<p class=\"footer\">\nGenerated on " 60 60 << date("%a %b %d %H:%M:%S %Y") << " (UTC) by " 61 61 << anchor("http://lev.thep.lu.se/trac/svndigest/", 62 62 PACKAGE_STRING, 0, "") 63 << " </font>\n</p>\n</div>\n</body>\n</html>\n";63 << "\n</p>\n</div>\n</body>\n</html>\n"; 64 64 } 65 65 … … 72 72 << "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" 73 73 << "<html xmlns=\"http://www.w3.org/1999/xhtml\"" 74 << " xml:lang=\"en\" lang=\"en\"> <head>\n"74 << " xml:lang=\"en\" lang=\"en\">\n" 75 75 << "<head>\n" 76 76 << "<title> " << title << " - svndigest</title>\n" 77 << "</head>\n"78 77 << "<link rel=\"stylesheet\" " 79 78 << "href=\""; … … 81 80 os << "../"; 82 81 os << "svndigest.css\" type=\"text/css\" />\n" 82 << "</head>\n" 83 83 << "<body>\n" 84 84 << "<div id=\"menu\">" -
trunk/test/trac.cc
r317 r400 53 53 conf.trac_root()+"ticket/123#comment:1", my_out); 54 54 ok &= test("diff:trunk@12:123", conf.trac_root()+ 55 "changeset?new=123&new_path=trunk&old=12&old_path=trunk", 55 "changeset?new=123&new_path=trunk&"+ 56 "old=12&old_path=trunk", 56 57 my_out); 57 58 ok &= test("diff:tags/1.0", conf.trac_root()+ 58 "changeset?new_path=tags/1.0& old_path=tags/1.0",59 "changeset?new_path=tags/1.0&old_path=tags/1.0", 59 60 my_out); 60 61 ok &= test("diff:tags/1.0//tags/1.0.1", conf.trac_root()+ 61 "changeset?new_path=tags/1.0.1& old_path=tags/1.0",62 "changeset?new_path=tags/1.0.1&old_path=tags/1.0", 62 63 my_out); 63 64 ok &= test("diff:tags/1.0@123//trunk@236", conf.trac_root()+ 64 "changeset?new=236&new_path=trunk&old=123&old_path=tags/1.0", 65 "changeset?new=236&new_path=trunk&"+ 66 "old=123&old_path=tags/1.0", 65 67 my_out); 66 ok &= test("r123:236", conf.trac_root()+"log/?rev=236&stop_rev=123", my_out); 67 ok &= test("[123:236]",conf.trac_root()+"log/?rev=236&stop_rev=123", my_out); 68 ok &= test("r123:236", conf.trac_root()+"log/?rev=236&stop_rev=123", 69 my_out); 70 ok &= test("[123:236]",conf.trac_root()+"log/?rev=236&stop_rev=123", 71 my_out); 68 72 ok &= test("log:trunk@123:236", 69 conf.trac_root()+"log/trunk?rev=236& stop_rev=123", my_out);73 conf.trac_root()+"log/trunk?rev=236&stop_rev=123", my_out); 70 74 ok &= test("milestone:1.0", conf.trac_root()+"milestone/1.0", my_out); 71 75 ok &= test("source:trunk", conf.trac_root()+"browser/trunk", my_out);
Note: See TracChangeset
for help on using the changeset viewer.