|
7 | 7 | {{.CsrfTokenHtml}} |
8 | 8 | <input type="hidden" name="last_commit" value="{{.last_commit}}"> |
9 | 9 | <input type="hidden" name="page_has_posted" value="{{.PageHasPosted}}"> |
10 | | - <div class="ui secondary menu"> |
11 | | - <div class="fitted item treepath"> |
12 | | - <div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}"> |
13 | | - <a class="section" href="{{$.BranchLink}}">{{.Repository.Name}}</a> |
14 | | - {{$n := len .TreeNames}} |
15 | | - {{$l := Eval $n "-" 1}} |
16 | | - {{range $i, $v := .TreeNames}} |
17 | | - <div class="divider"> / </div> |
18 | | - {{if eq $i $l}} |
19 | | - <input id="file-name" value="{{$v}}" placeholder="{{$.locale.Tr "repo.editor.name_your_file"}}" data-editorconfig="{{$.Editorconfig}}" required autofocus> |
20 | | - <span data-tooltip-content="{{$.locale.Tr "repo.editor.filename_help"}}">{{svg "octicon-info"}}</span> |
21 | | - {{else}} |
22 | | - <span class="section"><a href="{{$.BranchLink}}/{{index $.TreePaths $i | PathEscapeSegments}}">{{$v}}</a></span> |
23 | | - {{end}} |
| 10 | + <div class="repo-editor-header"> |
| 11 | + <div class="ui breadcrumb field{{if .Err_TreePath}} error{{end}}"> |
| 12 | + <a class="section" href="{{$.BranchLink}}">{{.Repository.Name}}</a> |
| 13 | + {{$n := len .TreeNames}} |
| 14 | + {{$l := Eval $n "-" 1}} |
| 15 | + {{range $i, $v := .TreeNames}} |
| 16 | + <div class="divider"> / </div> |
| 17 | + {{if eq $i $l}} |
| 18 | + <input id="file-name" value="{{$v}}" placeholder="{{$.locale.Tr "repo.editor.name_your_file"}}" data-editorconfig="{{$.Editorconfig}}" required autofocus> |
| 19 | + <span data-tooltip-content="{{$.locale.Tr "repo.editor.filename_help"}}">{{svg "octicon-info"}}</span> |
| 20 | + {{else}} |
| 21 | + <span class="section"><a href="{{$.BranchLink}}/{{index $.TreePaths $i | PathEscapeSegments}}">{{$v}}</a></span> |
24 | 22 | {{end}} |
25 | | - <span>{{.locale.Tr "repo.editor.or"}} <a href="{{$.BranchLink}}{{if not .IsNewFile}}/{{PathEscapeSegments .TreePath}}{{end}}">{{.locale.Tr "repo.editor.cancel_lower"}}</a></span> |
26 | | - <input type="hidden" id="tree_path" name="tree_path" value="{{.TreePath}}" required> |
27 | | - </div> |
| 23 | + {{end}} |
| 24 | + <span>{{.locale.Tr "repo.editor.or"}} <a href="{{$.BranchLink}}{{if not .IsNewFile}}/{{PathEscapeSegments .TreePath}}{{end}}">{{.locale.Tr "repo.editor.cancel_lower"}}</a></span> |
| 25 | + <input type="hidden" id="tree_path" name="tree_path" value="{{.TreePath}}" required> |
28 | 26 | </div> |
29 | 27 | </div> |
30 | 28 | <div class="field"> |
|
0 commit comments