aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_title.tmpl
diff options
context:
space:
mode:
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 6b8e1c55a4..27ce4d6c60 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