summaryrefslogtreecommitdiffstats
path: root/templates/repo/view_list.tmpl
diff options
context:
space:
mode:
authordennis-smurf <dnnssmth8@netscape.net>2014-12-05 11:02:52 +0100
committerdennis-smurf <dnnssmth8@netscape.net>2014-12-05 11:02:52 +0100
commit528c075ad668da4fbe9193e477c783cc76321503 (patch)
tree4fab007e796cca48938ca56571634765a10a557b /templates/repo/view_list.tmpl
parente577f2fff38957316a2b6d584cad9bc7abaf732b (diff)
downloadgitea-528c075ad668da4fbe9193e477c783cc76321503.tar.gz
gitea-528c075ad668da4fbe9193e477c783cc76321503.zip
Added issue link rendering in commit messages
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r--templates/repo/view_list.tmpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index d516eac94c..8160c17b83 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -14,7 +14,7 @@
</span>
<span class="last-commit"><a href="{{.RepoLink}}/commit/{{.LastCommit.Id}}" rel="nofollow">
<strong>{{ShortSha .LastCommit.Id.String}}</strong></a>
- <span class="text-truncate">{{.LastCommit.Summary}}</span>
+ <span class="text-truncate">{{Str2html .LastCommit.Summary}}</span>
</span>
<span class="age right">{{TimeSince .LastCommit.Author.When $.Lang}}</span>
</th>
@@ -25,6 +25,7 @@
<tr class="has-parent">
<td class="icon"></td>
<td class="name"><a href="{{EscapePound .BranchLink}}{{.ParentPath}}">..</a></td>
+ <th class="sha">SHA1</th>
<td class="msg"></td>
<td class="age"></td>
</tr>
@@ -48,8 +49,11 @@
<a href="{{EscapePound $.BranchLink}}/{{$.TreePath}}{{$entry.Name}}" class="text-truncate">{{$entry.Name}}</a>
</td>
{{end}}
- <td class="msg">
- <a class="text-truncate" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}}" rel="nofollow">{{$commit.Summary}}</a>
+ <td class="sha">
+ <a rel="nofollow" class="label label-green" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}} ">{{SubStr $commit.Id.String 0 10}} </a>
+ </td>
+ <td class="message">
+ <span class="text-truncate">{{Str2html $commit.Summary}}</span>
</td>
<td class="age">{{TimeSince $commit.Committer.When $.Lang}}</td>
</tr>