summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-01 19:07:02 -0400
committerUnknwon <u@gogs.io>2015-09-01 19:07:02 -0400
commit8c046073a891e3a192794869628763ef072002eb (patch)
treea5de325078531c330da64f8361d43184fee894d3 /templates/repo/issue/view.tmpl
parent63fecac537298109253bc00c256336e942f73481 (diff)
downloadgitea-8c046073a891e3a192794869628763ef072002eb.tar.gz
gitea-8c046073a891e3a192794869628763ef072002eb.zip
work on PR conversation
Diffstat (limited to 'templates/repo/issue/view.tmpl')
-rw-r--r--templates/repo/issue/view.tmpl24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl
index 129bfd0859..b7ec0152f5 100644
--- a/templates/repo/issue/view.tmpl
+++ b/templates/repo/issue/view.tmpl
@@ -9,7 +9,31 @@
</div>
</div>
<div class="ui divider"></div>
+ {{if .Issue.IsPull}}
+ {{template "repo/issue/view_title" .}}
+ <div class="ui top attached pull tabular menu">
+ <a class="item active" href="{{.RepoLink}}/pulls/{{.Issue.Index}}">
+ <span class="octicon octicon-comment-discussion"></span>
+ {{$.i18n.Tr "repo.pulls.tab_conversation"}}
+ <span class="ui label">{{.Issue.NumComments}}</span>
+ </a>
+ <a class="item" href="{{.RepoLink}}/pulls/{{.Issue.Index}}/commits">
+ <span class="octicon octicon-git-commit"></span>
+ {{$.i18n.Tr "repo.pulls.tab_commits"}}
+ <span class="ui label">{{.NumCommits}}</span>
+ </a>
+ <a class="item" href="{{.RepoLink}}/pulls/{{.Issue.Index}}/files">
+ <span class="octicon octicon-diff"></span>
+ {{$.i18n.Tr "repo.pulls.tab_files"}}
+ <span class="ui label">{{.NumFiles}}</span>
+ </a>
+ </div>
+ <div class="ui bottom attached tab pull segment active" data-tab="request-{{.ID}}">
+ {{template "repo/issue/view_content" .}}
+ </div>
+ {{else}}
{{template "repo/issue/view_content" .}}
+ {{end}}
</div>
</div>
{{template "base/footer" .}} \ No newline at end of file