diff options
author | Rémy Boulanouar <rboulanouar@gmail.com> | 2017-09-14 08:51:32 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-09-14 14:51:31 +0800 |
commit | be3319b3d545289b772d7a92b4b62205863954d9 (patch) | |
tree | 89473f47f6303ea5ab57ade7901de1a3a48dd673 /templates/repo/commit_status.tmpl | |
parent | a89692d15884271a2927b5f7332ed074116d324c (diff) | |
download | gitea-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/commit_status.tmpl')
-rw-r--r-- | templates/repo/commit_status.tmpl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/repo/commit_status.tmpl b/templates/repo/commit_status.tmpl new file mode 100644 index 0000000000..752fd762e3 --- /dev/null +++ b/templates/repo/commit_status.tmpl @@ -0,0 +1,15 @@ +{{if eq .State "pending"}} + <a href="{{.TargetURL}}" target=_blank><i class="commit-status circle icon yellow"></i></a> +{{end}} +{{if eq .State "success"}} + <a href="{{.TargetURL}}" target=_blank><i class="commit-status check icon green"></i></a> +{{end}} +{{if eq .State "error"}} + <a href="{{.TargetURL}}" target=_blank><i class="commit-status warning icon red"></i></a> +{{end}} +{{if eq .State "failure"}} + <a href="{{.TargetURL}}" target=_blank><i class="commit-status remove icon red"></i></a> +{{end}} +{{if eq .State "warning"}} + <a href="{{.TargetURL}}" target=_blank><i class="commit-status warning sign icon yellow"></i></a> +{{end}}
\ No newline at end of file |