my $project = $c->stash->{Project};
$c->detach('error_404') unless $project;
my $commit = $self->_get_commit($c);
+ my @heads = $project->heads;
+ my $maxitems = Gitalist->config->{paging}{summary} || 10;
$c->stash(
commit => $commit,
info => $project->info,
log_lines => [$project->list_revs(
sha1 => $commit->sha1,
- count => Gitalist->config->{paging}{summary} || 10
+ count => $maxitems,
)],
refs => $project->references,
- heads => [$project->heads],
+ heads => [ @heads[0 .. $maxitems] ],
action => 'summary',
-);
+ );
}
=head2 heads
<td>[% item.modestr %]</td>
[% theact = item.type == 'tree' ? 'tree' : 'blob' -%]
<td class='filename'>
- <a href="[% c.uri_for(theact, {h=item.object, hb=commit.sha1, f=(path ? path _ '/' _ item.file : item.file)}) %]">[% item.file %]</a>
+ <a href="[% c.uri_for(theact, {h=item.sha1, hb=commit.sha1, f=(path ? path _ '/' _ item.file : item.file)}) %]">[% item.file %]</a>
</td>
<td class='action-list'>
<a href="[% c.uri_for(theact, {h=item.object, hb=commit.sha1, f=item.file}) %]">[% theact %]</a>
[%- # git_footer_html
-%]
-<div class="page-footer">
+<div id="page-footer">
[% IF project AND project_description %]
<div class="page_footer_text">[% project_description | html %]</div>
[% END %]
font-family: "Trebuchet MS", "Lucida Grande", serif;
}
+/* header */
+#page-header {
+ height: 25px;
+ padding: 8px;
+ font-size: 1.5em;
+ font-weight: bold;
+ background-color: #d9d8d1;
+}
+
+img.logo {
+ float: right;
+ border-width: 0px;
+}
+
+/* footer */
+#page-footer {
+ height: 20px;
+ padding: 8px;
+ margin-top: 10px;
+ font-style: italic;
+ background-color: #d9d8d1;
+ border-top: solid 1px #777;
+}
+
/* actions include */
.actions {
padding-bottom: 4px 0;
* from gitweb.css
* XXX These can be rejigged once gitweb.css has gone away.
*/
-#page-header {
- height: 25px;
- padding: 8px;
- font-size: 1.5em;
- font-weight: bold;
- background-color: #d9d8d1;
-}
-
-img.logo {
- float: right;
- border-width: 0px;
-}
span.refs span {
padding: 0px 4px;
[% PROCESS 'nav/actions.tt2' object = head %]
-<div class='summary'>
-<dl>
-<dt>description</dt><dd>[% info.description %]</dd>
-<dt>owner</dt><dd>[% info.owner %]</dd>
-<dt>last change</dt><dd>[% info.last_change %]</dd>
-</dl>
-</div>
-
<h2><a href='[% c.uri_for("shortlog") %]'>shortlog</a></h2>
[% INCLUDE '_shortlog.tt2' %]