testing
This commit is contained in:
parent
8e9a33935a
commit
944934acf7
1 changed files with 22 additions and 31 deletions
|
@ -1,40 +1,31 @@
|
||||||
<div class="card layout-card" id="navbar">
|
<div class="card layout-card" id="navbar">
|
||||||
<div class="item brand" style="justify-content: space-between;">
|
|
||||||
<a href="{{AppSubUrl}}/">
|
|
||||||
<img class="ui mini image" with="30" height="30" src="{{StaticUrlPrefix}}/img/logo.svg">
|
|
||||||
</a>
|
|
||||||
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
|
|
||||||
<i class="sidebar icon"></i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{if and .IsSigned .MustChangePassword}}
|
{{if and .IsSigned .MustChangePassword}}
|
||||||
{{/* No links */}}
|
{{/* No links */}}
|
||||||
{{else if .IsSigned}}
|
{{else if .IsSigned}}
|
||||||
<a class="item {{if .PageIsDashboard}}active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "dashboard"}}</a>
|
<a class="button-default {{if .PageIsDashboard}}active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "dashboard"}}</a>
|
||||||
{{if not .UnitIssuesGlobalDisabled}}
|
{{if not .UnitIssuesGlobalDisabled}}
|
||||||
<a class="item {{if .PageIsIssues}}active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
|
<a class="button-default {{if .PageIsIssues}}active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if not .UnitPullsGlobalDisabled}}
|
{{if not .UnitPullsGlobalDisabled}}
|
||||||
<a class="item {{if .PageIsPulls}}active{{end}}" href="{{AppSubUrl}}/pulls">{{.i18n.Tr "pull_requests"}}</a>
|
<a class="button-default {{if .PageIsPulls}}active{{end}}" href="{{AppSubUrl}}/pulls">{{.i18n.Tr "pull_requests"}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}}
|
{{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}}
|
||||||
{{if .ShowMilestonesDashboardPage}}<a class="item {{if .PageIsMilestonesDashboard}}active{{end}}" href="{{AppSubUrl}}/milestones">{{.i18n.Tr "milestones"}}</a>{{end}}
|
{{if .ShowMilestonesDashboardPage}}<a class="button-default {{if .PageIsMilestonesDashboard}}active{{end}}" href="{{AppSubUrl}}/milestones">{{.i18n.Tr "milestones"}}</a>{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
|
<a class="button-default {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
|
||||||
{{else if .IsLandingPageHome}}
|
{{else if .IsLandingPageHome}}
|
||||||
<a class="item {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "home"}}</a>
|
<a class="button-default {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "home"}}</a>
|
||||||
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
|
<a class="button-default {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
|
||||||
{{else if .IsLandingPageExplore}}
|
{{else if .IsLandingPageExplore}}
|
||||||
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "home"}}</a>
|
<a class="button-default {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "home"}}</a>
|
||||||
{{else if .IsLandingPageOrganizations}}
|
{{else if .IsLandingPageOrganizations}}
|
||||||
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/organizations">{{.i18n.Tr "home"}}</a>
|
<a class="button-default {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/organizations">{{.i18n.Tr "home"}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{template "custom/extra_links" .}}
|
{{template "custom/extra_links" .}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
<div class="item">
|
<div class="button-default">
|
||||||
<div class="ui icon input">
|
<div class="ui icon input">
|
||||||
<input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
|
<input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
|
||||||
<i class="icon df ac jc">{{svg "octicon-search" 16}}</i>
|
<i class="icon df ac jc">{{svg "octicon-search" 16}}</i>
|
||||||
|
@ -58,7 +49,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<a class="item link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/">
|
<a class="button-default link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/">
|
||||||
{{svg "octicon-sign-out"}}
|
{{svg "octicon-sign-out"}}
|
||||||
{{.i18n.Tr "sign_out"}}<!-- Sign Out -->
|
{{.i18n.Tr "sign_out"}}<!-- Sign Out -->
|
||||||
</a>
|
</a>
|
||||||
|
@ -105,7 +96,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="{{AppSubUrl}}/notifications" class="item poping up" data-content='{{.i18n.Tr "notifications"}}' data-variation="tiny inverted">
|
<a href="{{AppSubUrl}}/notifications" class="button-default poping up" data-content='{{.i18n.Tr "notifications"}}' data-variation="tiny inverted">
|
||||||
<span class="text">
|
<span class="text">
|
||||||
<span class="fitted">{{svg "octicon-bell"}}</span>
|
<span class="fitted">{{svg "octicon-bell"}}</span>
|
||||||
<span class="sr-mobile-only">{{.i18n.Tr "notifications"}}</span>
|
<span class="sr-mobile-only">{{.i18n.Tr "notifications"}}</span>
|
||||||
|
@ -124,16 +115,16 @@
|
||||||
<span class="fitted not-mobile">{{svg "octicon-triangle-down"}}</span>
|
<span class="fitted not-mobile">{{svg "octicon-triangle-down"}}</span>
|
||||||
</span>
|
</span>
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<a class="item" href="{{AppSubUrl}}/repo/create">
|
<a class="button-default" href="{{AppSubUrl}}/repo/create">
|
||||||
<span class="fitted">{{svg "octicon-plus"}}</span> {{.i18n.Tr "new_repo"}}
|
<span class="fitted">{{svg "octicon-plus"}}</span> {{.i18n.Tr "new_repo"}}
|
||||||
</a>
|
</a>
|
||||||
{{if not .DisableMigrations}}
|
{{if not .DisableMigrations}}
|
||||||
<a class="item" href="{{AppSubUrl}}/repo/migrate">
|
<a class="button-default" href="{{AppSubUrl}}/repo/migrate">
|
||||||
<span class="fitted">{{svg "octicon-repo-push"}}</span> {{.i18n.Tr "new_migrate"}}
|
<span class="fitted">{{svg "octicon-repo-push"}}</span> {{.i18n.Tr "new_migrate"}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .SignedUser.CanCreateOrganization}}
|
{{if .SignedUser.CanCreateOrganization}}
|
||||||
<a class="item" href="{{AppSubUrl}}/org/create">
|
<a class="button-default" href="{{AppSubUrl}}/org/create">
|
||||||
<span class="fitted">{{svg "octicon-organization"}}</span> {{.i18n.Tr "new_org"}}
|
<span class="fitted">{{svg "octicon-organization"}}</span> {{.i18n.Tr "new_org"}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -153,12 +144,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}">
|
<a class="button-default" href="{{AppSubUrl}}/{{.SignedUser.Name}}">
|
||||||
{{svg "octicon-person"}}
|
{{svg "octicon-person"}}
|
||||||
{{.i18n.Tr "your_profile"}}<!-- Your profile -->
|
{{.i18n.Tr "your_profile"}}<!-- Your profile -->
|
||||||
</a>
|
</a>
|
||||||
{{if not .DisableStars}}
|
{{if not .DisableStars}}
|
||||||
<a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars">
|
<a class="button-default" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars">
|
||||||
{{svg "octicon-star"}}
|
{{svg "octicon-star"}}
|
||||||
{{.i18n.Tr "your_starred"}}
|
{{.i18n.Tr "your_starred"}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -167,7 +158,7 @@
|
||||||
{{svg "octicon-tools"}}
|
{{svg "octicon-tools"}}
|
||||||
{{.i18n.Tr "your_settings"}}<!-- Your settings -->
|
{{.i18n.Tr "your_settings"}}<!-- Your settings -->
|
||||||
</a>
|
</a>
|
||||||
<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">
|
<a class="button-default" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">
|
||||||
{{svg "octicon-question"}}
|
{{svg "octicon-question"}}
|
||||||
{{.i18n.Tr "help"}}<!-- Help -->
|
{{.i18n.Tr "help"}}<!-- Help -->
|
||||||
</a>
|
</a>
|
||||||
|
@ -181,7 +172,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<a class="item link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/">
|
<a class="button-default link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/">
|
||||||
{{svg "octicon-sign-out"}}
|
{{svg "octicon-sign-out"}}
|
||||||
{{.i18n.Tr "sign_out"}}<!-- Sign Out -->
|
{{.i18n.Tr "sign_out"}}<!-- Sign Out -->
|
||||||
</a>
|
</a>
|
||||||
|
@ -189,14 +180,14 @@
|
||||||
</div><!-- end dropdown avatar menu -->
|
</div><!-- end dropdown avatar menu -->
|
||||||
</div><!-- end signed user right menu -->
|
</div><!-- end signed user right menu -->
|
||||||
{{else}}
|
{{else}}
|
||||||
<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">{{.i18n.Tr "help"}}</a>
|
<a class="button-default" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">{{.i18n.Tr "help"}}</a>
|
||||||
<div class="right stackable menu">
|
<div class="right stackable menu">
|
||||||
{{if .ShowRegistrationButton}}
|
{{if .ShowRegistrationButton}}
|
||||||
<a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">
|
<a class="button-default{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">
|
||||||
{{svg "octicon-person"}} {{.i18n.Tr "register"}}
|
{{svg "octicon-person"}} {{.i18n.Tr "register"}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{.CurrentURL}}">
|
<a class="button-default{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{.CurrentURL}}">
|
||||||
{{svg "octicon-sign-in"}} {{.i18n.Tr "sign_in"}}
|
{{svg "octicon-sign-in"}} {{.i18n.Tr "sign_in"}}
|
||||||
</a>
|
</a>
|
||||||
</div><!-- end anonymous right menu -->
|
</div><!-- end anonymous right menu -->
|
||||||
|
|
Reference in a new issue