@ -56,21 +56,21 @@
<button class="ui mini basic button escape-button"> {{ ctx .Locale .Tr "repo.escape_control_characters" }} </button>
<button class="ui mini basic button escape-button"> {{ ctx .Locale .Tr "repo.escape_control_characters" }} </button>
{{ end }}
{{ end }}
</div>
</div>
<a download href="{{ $ .RawFileLink }} "><span class="btn-octicon" data-tooltip-content="{{ ctx .Locale .Tr "repo.download_file" }} " >{{ svg "octicon-download" }} </span> </a>
<a download class="btn-octicon" data-tooltip-content="{{ ctx .Locale .Tr "repo.download_file" }} " href="{{ $ .RawFileLink }} " >{{ svg "octicon-download" }} </a>
<a id="copy-content" class="btn-octicon {{ if not .CanCopyContent }} disabled {{ end }} " {{ if or .IsImageFile ( and .HasSourceRenderedToggle ( not .IsDisplayingSource ) ) }} data-link=" {{ $ .RawFileLink }} " {{ end }} data-tooltip-content=" {{ if .CanCopyContent }} {{ ctx .Locale .Tr "copy_content" }} {{ else }} {{ ctx .Locale .Tr "copy_type_unsupported" }} {{ end }} "> {{ svg "octicon-copy" 1 4 }} </a>
<a id="copy-content" class="btn-octicon {{ if not .CanCopyContent }} disabled {{ end }} " {{ if or .IsImageFile ( and .HasSourceRenderedToggle ( not .IsDisplayingSource ) ) }} data-link=" {{ $ .RawFileLink }} " {{ end }} data-tooltip-content=" {{ if .CanCopyContent }} {{ ctx .Locale .Tr "copy_content" }} {{ else }} {{ ctx .Locale .Tr "copy_type_unsupported" }} {{ end }} "> {{ svg "octicon-copy" }} </a>
{{ if .EnableFeed }}
{{ if .EnableFeed }}
<a class="btn-octicon" href=" {{ $ .FeedURL }} /rss/ {{ $ .BranchNameSubURL }} / {{ PathEscapeSegments .TreePath }} " data-tooltip-content=" {{ ctx .Locale .Tr "rss_feed" }} ">
<a class="btn-octicon" href=" {{ $ .FeedURL }} /rss/ {{ $ .BranchNameSubURL }} / {{ PathEscapeSegments .TreePath }} " data-tooltip-content=" {{ ctx .Locale .Tr "rss_feed" }} ">
{{ svg "octicon-rss" 1 4 }}
{{ svg "octicon-rss" }}
</a>
</a>
{{ end }}
{{ end }}
{{ if .Repository .CanEnableEditor }}
{{ if .Repository .CanEnableEditor }}
{{ if .CanEditFile }}
{{ if .CanEditFile }}
<a href="{{ .RepoLink }} /_edit/ {{ PathEscapeSegments .BranchName }} / {{ PathEscapeSegments .TreePath }} "> <span class="btn-octicon" data-tooltip-content="{{ .EditFileTooltip }} "> {{ svg "octicon-pencil" }} </span> </a>
<a class="btn-octicon" data-tooltip-content="{{ .EditFileTooltip }} " href="{{ .RepoLink }} /_edit/ {{ PathEscapeSegments .BranchName }} / {{ PathEscapeSegments .TreePath }} "> {{ svg "octicon-pencil" }} </a>
{{ else }}
{{ else }}
<span class="btn-octicon disabled" data-tooltip-content=" {{ .EditFileTooltip }} "> {{ svg "octicon-pencil" }} </span>
<span class="btn-octicon disabled" data-tooltip-content=" {{ .EditFileTooltip }} "> {{ svg "octicon-pencil" }} </span>
{{ end }}
{{ end }}
{{ if .CanDeleteFile }}
{{ if .CanDeleteFile }}
<a href="{{ .RepoLink }} /_delete/ {{ PathEscapeSegments .BranchName }} / {{ PathEscapeSegments .TreePath }} "> <span class="btn-octicon btn-octicon-danger" data-tooltip-content="{{ .DeleteFileTooltip }} "> {{ svg "octicon-trash" }} </span> </a>
<a class="btn-octicon btn-octicon-danger" data-tooltip-content="{{ .DeleteFileTooltip }} " href="{{ .RepoLink }} /_delete/ {{ PathEscapeSegments .BranchName }} / {{ PathEscapeSegments .TreePath }} "> {{ svg "octicon-trash" }} </a>
{{ else }}
{{ else }}
<span class="btn-octicon disabled" data-tooltip-content=" {{ .DeleteFileTooltip }} "> {{ svg "octicon-trash" }} </span>
<span class="btn-octicon disabled" data-tooltip-content=" {{ .DeleteFileTooltip }} "> {{ svg "octicon-trash" }} </span>
{{ end }}
{{ end }}