summaryrefslogtreecommitdiffstats
path: root/templates/repo/commits_table.tmpl
diff options
context:
space:
mode:
authorRémy Boulanouar <rboulanouar@gmail.com>2017-09-14 08:51:32 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-09-14 14:51:31 +0800
commitbe3319b3d545289b772d7a92b4b62205863954d9 (patch)
tree89473f47f6303ea5ab57ade7901de1a3a48dd673 /templates/repo/commits_table.tmpl
parenta89692d15884271a2927b5f7332ed074116d324c (diff)
downloadgitea-be3319b3d545289b772d7a92b4b62205863954d9.tar.gz
gitea-be3319b3d545289b772d7a92b4b62205863954d9.zip
Display commit status on landing page of repo (#1784)
* Display commit status on landing page of repo * improve last status of commits and add link to ci * fix last commit status since the order of ids are desc
Diffstat (limited to 'templates/repo/commits_table.tmpl')
-rw-r--r--templates/repo/commits_table.tmpl16
1 files changed, 1 insertions, 15 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl
index e33ffcdaa3..b5bd8f33d0 100644
--- a/templates/repo/commits_table.tmpl
+++ b/templates/repo/commits_table.tmpl
@@ -61,21 +61,7 @@
</td>
<td class="message collapsing">
<span class="has-emoji{{if gt .ParentCount 1}} grey text{{end}}">{{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}}</span>
- {{if eq .State "pending"}}
- <i class="commit-status circle icon yellow"></i>
- {{end}}
- {{if eq .State "success"}}
- <i class="commit-status check icon green"></i>
- {{end}}
- {{if eq .State "error"}}
- <i class="commit-status warning icon red"></i>
- {{end}}
- {{if eq .State "failure"}}
- <i class="commit-status remove icon red"></i>
- {{end}}
- {{if eq .State "warning"}}
- <i class="commit-status warning sign icon yellow"></i>
- {{end}}
+ {{template "repo/commit_status" .Status}}
</td>
<td class="grey text right aligned">{{TimeSince .Author.When $.Lang}}</td>
</tr>