@ -33,9 +33,9 @@
{{ if not .ReadmeInList }}
{{ if not .ReadmeInList }}
<div class="file-header-right file-actions df ac">
<div class="file-header-right file-actions df ac">
{{ if .HasSourceRenderedToggle }}
{{ if .HasSourceRenderedToggle }}
<div class="ui compact icon buttons">
<div class="ui compact icon buttons two-toggle-buttons ">
<a href=" {{ $ .Link }} ?display=source" class="ui tiny basic button poping up {{ if .IsDisplayingSource }} active {{ end }} " data-content=" {{ .i18n .Tr "repo.file_view_source" }} " data-position="bottom center" data-variation="tiny inverted"> {{ svg "octicon-code" }} </a>
<a href=" {{ $ .Link }} ?display=source" class="ui mini basic button poping up {{ if .IsDisplayingSource }} active {{ end }} " data-content=" {{ .i18n .Tr "repo.file_view_source" }} " data-position="bottom center" data-variation="tiny inverted"> {{ svg "octicon-code" 1 5 }} </a>
<a href=" {{ $ .Link }} " class="ui tiny basic button poping up {{ if .IsDisplayingRendered }} active {{ end }} " data-content=" {{ .i18n .Tr "repo.file_view_rendered" }} " data-position="bottom center" data-variation="tiny inverted"> {{ svg "octicon-file" }} </a>
<a href=" {{ $ .Link }} " class="ui mini basic button poping up {{ if .IsDisplayingRendered }} active {{ end }} " data-content=" {{ .i18n .Tr "repo.file_view_rendered" }} " data-position="bottom center" data-variation="tiny inverted"> {{ svg "octicon-file" 1 5 }} </a>
</div>
</div>
{{ end }}
{{ end }}
<div class="ui buttons mr-2">
<div class="ui buttons mr-2">
@ -50,7 +50,7 @@
</div>
</div>
{{ if .Repository .CanEnableEditor }}
{{ if .Repository .CanEnableEditor }}
{{ if .CanEditFile }}
{{ if .CanEditFile }}
<a href=" {{ .RepoLink }} /_edit/ {{ EscapePound .BranchName }} / {{ EscapePound .TreePath }} "><span class="btn-octicon poping up" data-content=" {{ .EditFileTooltip }} " data-position="bottom center" data-variation="tiny inverted"> {{ svg "octicon-pencil" }} </span></a>
<a href=" {{ .RepoLink }} /_edit/ {{ EscapePound .BranchName }} / {{ EscapePound .TreePath }} "><span class="btn-octicon poping up" data-content=" {{ .EditFileTooltip }} " data-position="bottom center" data-variation="tiny inverted"> {{ svg "octicon-pencil" }} </span></a>
{{ else }}
{{ else }}
<span class="btn-octicon poping up disabled" data-content=" {{ .EditFileTooltip }} " data-position="bottom center" data-variation="tiny inverted"> {{ svg "octicon-pencil" }} </span>
<span class="btn-octicon poping up disabled" data-content=" {{ .EditFileTooltip }} " data-position="bottom center" data-variation="tiny inverted"> {{ svg "octicon-pencil" }} </span>
{{ end }}
{{ end }}