diff options
author | Unknwon <u@gogs.io> | 2015-08-30 00:45:56 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-30 00:45:56 +0800 |
commit | 9b9e5f02901ab457656ee80bf7b27a663db4d73f (patch) | |
tree | 7415150d901b98b181904210d6eef292125dd851 /templates/repo | |
parent | 302938e646d764cb7f0f63720d6b44fd1fa6e065 (diff) | |
download | gitea-9b9e5f02901ab457656ee80bf7b27a663db4d73f.tar.gz gitea-9b9e5f02901ab457656ee80bf7b27a663db4d73f.zip |
#1545 Cross reference the commit from the issue when it is closed by the commit
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 9f36a24ce9..a6d4ba4712 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -144,6 +144,19 @@ </a> <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a> {{$.i18n.Tr "repo.issues.closed_at" .EventTag $createdStr | Safe}}</span> </div> + {{else if eq .Type 4}} + <div class="event"> + <span class="octicon octicon-bookmark"></span> + <a class="ui avatar image" href="{{.Poster.HomeLink}}"> + <img src="{{.Poster.AvatarLink}}"> + </a> + <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a> {{$.i18n.Tr "repo.issues.commit_ref_at" .EventTag $createdStr | Safe}}</span> + + <div class="detail"> + <span class="octicon octicon-git-commit"></span> + <span class="text grey">{{.Content | Safe}}</span> + </div> + </div> {{end}} {{end}} |