Changeset 182
- Timestamp:
- Sep 3, 2006, 10:46:34 AM (17 years ago)
- Location:
- trunk/lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Directory.cc
r181 r182 117 117 118 118 119 const std::string Directory::node_type(void) const 120 { 121 return std::string("directory"); 122 } 123 124 119 125 void Directory::print(const bool verbose) const 120 126 { … … 143 149 if (level_){ 144 150 os << "<tr class=\"light\">\n"; 145 os << "<td c olspan=\"6\">";151 os << "<td class=\"directory\" colspan=\"6\">"; 146 152 anchor(os, "../index.html", "../"); 147 153 os << "</td>\n</tr>\n"; -
trunk/lib/Directory.h
r176 r182 70 70 std::string href(void) const; 71 71 72 /// 73 /// @return directory 74 /// 75 const std::string node_type(void) const; 76 72 77 const Stats& parse(const bool verbose=false); 73 78 -
trunk/lib/File.cc
r181 r182 45 45 46 46 47 const std::string File::node_type(void) const 48 { 49 return std::string("file"); 50 } 51 52 47 53 const Stats& File::parse(const bool verbose) 48 54 { … … 80 86 bool dark=false; 81 87 os << "<tr class=\"light\">\n"; 82 os << "<td c olspan=\"5\">";88 os << "<td class=\"directory\" colspan=\"5\">"; 83 89 anchor(os, "index.html", "../"); 84 90 os << "</td>\n</tr>\n"; -
trunk/lib/File.h
r176 r182 48 48 49 49 /// 50 /// @return file 51 /// 52 const std::string node_type(void) const; 53 54 /// 50 55 /// @brief Parsing out information from svn repository 51 56 /// -
trunk/lib/Node.cc
r181 r182 67 67 { 68 68 os << "<tr class=\"" << css_class << "\">\n" 69 << "<td >";69 << "<td class=\"" << node_type() << "\">"; 70 70 if (binary()) 71 71 os << name() << " (<i>binary</i>)"; -
trunk/lib/Node.h
r177 r182 89 89 90 90 /// 91 /// @return file or directory 92 /// 93 virtual const std::string node_type(void) const=0; 94 95 /// 91 96 /// @return 92 97 /// -
trunk/lib/html_utility.cc
r179 r182 169 169 s << "table.listings tbody tr:hover { background: #eed }\n"; 170 170 s << "table.listings tbody td { text-align: left }\n"; 171 s << "table.listings tbody td.directory { font-weight: bold }\n"; 171 172 s << "\n"; 172 173 s << ".sep { color: #666}\n";
Note: See TracChangeset
for help on using the changeset viewer.