our $home_link = $my_uri || "/";
# string of the home link on top of all pages
-our $home_link_str = $ENV{'SERVER_NAME'} ? "http://" . $ENV{'SERVER_NAME'} : "projects";
+our $home_link_str = $ENV{'SERVER_NAME'} ? "git://" . $ENV{'SERVER_NAME'} : "projects";
# name of your site or organization to appear in page titles
# replace this with something more descriptive for clearer bookmarks
-our $site_name = ""
+our $site_name = "@SITENAME@"
|| ($ENV{'SERVER_NAME'} || "Untitled") . " Git";
# filename of html text to include at top of each page
# URI of a single stylesheet, which can be overridden in GITWEB_CONFIG.
our $stylesheet = undef;
# URI of GIT logo (72x27 size)
-our $logo = "img/onelab-logo.png";
+our $logo = "img/@LOGO@.png";
# URI of GIT favicon, assumed to be image/png type
-our $favicon = "img/git-favicon.png";
+our $favicon = "img/@FAVICON@.png";
# URI and label (title) of GIT logo link
#our $logo_url = "http://www.kernel.org/pub/software/scm/git/docs/";
#our $logo_label = "git documentation";
-our $logo_url = "http://www.onelab.eu";
-our $logo_label = "Onelab";
+our $logo_url = "@LOGOURL@";
+our $logo_label = "@LOGOLABEL@";
# source of projects list
our $projects_list = "";
# i.e. full URL is "$git_base_url/$project"
our @git_base_url_list = grep { $_ ne '' } ("");
+@git_base_url_list = (
+ "@GITURL@"
+);
+
+
# default blob_plain mimetype and default charset for text/plain blob
our $default_blob_plain_mimetype = 'text/plain';
our $default_text_plain_charset = undef;
snapshot_format=>$fmt
),
-title => "in format: $known_snapshot_formats{$fmt}{'display'}"
- }, "snapshot");
+ }, "tar");
} else { # $num_fmts == 0
return undef;
}
print "</table>\n";
}
+
sub git_shortlog_body {
# uses global variable $project
my ($commitlist, $from, $to, $refs, $extra) = @_;
$alternate ^= 1;
my $author = chop_and_escape_str($co{'author_name'}, 10);
# git_summary() used print "<td><i>$co{'age_string'}</i></td>\n" .
- print "<td title=\"$co{'age_string_age'}\"><i>$co{'age_string_date'}</i></td>\n" .
+ print "<td title=\"$co{'age_string_age'}\" class=\"age\">$co{'age_string_date'}</td>\n" .
"<td><i>" . $author . "</i></td>\n" .
"<td>";
print format_subject_html($co{'title'}, $co{'title_short'},
href(action=>"commit", hash=>$commit), $ref);
print "</td>\n" .
"<td class=\"link\">" .
- $cgi->a({-href => href(action=>"commit", hash=>$commit)}, "commit") . " | " .
- $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " .
+ $cgi->a({-class=>"commit",-href => href(action=>"commit", hash=>$commit)}, substr($commit,0,8)) . " | " .
+ $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "diff") . " | " .
$cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree");
my $snapshot_links = format_snapshot_links($commit);
if (defined $snapshot_links) {
}
$alternate ^= 1;
if (defined $tag{'age'}) {
- print "<td><i>$tag{'age'}</i></td>\n";
+ print "<td class=\"age\">$tag{'age'}</td>\n";
} else {
print "<td></td>\n";
}
print " ";
}
print "</td>\n" .
- "<td class=\"link\">" . " | " .
- $cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})}, $tag{'reftype'});
+ "<td class=\"link\">" . " | " ;
if ($tag{'reftype'} eq "commit") {
- print " | " . $cgi->a({-href => href(action=>"shortlog", hash=>$tag{'fullname'})}, "shortlog") .
- " | " . $cgi->a({-href => href(action=>"log", hash=>$tag{'fullname'})}, "log");
+ print $cgi->a({-class=>"commit",-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})},
+ substr($tag{'refid'},0,9));
+ print " | " . $cgi->a({-href => href(action=>"shortlog", hash=>$tag{'fullname'})}, "shortlog") .
+ " | " . $cgi->a({-href => href(action=>"log", hash=>$tag{'fullname'})}, "log");
} elsif ($tag{'reftype'} eq "blob") {
print " | " . $cgi->a({-href => href(action=>"blob_plain", hash=>$tag{'refid'})}, "raw");
+ } else {
+ print $cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})}, $tag{'reftype'});
}
print "</td>\n" .
"</tr>";