- Timestamp:
- Oct 14, 2007, 8:09:34 AM (16 years ago)
- Location:
- trunk/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/File.cc
r497 r498 251 251 else 252 252 color = hex(static_cast<int>(k*blame.revision()+m),2); 253 os << "<tr>\n<td class=\"rev\"><font color=\"#" << color 254 << color << color << "\">" << blame.revision() 253 os << "<tr>\n<td class=\"rev\">"; 254 std::stringstream color_ss; 255 color_ss << "#" << color << color << color; 256 os << "<font color=\"" << color_ss.str() << "\">" 257 << trac_revision(blame.revision(), color_ss.str()) 255 258 << "</font></td>\n<td class=\"date\"><font color=\"#" << color 256 259 << color << color << "\">" ; -
trunk/lib/css.cc
r439 r498 204 204 << "background: #ffffff; }\n"; 205 205 s << "table.blame tbody tr:hover { background: #eed; }\n"; 206 s << "table.blame tbody td a { display: block; }\n"; 206 207 s << "\n"; 207 208 -
trunk/lib/html_utility.cc
r497 r498 38 38 std::string anchor(const std::string& url, 39 39 const std::string& name, u_int level, 40 const std::string& title) 40 const std::string& title, 41 const std::string& color) 41 42 { 42 43 std::stringstream ss; … … 49 50 ss << url; 50 51 ss << "\">"; 52 if (color.size()) 53 ss << "<font color=\"" << color << "\">"; 51 54 hs << name; 55 if (color.size()) 56 ss << "</font>"; 52 57 ss << "</a>"; 53 58 return ss.str(); … … 129 134 130 135 131 std::string trac_revision(size_t r )136 std::string trac_revision(size_t r, std::string color) 132 137 { 133 138 const Configuration& conf = Configuration::instance(); … … 138 143 std::stringstream rev; 139 144 rev << r; 140 ss << anchor(conf.trac_root()+"changeset/"+rev.str(), rev.str()); 145 ss << anchor(conf.trac_root()+"changeset/"+rev.str(), rev.str(), 146 0, "View ChangeSet "+rev.str(), color); 141 147 } 142 148 return ss.str(); -
trunk/lib/html_utility.h
r439 r498 44 44 std::string anchor(const std::string& url, 45 45 const std::string& name, u_int level=0, 46 const std::string& title=""); 46 const std::string& title="", 47 const std::string& color=""); 47 48 48 49 /// … … 66 67 /// given otherwise just a string corresponding to passed parameter. 67 68 /// 68 std::string trac_revision(size_t );69 std::string trac_revision(size_t, std::string color=""); 69 70 70 71 }} // end of namespace svndigest end of namespace theplu
Note: See TracChangeset
for help on using the changeset viewer.