gitweb: Replace some presentational HTML by CSS
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
7c27801473
commit
63e4220b75
@ -42,6 +42,7 @@ div.page_nav a:visited {
|
|||||||
|
|
||||||
div.page_path {
|
div.page_path {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
font-weight: bold;
|
||||||
border: solid #d9d8d1;
|
border: solid #d9d8d1;
|
||||||
border-width: 0px 0px 1px;
|
border-width: 0px 0px 1px;
|
||||||
}
|
}
|
||||||
@ -120,7 +121,7 @@ a.list {
|
|||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.subject {
|
a.subject, a.name {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1267,17 +1267,17 @@ sub git_print_page_path {
|
|||||||
my $hb = shift;
|
my $hb = shift;
|
||||||
|
|
||||||
if (!defined $name) {
|
if (!defined $name) {
|
||||||
print "<div class=\"page_path\"><b>/</b></div>\n";
|
print "<div class=\"page_path\">/</div>\n";
|
||||||
} elsif (defined $type && $type eq 'blob') {
|
} elsif (defined $type && $type eq 'blob') {
|
||||||
print "<div class=\"page_path\"><b>";
|
print "<div class=\"page_path\">";
|
||||||
if (defined $hb) {
|
if (defined $hb) {
|
||||||
print $cgi->a({-href => href(action=>"blob_plain", hash_base=>$hb, file_name=>$file_name)}, esc_html($name));
|
print $cgi->a({-href => href(action=>"blob_plain", hash_base=>$hb, file_name=>$file_name)}, esc_html($name));
|
||||||
} else {
|
} else {
|
||||||
print $cgi->a({-href => href(action=>"blob_plain", file_name=>$file_name)}, esc_html($name));
|
print $cgi->a({-href => href(action=>"blob_plain", file_name=>$file_name)}, esc_html($name));
|
||||||
}
|
}
|
||||||
print "</b><br/></div>\n";
|
print "<br/></div>\n";
|
||||||
} else {
|
} else {
|
||||||
print "<div class=\"page_path\"><b>" . esc_html($name) . "</b><br/></div>\n";
|
print "<div class=\"page_path\">" . esc_html($name) . "<br/></div>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1626,7 +1626,7 @@ sub git_tags_body {
|
|||||||
print "<td><i>$tag{'age'}</i></td>\n" .
|
print "<td><i>$tag{'age'}</i></td>\n" .
|
||||||
"<td>" .
|
"<td>" .
|
||||||
$cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'}),
|
$cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'}),
|
||||||
-class => "list"}, "<b>" . esc_html($tag{'name'}) . "</b>") .
|
-class => "list name"}, esc_html($tag{'name'})) .
|
||||||
"</td>\n" .
|
"</td>\n" .
|
||||||
"<td>";
|
"<td>";
|
||||||
if (defined $comment) {
|
if (defined $comment) {
|
||||||
@ -1680,7 +1680,7 @@ sub git_heads_body {
|
|||||||
print "<td><i>$tag{'age'}</i></td>\n" .
|
print "<td><i>$tag{'age'}</i></td>\n" .
|
||||||
($tag{'id'} eq $head ? "<td class=\"current_head\">" : "<td>") .
|
($tag{'id'} eq $head ? "<td class=\"current_head\">" : "<td>") .
|
||||||
$cgi->a({-href => href(action=>"shortlog", hash=>$tag{'name'}),
|
$cgi->a({-href => href(action=>"shortlog", hash=>$tag{'name'}),
|
||||||
-class => "list"}, "<b>" . esc_html($tag{'name'}) . "</b>") .
|
-class => "list name"},esc_html($tag{'name'})) .
|
||||||
"</td>\n" .
|
"</td>\n" .
|
||||||
"<td class=\"link\">" .
|
"<td class=\"link\">" .
|
||||||
$cgi->a({-href => href(action=>"shortlog", hash=>$tag{'name'})}, "shortlog") . " | " .
|
$cgi->a({-href => href(action=>"shortlog", hash=>$tag{'name'})}, "shortlog") . " | " .
|
||||||
@ -2729,7 +2729,8 @@ sub git_search {
|
|||||||
print "<td title=\"$co{'age_string_age'}\"><i>$co{'age_string_date'}</i></td>\n" .
|
print "<td title=\"$co{'age_string_age'}\"><i>$co{'age_string_date'}</i></td>\n" .
|
||||||
"<td><i>" . esc_html(chop_str($co{'author_name'}, 15, 5)) . "</i></td>\n" .
|
"<td><i>" . esc_html(chop_str($co{'author_name'}, 15, 5)) . "</i></td>\n" .
|
||||||
"<td>" .
|
"<td>" .
|
||||||
$cgi->a({-href => href(action=>"commit", hash=>$co{'id'}) -class => "list"}, "<b>" . esc_html(chop_str($co{'title'}, 50)) . "</b><br/>");
|
$cgi->a({-href => href(action=>"commit", hash=>$co{'id'}), -class => "list subject"},
|
||||||
|
esc_html(chop_str($co{'title'}, 50)) . "<br/>");
|
||||||
my $comment = $co{'comment'};
|
my $comment = $co{'comment'};
|
||||||
foreach my $line (@$comment) {
|
foreach my $line (@$comment) {
|
||||||
if ($line =~ m/^(.*)($searchtext)(.*)$/i) {
|
if ($line =~ m/^(.*)($searchtext)(.*)$/i) {
|
||||||
@ -2782,8 +2783,8 @@ sub git_search {
|
|||||||
print "<td title=\"$co{'age_string_age'}\"><i>$co{'age_string_date'}</i></td>\n" .
|
print "<td title=\"$co{'age_string_age'}\"><i>$co{'age_string_date'}</i></td>\n" .
|
||||||
"<td><i>" . esc_html(chop_str($co{'author_name'}, 15, 5)) . "</i></td>\n" .
|
"<td><i>" . esc_html(chop_str($co{'author_name'}, 15, 5)) . "</i></td>\n" .
|
||||||
"<td>" .
|
"<td>" .
|
||||||
$cgi->a({-href => href(action=>"commit", hash=>$co{'id'}), -class => "list"}, "<b>" .
|
$cgi->a({-href => href(action=>"commit", hash=>$co{'id'}), -class => "list subject"},
|
||||||
esc_html(chop_str($co{'title'}, 50)) . "</b><br/>");
|
esc_html(chop_str($co{'title'}, 50)) . "<br/>");
|
||||||
while (my $setref = shift @files) {
|
while (my $setref = shift @files) {
|
||||||
my %set = %$setref;
|
my %set = %$setref;
|
||||||
print $cgi->a({-href => href(action=>"blob", hash=>$set{'id'}, hash_base=>$co{'id'}, file_name=>$set{'file'}), class => "list"},
|
print $cgi->a({-href => href(action=>"blob", hash=>$set{'id'}, hash_base=>$co{'id'}, file_name=>$set{'file'}), class => "list"},
|
||||||
|
Loading…
Reference in New Issue
Block a user