aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view.tmpl
blob: e2d1d7ed95cb4eb052019e893521b2b9a3bf3ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{template "base/head" .}}
<div class="page-content repository view issue pull">
	{{template "repo/header" .}}
	<div class="ui container">
		<div class="ui two column grid">
			<div class="column">
				{{template "repo/issue/navbar" .}}
			</div>
			{{if and (not .Repository.IsArchived) (not .Issue.IsPull)}}
				<div class="column right aligned">
					{{if .PageIsIssueList}}
						<a class="ui green button" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr "repo.issues.new"}}</a>
					{{else}}
						<a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{.RepoLink}}/compare/{{.BranchName | PathEscapeSegments}}...{{.PullRequestCtx.HeadInfoSubURL}}">{{.locale.Tr "repo.pulls.new"}}</a>
					{{end}}
				</div>
			{{end}}
		</div>
		<div class="ui divider"></div>
		{{if .Issue.IsPull}}
			{{template "repo/issue/view_title" .}}
			{{template "repo/pulls/tab_menu" .}}
			<div class="ui bottom attached tab pull active" data-tab="request-{{.ID}}">
				{{template "repo/issue/view_content" .}}
			</div>
		{{else}}
			<div>
				{{template "repo/issue/view_content" .}}
			</div>
		{{end}}
	</div>
</div>
{{template "base/footer" .}}