styleinfo = " style='border-top: solid 3px #" _ linecolour _ ";'"; -%]
<td nowrap class='author'[% styleinfo %]>[% info.commit.author %]</td>
<td nowrap class='date'[% styleinfo %]>[% info.commit.author_dt.ymd %]</td>
- <td nowrap class='commit-info chroma-hash'[% styleinfo %]><a title="[% info.commit.author %] on [% info.commit.author_dt %]" href='[% c.uri_for_action('/ref/commit', [Repository.name, info.commit.sha1]) %]'>[% linecolour %]</td>
+ <td nowrap class='sha1 commit-info chroma-hash'[% styleinfo %]><a title="[% info.commit.author %] on [% info.commit.author_dt %]" href='[% c.uri_for_action('/ref/commit', [Repository.name, info.commit.sha1]) %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = info.commit.sha1.substr(0, 7) %]</a>
+[%# linecolour %]</td>
[%- ELSE -%]
<td nowrap class='author'></td>
<td nowrap class='date'></td>
<td nowrap class='commit-info'></td>
[%- END -%]
<td nowrap class='lineno' id='l[% info.meta.lineno %]' style='border-right: solid 3px #[% linecolour %]; border-left: solid 3px #[% linecolour %];'><tt><a href='[% c.uri_for_action('/ref/blame', [Repository.name, info.commit.sha1], filename.to_path ) %]#l[% info.meta.orig_lineno %]'>[% info.meta.lineno %]</a></tt></td>
- <td nowrap class='data'><pre>[% blame_lines.${loop.index} %]</pre></td>
+ <td nowrap class='data'><pre>[% blame_lines.${loop.index} | html %]</pre></td>
[% lastsha1 = info.commit.sha1 %]
</tr>
[% END %]
INCLUDE '_diff.tt2';
ELSE
%]
- <div class='no-difference'>
+ <p class='msg'>
[%
IF commit && commit.parents > 1;
'Trivial merge';
'No differences found';
END;
%]
- </div>
+ </p>
[% END %]
<td class='author'>[% line.author.name | html %]</td>
<td class='action-list'>
[% IF filetype == 'tree' %]
- <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1], filename) %]">blob</a>
+ <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1], filename) %]" title="Blob" class="button blob">blob</a>
[% ELSIF filetype == 'blob' %]
- <a href="[% c.uri_for_action("/ref/blob", [Repository.name, line.sha1], filename) %]">blob</a>
+ <a href="[% c.uri_for_action("/ref/blob", [Repository.name, line.sha1], filename) %]" title="Blob" class="button blob">blob</a>
[% END %]
- <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]">commitdiff</a>
+ <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]" title="Commit diff" class="button diff">commitdiff</a>
[% IF filetype == 'blob' %]
- <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1], 'HEAD', filename) %]">diff to current</a>
+ <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1], 'HEAD', filename) %]" title="Diff to current" class="button diffcurrent">diff to current</a>
[% END %]
</td>
</tr>
[% BLOCK repository_heads_headfoot %]
[% SET cell = type == 'head' ? 'th' : 'td' %]
-<tr>
+<tr class="header">
<[% cell %]>HEAD</[% cell %]>
- <[% cell %]>age</[% cell %]>
- <[% cell %]>branch</[% cell %]>
- <[% cell %]>actions</[% cell %]>
+ <[% cell %]>Last change</[% cell %]>
+ <[% cell %]>Branch</[% cell %]>
+ <[% cell %]>Actions</[% cell %]>
</tr>
[% END %]
+
<table class='[% action %] listing'>
<thead>[% PROCESS repository_heads_headfoot type = 'head' %]</thead>
- <tfoot>[% PROCESS repository_heads_headfoot type = 'foot' %]</tfoot>
-
<tbody>
[% FOREACH head IN heads %]
<tr>
<td class='time-since' title='[% head.last_change %]'>[% time_since(head.last_change) %]</td>
<td class='head[% head.sha1 == HEAD ? ' current' : '' %]'>[% head.name %]</td>
<td class='action-list'>[%# FIXME %]
- <a href="[% c.uri_for_action('/ref/shortlog', [Repository.name, head.name]) %]">shortlog</a>
- <a href="[% c.uri_for_action('/ref/longlog', [Repository.name, head.name]) %]">log</a>
- <a href="[% c.uri_for_action('/ref/tree', [Repository.name, head.name]) %]">tree</a>
+ <a href="[% c.uri_for_action('/ref/shortlog', [Repository.name, head.name]) %]" title="Short log" class="button shortlog">shortlog</a>
+ <a href="[% c.uri_for_action('/ref/longlog', [Repository.name, head.name]) %]" title="Long log" class="button longlog">log</a>
+ <a href="[% c.uri_for_action('/ref/tree', [Repository.name, head.name]) %]" title="Tree" class="button tree">tree</a>
</td>
</tr>
[% END %]
-[% INCLUDE 'fragment/repository/shortlog.tt2' longlogformat = 1 %]
\ No newline at end of file
+[% INCLUDE 'fragment/repository/shortlog.tt2' longlogformat = 1 %]
+
+
+<h2>Branches</h2>
+[% subinclude('/fragment/repository/heads', c.req.captures) %]
\ No newline at end of file
[%- BLOCK blame_table_headfoot %]
<tr>
- <td>author</td>
- <td>date</td>
- <td>sha1</td>
- <td></td>
- <td class='data'>data</td>
+ <th>Author</th>
+ <th>Date</th>
+ <th width="80" nowrap="nowrap">ID (sha1)</thd>
+ <th></tdh>
+ <th class='data'>Data</th>
</tr>
[% END -%]
+
[%- INCLUDE inc/syntax_highlight_css.tt2 -%]
-<div class='content'>
-[% IF object.type == 'commit' %]
-<div class='commit-message'>[% short_cmt(head.comment) %]</div>
-[% END %]
-[% INCLUDE 'nav/path.tt2' %]
+
+
+
<div id='blame'>
-<table>
+<table class="listing">
<thead>
[% PROCESS blame_table_headfoot %]
</thead>
- <tfoot>
- [% PROCESS blame_table_headfoot %]
- </tfoot>
-
<tbody>
[% subinclude('/fragment/ref/blame', c.req.captures, c.req.arguments.to_path ) %]
</tbody>
</table>
</div>
-</div>
+<h2>[% INCLUDE 'nav/path.tt2' %]</h2>
+
+
+[% IF object.type == 'commit' %]
+<div class='commit-message'>[% short_cmt(head.comment) %]</div>
+[% END %]
+
[% subinclude('/fragment/' _ c.action, c.req.captures, c.req.parameters) %]
+
+<h2>Branches</h2>
+[% subinclude('/fragment/repository/heads', c.req.captures) %]
\ No newline at end of file
-<div class='summary content'>
+
<!-- [% subinclude('/fragment/repository/summary', c.req.captures) %]
<h2><a href='[% c.uri_for(c.controller.action_for('shortlog'), c.req.captures) %]'>shortlog</a></h2> -->
[% subinclude('/fragment/repository/shortlog', c.req.captures) %]
- <h2><a href='[% c.uri_for(c.controller.action_for('heads'), c.req.captures) %]'>branches</a></h2>
+ <h2><a href='[% c.uri_for(c.controller.action_for('heads'), c.req.captures) %]'>Branches</a></h2>
[% subinclude('/fragment/repository/heads', c.req.captures) %]
[% IF Repository.tags.size > 0 %]
- <h2><a href='[% c.uri_for(c.controller.action_for('tags'), c.req.captures) %]'>tags</a></h2>
+ <h2><a href='[% c.uri_for(c.controller.action_for('tags'), c.req.captures) %]'>Tags</a></h2>
[% subinclude('/fragment/repository/tags', c.req.captures) %]
[% END %]
-</div>
+
float:right;
margin-right:15px;
}
-
+#footer_holder{
+ margin-bottom:100px;
+}
#footer p{
margin-left:15px;
}
#debug_holder{
+ display:none;
clear:both;
padding-top:30px;
margin:30px 0;
a.diff{
background:transparent url(/static/i/icons/diff.png) no-repeat;
}
+a.diffcurrent{
+ background:transparent url(/static/i/icons/diffcurrent.png) no-repeat;
+}
a.tree{
background:transparent url(/static/i/icons/tree.png) no-repeat;
}
padding-top:2px;
float:left;
}
-
+.msg{
+ padding:5px 10px 5px 35px;
+ background:#f0f0f0 url(/static/i/icons/attention.png) no-repeat 10px center;
+ border:1px solid #ddd;
+ margin:30px 15px;
+}
a.rss_logo {
float: right;
tr.invert{
background-color:#f0f0f0;
}
+tr.header{
+ background-color:#666;
+}
.sha1{
width:80px;
}
/* /blame */
#blame pre, #blame tt {
margin: 0;
- font-size: 0.9em;
+ font-size: 12px;
}
#blame .commit-info {
+
}
#blame .lineno {
text-align: right;
padding: 0 8px;
}
#blame a {
- text-decoration: none;
+ atext-decoration: none;
}
#blame {
overflow-x: scroll;
background-color: #fefeaa;
}
#blame td {
- padding: 0 0.2em;
+ vertical-align:middle;
+ padding: 3px;
}
#blame td.lineno {
background-color: #eee;
padding-left: 15px;
margin: 20px 15px 20px;
overflow:auto;
+ font-size:12px;
}
/* /blobdiff etc */
<div id="nav_logs" [% 'style="visibility:hidden"' IF c.action.name == "index" %]>
<ul>
[% IF c.req.captures.size == 1; SET path = 'repository'; ELSE; SET path = 'ref'; END %]
+
<li [% 'class="selected"' IF c.action.name.match('longlog') %]><a href="[% c.uri_for_action('/' _ path _ '/longlog', c.req.captures) %]" id="log_full">Long log</a></li>
<li [% 'class="selected"' IF c.action.name.match('shortlog') %]><a href="[% c.uri_for_action('/' _ path _ '/shortlog', c.req.captures) %]" id="log_short">Short log</a></li>
</ul>
[% content %]
-
- [%# INCLUDE 'nav/actions.tt2' %]
</div>
</div>
</div>