forked from broquaint/Gitalist
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'action-blame' of git://github.com/broquaint/Gitalist
* 'action-blame' of git://github.com/broquaint/Gitalist: Fix the path in the /blob & /blame header. Made /blob & /blob_plain actions a little more robust. Added /project_index action. Switch from latin1 chars to the HTML escape char equivalents.
- Loading branch information
Showing
11 changed files
with
100 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,9 +1,9 @@ | |||
<div class='pager'> | <div class='pager'> | ||
<a href='[% c.uri_for(action, {h=HEAD}) %]'>HEAD</a> § | <a href='[% c.uri_for(action, {h=HEAD}) %]'>HEAD</a> § | ||
[% IF log_lines.first.sha1 != commit.sha1 %] | [% IF log_lines.first.sha1 != commit.sha1 %] | ||
<a href='[% c.uri_for(action, {pg=page - 1, h=commit.sha1}) %]'>« prev</a> | <a href='[% c.uri_for(action, {pg=page - 1, h=commit.sha1}) %]'>« prev</a> | ||
[% END %] | [% END %] | ||
[% IF log_lines.size == 50 %] | [% IF log_lines.size == 50 %] | ||
<a href='[% c.uri_for(action, {pg=page + 1, h=commit.sha1}) %]'>next »</a> | <a href='[% c.uri_for(action, {pg=page + 1, h=commit.sha1}) %]'>next »</a> | ||
[% END %] | [% END %] | ||
</div> | </div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,18 +1,12 @@ | |||
<link rel="stylesheet" type="text/css" href="/static/css/syntax/[% language %].css"/> | <link rel="stylesheet" type="text/css" href="/static/css/syntax/[% language %].css"/> | ||
|
|
||
[% PROCESS 'nav/actions.tt2' object = head %] | [% PROCESS 'nav/actions.tt2' object = head %] | ||
[% IF object.type == 'commit' %] | [% IF object.type == 'commit' %] | ||
<div class='commit-message'> | <div class='commit-message'> | ||
[% head.comment.substr(0, 85) %] ... | [% short_cmt(head.comment) %] | ||
</div> | </div> | ||
[% END %] | [% END %] | ||
<div class='path'> | [% INCLUDE 'nav/path.tt2' %] | ||
<a href="[% c.uri_for("tree", {hb=head.sha1}) %]">[% Project.name %]</a> | |||
[% # XXX The last part should link to blob_plain (or something) but doesn't ATM | |||
FOREACH part IN filename.split('/') %] | |||
/ <a href="[% c.uri_for("tree", {hb=head.sha1}) %]">[% part %]</a> | |||
[% END %] | |||
</div> | |||
<div> | <div> | ||
<pre class='blob'>[% blob %]</pre> | <pre class='blob'>[% blob %]</pre> | ||
</div> | </div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
<div class='path'> | |||
<a href="[% c.uri_for("tree", {hb=head.sha1}) %]">[% Project.name %]</a> | |||
[% FOREACH part IN filename.split('/') %] | |||
[% path = loop.first ? part : path _ '/' _ part %] | |||
/ <a href="[% c.uri_for(loop.last ? 'blob' : 'tree', {hb=head.sha1,f=path}) %]">[% part %]</a> | |||
[% END %] | |||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters