summaryrefslogtreecommitdiffstats
path: root/templates/repo/wiki
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2020-04-16 18:26:24 -0300
committerGitHub <noreply@github.com>2020-04-16 16:26:24 -0500
commit3d6f1731b5fd1378ffc7999ef26154c510eb6eba (patch)
tree6373393f52add47f97e91eb5945e890d9538ccdf /templates/repo/wiki
parenteeb968eab591d21eacf45e3743575f614ba5ba66 (diff)
downloadgitea-3d6f1731b5fd1378ffc7999ef26154c510eb6eba.tar.gz
gitea-3d6f1731b5fd1378ffc7999ef26154c510eb6eba.zip
Fix and simplify some tmpl conditions (#11080)
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r--templates/repo/wiki/revision.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/wiki/revision.tmpl b/templates/repo/wiki/revision.tmpl
index 019bd1ea45..46167838c5 100644
--- a/templates/repo/wiki/revision.tmpl
+++ b/templates/repo/wiki/revision.tmpl
@@ -21,7 +21,7 @@
{{else if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}}
<input id="repo-clone-url" value="{{$.WikiCloneLink.SSH}}" readonly>
{{end}}
- {{if or ((not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)))}}
+ {{if or (not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH))}}
<button class="ui basic icon button poping up clipboard" id="clipboard-btn" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url">
{{svg "octicon-clippy" 16}}
</button>