summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2021-03-08 17:55:37 +0000
committerGitHub <noreply@github.com>2021-03-08 18:55:37 +0100
commitf4ce10c6a35b90b8e3943bbb66fa63e731d56e08 (patch)
tree2572ccdd0e5a1530be054f882d02330c24d319ba /templates
parentf061277c86f7c54749cdc156904ae3658927e48e (diff)
downloadgitea-f4ce10c6a35b90b8e3943bbb66fa63e731d56e08.tar.gz
gitea-f4ce10c6a35b90b8e3943bbb66fa63e731d56e08.zip
Minor UI fixes (#14926)
* disable fork button when not signed in * fix commit body styling on PR page * fixup! fix commit body styling on PR page
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/header.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 2f593567d5..f9df406274 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -83,7 +83,7 @@
</div>
</form>
{{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
- <div class="ui labeled button" tabindex="0">
+ <div class="ui labeled button {{if not $.IsSigned}} disabled{{end}}" tabindex="0">
<a class="ui compact small basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny">
{{svg "octicon-repo-forked"}}{{$.i18n.Tr "repo.fork"}}
</a>