aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/issue/view_title.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-01 19:26:39 -0400
committerUnknwon <u@gogs.io>2015-09-01 19:26:39 -0400
commitebf1bd4f518971253e0a7a0e923645c1d584e03e (patch)
tree4ada3c53f5cef5928405370e4c528789112b7549 /templates/repo/issue/view_title.tmpl
parent8c046073a891e3a192794869628763ef072002eb (diff)
add view pull desc
Diffstat (limited to 'templates/repo/issue/view_title.tmpl')
-rw-r--r--templates/repo/issue/view_title.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl
index 6b8e1c55..27ce4d6c 100644
--- a/templates/repo/issue/view_title.tmpl
+++ b/templates/repo/issue/view_title.tmpl
@@ -21,6 +21,11 @@
{{else}}
<div class="ui green large label"><i class="octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues.open_title"}}</div>
{{end}}
+
+ {{if .Issue.IsPull}}
+ <a {{if gt .Issue.Poster.Id 0}}href="{{.Issue.Poster.HomeLink}}"{{end}}>{{.Issue.Poster.Name}}</a>
+ <span class="pull-desc">{{$.i18n.Tr "repo.pulls.title_desc" .NumCommits .HeadTarget .BaseTarget | Str2html}}</span>
+ {{else}}
{{ $createdStr:= TimeSince .Issue.Created $.Lang }}
<span class="time-desc">
{{if gt .Issue.Poster.Id 0}}
@@ -31,5 +36,6 @@
ยท
{{$.i18n.Tr "repo.issues.num_comments" .Issue.NumComments}}
</span>
+ {{end}}
<div class="ui divider"></div>
</div> \ No newline at end of file