@matheusbsbs / matheus-bagliano / commits / 63e4220b75
Fork 0

gitweb: Replace some presentational HTML by CSS

Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed Aug 22, 2006 at 12:38 UTC 63e4220b75d4fd7c8820209193641f3207d24238
2 files changed +12 -10
gitweb/gitweb.css
+2 -1
@@ -42,6 +42,7 @@ div.page_nav a:visited {
42
43 div.page_path {
44 padding: 8px;
45 + font-weight: bold;
46 border: solid #d9d8d1;
47 border-width: 0px 0px 1px;
48 }
@@ -120,7 +121,7 @@ a.list {
121 color: #000000;
122 }
123
123 -a.subject {
124 +a.subject, a.name {
125 font-weight: bold;
126 }
127
gitweb/gitweb.perl
+10 -9
@@ -1267,17 +1267,17 @@ sub git_print_page_path {
1267 my $hb = shift;
1268
1269 if (!defined $name) {
1270 - print "<div class=\"page_path\"><b>/</b></div>\n";
1270 + print "<div class=\"page_path\">/</div>\n";
1271 } elsif (defined $type && $type eq 'blob') {
1272 - print "<div class=\"page_path\"><b>";
1272 + print "<div class=\"page_path\">";
1273 if (defined $hb) {
1274 print $cgi->a({-href => href(action=>"blob_plain", hash_base=>$hb, file_name=>$file_name)}, esc_html($name));
1275 } else {
1276 print $cgi->a({-href => href(action=>"blob_plain", file_name=>$file_name)}, esc_html($name));
1277 }
1278 - print "</b><br/></div>\n";
1278 + print "<br/></div>\n";
1279 } else {
1280 - print "<div class=\"page_path\"><b>" . esc_html($name) . "</b><br/></div>\n";
1280 + print "<div class=\"page_path\">" . esc_html($name) . "<br/></div>\n";
1281 }
1282 }
1283
@@ -1626,7 +1626,7 @@ sub git_tags_body {
1626 print "<td><i>$tag{'age'}</i></td>\n" .
1627 "<td>" .
1628 $cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'}),
1629 - -class => "list"}, "<b>" . esc_html($tag{'name'}) . "</b>") .
1629 + -class => "list name"}, esc_html($tag{'name'})) .
1630 "</td>\n" .
1631 "<td>";
1632 if (defined $comment) {
@@ -1680,7 +1680,7 @@ sub git_heads_body {
1680 print "<td><i>$tag{'age'}</i></td>\n" .
1681 ($tag{'id'} eq $head ? "<td class=\"current_head\">" : "<td>") .
1682 $cgi->a({-href => href(action=>"shortlog", hash=>$tag{'name'}),
1683 - -class => "list"}, "<b>" . esc_html($tag{'name'}) . "</b>") .
1683 + -class => "list name"},esc_html($tag{'name'})) .
1684 "</td>\n" .
1685 "<td class=\"link\">" .
1686 $cgi->a({-href => href(action=>"shortlog", hash=>$tag{'name'})}, "shortlog") . " | " .
@@ -2729,7 +2729,8 @@ sub git_search {
2729 print "<td title=\"$co{'age_string_age'}\"><i>$co{'age_string_date'}</i></td>\n" .
2730 "<td><i>" . esc_html(chop_str($co{'author_name'}, 15, 5)) . "</i></td>\n" .
2731 "<td>" .
2732 - $cgi->a({-href => href(action=>"commit", hash=>$co{'id'}) -class => "list"}, "<b>" . esc_html(chop_str($co{'title'}, 50)) . "</b><br/>");
2732 + $cgi->a({-href => href(action=>"commit", hash=>$co{'id'}), -class => "list subject"},
2733 + esc_html(chop_str($co{'title'}, 50)) . "<br/>");
2734 my $comment = $co{'comment'};
2735 foreach my $line (@$comment) {
2736 if ($line =~ m/^(.*)($searchtext)(.*)$/i) {
@@ -2782,8 +2783,8 @@ sub git_search {
2783 print "<td title=\"$co{'age_string_age'}\"><i>$co{'age_string_date'}</i></td>\n" .
2784 "<td><i>" . esc_html(chop_str($co{'author_name'}, 15, 5)) . "</i></td>\n" .
2785 "<td>" .
2785 - $cgi->a({-href => href(action=>"commit", hash=>$co{'id'}), -class => "list"}, "<b>" .
2786 - esc_html(chop_str($co{'title'}, 50)) . "</b><br/>");
2786 + $cgi->a({-href => href(action=>"commit", hash=>$co{'id'}), -class => "list subject"},
2787 + esc_html(chop_str($co{'title'}, 50)) . "<br/>");
2788 while (my $setref = shift @files) {
2789 my %set = %$setref;
2790 print $cgi->a({-href => href(action=>"blob", hash=>$set{'id'}, hash_base=>$co{'id'}, file_name=>$set{'file'}), class => "list"},