|
1 | 1 | {{template "base/head" .}} |
2 | 2 | <div role="main" aria-label="{{.Title}}" class="page-content repository file editor edit"> |
3 | 3 | {{template "repo/header" .}} |
4 | | - <div class="ui container"> |
| 4 | + <div class="ui container fluid padded"> |
5 | 5 | {{template "base/alert" .}} |
6 | | - <form class="ui edit form form-fetch-action" method="post" action="{{.CommitFormOptions.TargetFormAction}}" |
| 6 | + <div class="repo-view-container"> |
| 7 | + <div class="tw-flex tw-flex-col repo-view-file-tree-container not-mobile {{if not .UserSettingCodeViewShowFileTree}}tw-hidden{{end}}" {{if .IsSigned}}data-user-is-signed-in{{end}}> |
| 8 | + {{template "repo/view_file_tree" .}} |
| 9 | + </div> |
| 10 | + <div class="repo-view-content"> |
| 11 | + <form class="ui edit form form-fetch-action" method="post" action="{{.CommitFormOptions.TargetFormAction}}" |
7 | 12 | data-text-empty-confirm-header="{{ctx.Locale.Tr "repo.editor.commit_empty_file_header"}}" |
8 | 13 | data-text-empty-confirm-content="{{ctx.Locale.Tr "repo.editor.commit_empty_file_text"}}" |
9 | 14 | > |
10 | 15 | {{.CsrfTokenHtml}} |
11 | 16 | {{template "repo/editor/common_top" .}} |
12 | | - <div class="repo-editor-header"> |
| 17 | + <div class="repo-editor-header tw-flex tw-items-center tw-gap-2"> |
| 18 | + <button type="button" class="repo-view-file-tree-toggle-show ui compact basic button icon not-mobile {{if .UserSettingCodeViewShowFileTree}}tw-hidden{{end}}" |
| 19 | + data-global-click="onRepoViewFileTreeToggle" data-toggle-action="show" |
| 20 | + data-tooltip-content="{{ctx.Locale.Tr "repo.diff.show_file_tree"}}"> |
| 21 | + {{svg "octicon-sidebar-collapse"}} |
| 22 | + </button> |
13 | 23 | <div class="breadcrumb"> |
14 | 24 | {{ctx.Locale.Tr "repo.editor.patching"}} |
15 | 25 | <a class="section" href="{{$.RepoLink}}">{{.Repository.FullName}}</a> |
|
33 | 43 | </div> |
34 | 44 | </div> |
35 | 45 | {{template "repo/editor/commit_form" .}} |
36 | | - </form> |
| 46 | + </form> |
| 47 | + </div> |
| 48 | + </div> |
37 | 49 | </div> |
38 | 50 | </div> |
39 | 51 | {{template "base/footer" .}} |
0 commit comments