mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-29 08:17:31 -04:00
31f934c1d8
This PR adds a filetree to the left side of the files/diff view. Initially the filetree will not be shown and may be shown via a new "Show file tree" button. Showing and hiding is using the same icon as github. Folders are collapsible. On small devices (max-width 991 PX) the file tree will be hidden. Close #18192 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
25 lines
898 B
Handlebars
25 lines
898 B
Handlebars
{{template "base/head" .}}
|
|
|
|
<input type="hidden" id="repolink" value="{{$.RepoRelPath}}">
|
|
<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/>
|
|
|
|
<div class="page-content repository view issue pull files diff">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container fluid padded">
|
|
<div class="navbar">
|
|
{{template "repo/issue/navbar" .}}
|
|
<div class="ui right">
|
|
<a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{.RepoLink}}/compare/{{.BranchName | PathEscapeSegments}}...{{.PullRequestCtx.HeadInfoSubURL}}">{{.locale.Tr "repo.pulls.new"}}</a>
|
|
</div>
|
|
</div>
|
|
<div class="ui divider"></div>
|
|
{{template "repo/issue/view_title" .}}
|
|
{{template "repo/pulls/tab_menu" .}}
|
|
{{template "base/alert" .}}
|
|
<div class="ui bottom attached tab pull active">
|
|
{{template "repo/diff/box" .}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|