|
@@ -169,6 +169,26 @@ |
|
|
|
|
|
|
|
|
{{template "custom/body_inner_pre" .}} |
|
|
{{template "custom/body_inner_pre" .}} |
|
|
|
|
|
|
|
|
|
|
|
{{if .IsSigned}} |
|
|
|
|
|
{{if gt .SignedUser.MaxRepoCreation 0}} |
|
|
|
|
|
{{/* a/the ‘first-class citizen’ gets the standard gitea navigation bar */}} |
|
|
|
|
|
<div class="ui top secondary stackable main menu following bar light"> |
|
|
|
|
|
{{template "base/head_navbar" .}} |
|
|
|
|
|
</div><!-- end bar --> |
|
|
|
|
|
{{else}} |
|
|
|
|
|
<a class="ui primary right corner label link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/" |
|
|
|
|
|
title="{{.i18n.Tr "signed_in_as"}} {{.SignedUser.Name}} — {{.i18n.Tr "sign_out"}}"> |
|
|
|
|
|
<i class="icon">{{svg "octicon-sign-out" 16}}</i> |
|
|
|
|
|
</a> |
|
|
|
|
|
{{end}} |
|
|
|
|
|
{{else}} |
|
|
|
|
|
<a class="ui{{if .PageIsSignIn}} active{{end}} right corner label" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{.Link}}" |
|
|
|
|
|
title="{{.i18n.Tr "sign_in"}}" |
|
|
|
|
|
> |
|
|
|
|
|
<i class="icon">{{svg "octicon-sign-in" 16}}</i> |
|
|
|
|
|
</a> |
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
{{/* |
|
|
{{/* |
|
|
</div> |
|
|
</div> |
|
|
</body> |
|
|
</body> |
|
|