@ -61,7 +61,7 @@
</div>
</div>
{{ end }}
{{ end }}
{{ template "repo/sub_menu" . }}
{{ template "repo/sub_menu" . }}
<div class="repo-button-row gt-df gt-ac gt-sb gt-fw ">
<div class="repo-button-row ">
<div class="gt-df gt-ac gt-fw gt-gap-y-3">
<div class="gt-df gt-ac gt-fw gt-gap-y-3">
{{ template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2" }}
{{ template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2" }}
{{ if and .CanCompareOrPull .IsViewBranch ( not .Repository .IsArchived ) }}
{{ if and .CanCompareOrPull .IsViewBranch ( not .Repository .IsArchived ) }}
@ -84,8 +84,9 @@
{{ end }}
{{ end }}
{{ if and .CanWriteCode .IsViewBranch ( not .Repository .IsArchived ) }}
{{ if and .CanWriteCode .IsViewBranch ( not .Repository .IsArchived ) }}
<button class="ui basic compact dropdown jump icon button gt-mr-2" {{ if not .Repository .CanEnableEditor }} disabled {{ end }} >
<button class="ui dropdown basic compact jump button gt-mr-2" {{ if not .Repository .CanEnableEditor }} disabled {{ end }} >
<span class="text"> {{ .locale .Tr "repo.editor.add_file" }} </span>
{{ .locale .Tr "repo.editor.add_file" }}
{{ svg "octicon-triangle-down" 1 4 "dropdown icon" }}
<div class="menu">
<div class="menu">
<a class="item" href=" {{ .RepoLink }} /_new/ {{ .BranchName | PathEscapeSegments }} / {{ .TreePath | PathEscapeSegments }} ">
<a class="item" href=" {{ .RepoLink }} /_new/ {{ .BranchName | PathEscapeSegments }} / {{ .TreePath | PathEscapeSegments }} ">
{{ .locale .Tr "repo.editor.new_file" }}
{{ .locale .Tr "repo.editor.new_file" }}
@ -99,7 +100,6 @@
{{ .locale .Tr "repo.editor.patch" }}
{{ .locale .Tr "repo.editor.patch" }}
</a>
</a>
</div>
</div>
{{ svg "octicon-triangle-down" 1 4 "dropdown icon" }}
</button>
</button>
{{ end }}
{{ end }}