Changeset 831


Ignore:
Timestamp:
Oct 29, 2009, 4:24:49 AM (12 years ago)
Author:
Peter Johansson
Message:

fixes #240 - explain linetype coloring in blame output

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r816 r831  
    222222  {
    223223    os << "<br /><h3>" << local_path() << "</h3>";
     224    os << "<div class=\"blame_legend\">\n";
     225    os << "<dl>\n";
     226    os << "<dt class=\"code\"></dt><dd>Code</dd>\n";
     227    os << "<dt class=\"comment\"></dt><dd>Comments</dd>\n";
     228    os << "<dt class=\"other\"></dt><dd>Other</dd>\n";
     229    os << "</dl>\n</div>\n";
    224230    os << "<table class=\"blame\">\n";
    225231    os << "<thead>\n";
  • trunk/lib/css.cc

    r760 r831  
    245245
    246246    s << ".sep { color: #666}\n";
     247    s << "div.blame_legend .code { background: #cfcfff; }\n"
     248      << "div.blame_legend .comment { background: #e8e8ff; }\n"
     249      << "div.blame_legend .other { background: #ffffff; }\n"
     250      << "div.blame_legend {\n"
     251      << "float: left;\n"
     252      << "font-size: 9px;\n"
     253      << "margin: 1em 0;\n"
     254      << "padding: .5em;\n"
     255      << "} \n"
     256      << "div.blame_legend dt {\n"
     257      << "background: #fff;\n"
     258      << "border: 1px solid #999;\n"
     259      << "float: left;\n"
     260      << "margin: .1em .5em .1em 2em;\n"
     261      << "overflow: hidden;\n"
     262      << "width: .8em; height: .8em;\n"
     263      << "}\n"
     264      << "div.blame_legend dl, div.blame_legend dd {\n"
     265      << "display: inline;\n"
     266      << "float: left;\n"
     267      << "padding: 0;\n"
     268      << "margin: 0;\n"
     269      << "margin-right: 1.5em;\n"
     270      << "}\n";
    247271    s.close();
    248272  }
Note: See TracChangeset for help on using the changeset viewer.