sub summary : Chained('find') PathPart('') Args() {}
-sub heads : Chained('find') Args(0) {}
+sub heads : Chained('find') Args() {}
-sub tags : Chained('find') Args(0) {}
+sub tags : Chained('find') Args() {}
1;
<tr class="invert">
<td class='sha1' title='[% Commit.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.sha1.substr(0, 7) %]</td>
<td class='time-since'>[% time_since(Commit.authored_time) %]</td>
- <td rowspan="2">
- [% Commit.comment | html%]
- [%
-
- INCLUDE '_refs.tt2' object = commit;
- %]</td>
+ <td rowspan="2">[%
+ message = Commit.comment | html; message.replace("\n", "<br/>");
+ INCLUDE '_refs.tt2' object = commit;
+ %]</td>
<td class='author'><a href="mailto:[% Commit.author.email %]" title="Email"><img style="float: left; padding-right: 10px" src="[% uri_for_gravatar(Commit.committer.email, 21) %]">[% Commit.author.name | html %]</a></td>
<td class='action-list'>Author</td>
</tr>
<a href="[% c.uri_for_action('/ref/tree', [Repository.name, head.name]) %]" title="Tree" class="button tree">tree</a>
</td>
</tr>
+ [% LAST IF c.req.args.0 AND c.req.args.0 == loop.count %]
[% END %]
</tbody>
</table>
[% INCLUDE 'fragment/repository/shortlog.tt2' longlogformat = 1 %]
-
-
-<h2>Branches</h2>
-[% subinclude('/fragment/repository/heads', [Repository.name]) %]
</tr>
</tbody>
</table>
-</form
+</form>
<span id="diff-uri" class="js-data">[% c.uri_for_action('/ref/diff_fancy', [Repository.name, 'HEAD']) %]</span>
[% subinclude('/fragment/repository/shortlog', c.req.captures) %]
<h2><a href='[% c.uri_for(c.controller.action_for('heads'), c.req.captures) %]'>Branches</a></h2>
- [% subinclude('/fragment/repository/heads', c.req.captures) %]
+ [% subinclude('/fragment/repository/heads', c.req.captures, c.config.paging.summary) %]
[% IF Repository.tags.size > 0 %]
<h2><a href='[% c.uri_for(c.controller.action_for('tags'), c.req.captures) %]'>Tags</a></h2>
- [% subinclude('/fragment/repository/tags', c.req.captures) %]
+ [% subinclude('/fragment/repository/tags', c.req.captures, c.config.paging.summary) %]
[% END %]
}
function switchBranch() {
- var branch = jQuery('#branch-list').val();
- document.location.href = uriFor('current', branch);
+ var branch = jQuery('#branch-list').val(),
+ action = branch != '...' ? 'current' : 'heads';
+ document.location.href = uriFor(action, branch);
}
function compareDiffs(){
Branches
<select id='branch-list'>
<option value="">HEAD</option>
- [% FOREACH branch IN Repository.heads %]
+ [%- FOREACH branch IN Repository.heads -%]
<option value="[% branch.name %]">[% branch.name %]</option>
- [% END %]
+ [% IF loop.count == c.config.paging.summary %]
+ <option value="...">>Branch list</option>
+ [% LAST %]
+ [% END %]
+ [% END -%]
</select>
</li>
/
[%- IF Repository %]
[%# FIXME: output branch name in a nicer way!!! #%]
- [% FOREACH branch_head IN Repository.heads %]
- [% IF c.req.path.search(branch_head.name) %]
+ [%- FOREACH branch_head IN Repository.heads %]
+ [%- IF c.req.path.search(branch_head.name) %]
<a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/[% branch_head.name %]/shortlog">[% branch_head.name %]</a> /
- [% END %]
- [% END %]
+ [% END -%]
+ [% END -%]
[%- END %]
c.uri_for_action(cur_uri, [Repository.name, 'HEAD']);
END;
%]</span>
+<span id="heads-uri" class="js-data">[% c.uri_for_action('/repository/heads', [Repository.name]) %]</span>
</body>
</html>