CSS navbar and color tweaks (#13609)
* CSS and color tweaks - Unify navbar-style menus - Fix admin bar overlapping menu bar - Fixes file edit comment box - Fix double border on review box - Fix review timeline icons * Many fixes to new-menu and navbar layout enhancements * misc settings fixes * navbar tweak * fix pr tabs * branch tag and arc color tweakstokarchuk/v1.17
parent
03fa2eccbc
commit
b2de034278
@ -1,35 +1,37 @@ |
||||
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar"> |
||||
<a class="{{if .PageIsAdminDashboard}}active{{end}} item" href="{{AppSubUrl}}/admin"> |
||||
{{.i18n.Tr "admin.dashboard"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminUsers}}active{{end}} item" href="{{AppSubUrl}}/admin/users"> |
||||
{{.i18n.Tr "admin.users"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminOrganizations}}active{{end}} item" href="{{AppSubUrl}}/admin/orgs"> |
||||
{{.i18n.Tr "admin.organizations"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminRepositories}}active{{end}} item" href="{{AppSubUrl}}/admin/repos"> |
||||
{{.i18n.Tr "admin.repositories"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminHooks}}active{{end}} item" href="{{AppSubUrl}}/admin/hooks"> |
||||
{{.i18n.Tr "admin.hooks"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminSystemHooks}}active{{end}} item" href="{{AppSubUrl}}/admin/system-hooks"> |
||||
{{.i18n.Tr "admin.systemhooks"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminAuthentications}}active{{end}} item" href="{{AppSubUrl}}/admin/auths"> |
||||
{{.i18n.Tr "admin.authentication"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminEmails}}active{{end}} item" href="{{AppSubUrl}}/admin/emails"> |
||||
{{.i18n.Tr "admin.emails"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminConfig}}active{{end}} item" href="{{AppSubUrl}}/admin/config"> |
||||
{{.i18n.Tr "admin.config"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminNotices}}active{{end}} item" href="{{AppSubUrl}}/admin/notices"> |
||||
{{.i18n.Tr "admin.notices"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminMonitor}}active{{end}} item" href="{{AppSubUrl}}/admin/monitor"> |
||||
{{.i18n.Tr "admin.monitor"}} |
||||
</a> |
||||
<div class="new-menu-inner"> |
||||
<a class="{{if .PageIsAdminDashboard}}active{{end}} item" href="{{AppSubUrl}}/admin"> |
||||
{{.i18n.Tr "admin.dashboard"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminUsers}}active{{end}} item" href="{{AppSubUrl}}/admin/users"> |
||||
{{.i18n.Tr "admin.users"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminOrganizations}}active{{end}} item" href="{{AppSubUrl}}/admin/orgs"> |
||||
{{.i18n.Tr "admin.organizations"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminRepositories}}active{{end}} item" href="{{AppSubUrl}}/admin/repos"> |
||||
{{.i18n.Tr "admin.repositories"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminHooks}}active{{end}} item" href="{{AppSubUrl}}/admin/hooks"> |
||||
{{.i18n.Tr "admin.hooks"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminSystemHooks}}active{{end}} item" href="{{AppSubUrl}}/admin/system-hooks"> |
||||
{{.i18n.Tr "admin.systemhooks"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminAuthentications}}active{{end}} item" href="{{AppSubUrl}}/admin/auths"> |
||||
{{.i18n.Tr "admin.authentication"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminEmails}}active{{end}} item" href="{{AppSubUrl}}/admin/emails"> |
||||
{{.i18n.Tr "admin.emails"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminConfig}}active{{end}} item" href="{{AppSubUrl}}/admin/config"> |
||||
{{.i18n.Tr "admin.config"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminNotices}}active{{end}} item" href="{{AppSubUrl}}/admin/notices"> |
||||
{{.i18n.Tr "admin.notices"}} |
||||
</a> |
||||
<a class="{{if .PageIsAdminMonitor}}active{{end}} item" href="{{AppSubUrl}}/admin/monitor"> |
||||
{{.i18n.Tr "admin.monitor"}} |
||||
</a> |
||||
</div> |
||||
</div> |
||||
|
@ -1,29 +1,31 @@ |
||||
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar"> |
||||
<a class="{{if .PageIsSettingsOptions}}active{{end}} item" href="{{.RepoLink}}/settings"> |
||||
{{.i18n.Tr "repo.settings.options"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsCollaboration}}active{{end}} item" href="{{.RepoLink}}/settings/collaboration"> |
||||
{{.i18n.Tr "repo.settings.collaboration"}} |
||||
</a> |
||||
{{if not .Repository.IsEmpty}} |
||||
<a class="{{if .PageIsSettingsBranches}}active{{end}} item" href="{{.RepoLink}}/settings/branches"> |
||||
{{.i18n.Tr "repo.settings.branches"}} |
||||
<div class="new-menu-inner"> |
||||
<a class="{{if .PageIsSettingsOptions}}active{{end}} item" href="{{.RepoLink}}/settings"> |
||||
{{.i18n.Tr "repo.settings.options"}} |
||||
</a> |
||||
{{end}} |
||||
<a class="{{if .PageIsSettingsHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks"> |
||||
{{.i18n.Tr "repo.settings.hooks"}} |
||||
</a> |
||||
{{if .SignedUser.CanEditGitHook}} |
||||
<a class="{{if .PageIsSettingsGitHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks/git"> |
||||
{{.i18n.Tr "repo.settings.githooks"}} |
||||
<a class="{{if .PageIsSettingsCollaboration}}active{{end}} item" href="{{.RepoLink}}/settings/collaboration"> |
||||
{{.i18n.Tr "repo.settings.collaboration"}} |
||||
</a> |
||||
{{end}} |
||||
<a class="{{if .PageIsSettingsKeys}}active{{end}} item" href="{{.RepoLink}}/settings/keys"> |
||||
{{.i18n.Tr "repo.settings.deploy_keys"}} |
||||
</a> |
||||
{{if .LFSStartServer}} |
||||
<a class="{{if .PageIsSettingsLFS}}active{{end}} item" href="{{.RepoLink}}/settings/lfs"> |
||||
{{.i18n.Tr "repo.settings.lfs"}} |
||||
{{if not .Repository.IsEmpty}} |
||||
<a class="{{if .PageIsSettingsBranches}}active{{end}} item" href="{{.RepoLink}}/settings/branches"> |
||||
{{.i18n.Tr "repo.settings.branches"}} |
||||
</a> |
||||
{{end}} |
||||
<a class="{{if .PageIsSettingsHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks"> |
||||
{{.i18n.Tr "repo.settings.hooks"}} |
||||
</a> |
||||
{{end}} |
||||
{{if .SignedUser.CanEditGitHook}} |
||||
<a class="{{if .PageIsSettingsGitHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks/git"> |
||||
{{.i18n.Tr "repo.settings.githooks"}} |
||||
</a> |
||||
{{end}} |
||||
<a class="{{if .PageIsSettingsKeys}}active{{end}} item" href="{{.RepoLink}}/settings/keys"> |
||||
{{.i18n.Tr "repo.settings.deploy_keys"}} |
||||
</a> |
||||
{{if .LFSStartServer}} |
||||
<a class="{{if .PageIsSettingsLFS}}active{{end}} item" href="{{.RepoLink}}/settings/lfs"> |
||||
{{.i18n.Tr "repo.settings.lfs"}} |
||||
</a> |
||||
{{end}} |
||||
</div> |
||||
</div> |
||||
|
@ -1,19 +1,21 @@ |
||||
{{if or .EnableOpenIDSignIn .EnableSSPI}} |
||||
<div class="ui secondary pointing tabular top attached borderless menu new-menu navbar"> |
||||
<a class="{{if .PageIsLogin}}active{{end}} item" rel="nofollow" href="{{AppSubUrl}}/user/login"> |
||||
{{.i18n.Tr "auth.login_userpass"}} |
||||
</a> |
||||
{{if .EnableOpenIDSignIn}} |
||||
<a class="{{if .PageIsLoginOpenID}}active{{end}} item" rel="nofollow" href="{{AppSubUrl}}/user/login/openid"> |
||||
<i class="fa fa-openid"></i> |
||||
OpenID |
||||
</a> |
||||
{{end}} |
||||
{{if .EnableSSPI}} |
||||
<a class="item" rel="nofollow" href="{{AppSubUrl}}/user/login?auth_with_sspi=1"> |
||||
<i class="fa fa-windows"></i> |
||||
SSPI |
||||
</a> |
||||
{{end}} |
||||
<div class="new-menu-inner"> |
||||
<a class="{{if .PageIsLogin}}active{{end}} item" rel="nofollow" href="{{AppSubUrl}}/user/login"> |
||||
{{.i18n.Tr "auth.login_userpass"}} |
||||
</a> |
||||
{{if .EnableOpenIDSignIn}} |
||||
<a class="{{if .PageIsLoginOpenID}}active{{end}} item" rel="nofollow" href="{{AppSubUrl}}/user/login/openid"> |
||||
<i class="fa fa-openid"></i> |
||||
OpenID |
||||
</a> |
||||
{{end}} |
||||
{{if .EnableSSPI}} |
||||
<a class="item" rel="nofollow" href="{{AppSubUrl}}/user/login?auth_with_sspi=1"> |
||||
<i class="fa fa-windows"></i> |
||||
SSPI |
||||
</a> |
||||
{{end}} |
||||
</div> |
||||
</div> |
||||
{{end}} |
||||
|
@ -1,11 +1,13 @@ |
||||
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar"> |
||||
<a class="{{if .PageIsOpenIDConnect}}active{{end}} item" href="{{AppSubUrl}}/user/openid/connect"> |
||||
{{.i18n.Tr "auth.openid_connect_title"}} |
||||
</a> |
||||
{{if .EnableOpenIDSignUp}} |
||||
<a class="{{if .PageIsOpenIDRegister}}active{{end}} item" href="{{AppSubUrl}}/user/openid/register"> |
||||
{{.i18n.Tr "auth.openid_register_title"}} |
||||
<div class="new-menu-inner"> |
||||
<a class="{{if .PageIsOpenIDConnect}}active{{end}} item" href="{{AppSubUrl}}/user/openid/connect"> |
||||
{{.i18n.Tr "auth.openid_connect_title"}} |
||||
</a> |
||||
{{end}} |
||||
{{if .EnableOpenIDSignUp}} |
||||
<a class="{{if .PageIsOpenIDRegister}}active{{end}} item" href="{{AppSubUrl}}/user/openid/register"> |
||||
{{.i18n.Tr "auth.openid_register_title"}} |
||||
</a> |
||||
{{end}} |
||||
</div> |
||||
</div> |
||||
|
||||
|
@ -1,23 +1,25 @@ |
||||
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar"> |
||||
<a class="{{if .PageIsSettingsProfile}}active{{end}} item" href="{{AppSubUrl}}/user/settings"> |
||||
{{.i18n.Tr "settings.profile"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsAccount}}active{{end}} item" href="{{AppSubUrl}}/user/settings/account"> |
||||
{{.i18n.Tr "settings.account"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsSecurity}}active{{end}} item" href="{{AppSubUrl}}/user/settings/security"> |
||||
{{.i18n.Tr "settings.security"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsApplications}}active{{end}} item" href="{{AppSubUrl}}/user/settings/applications"> |
||||
{{.i18n.Tr "settings.applications"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsKeys}}active{{end}} item" href="{{AppSubUrl}}/user/settings/keys"> |
||||
{{.i18n.Tr "settings.ssh_gpg_keys"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsOrganization}}active{{end}} item" href="{{AppSubUrl}}/user/settings/organization"> |
||||
{{.i18n.Tr "settings.organization"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsRepos}}active{{end}} item" href="{{AppSubUrl}}/user/settings/repos"> |
||||
{{.i18n.Tr "settings.repos"}} |
||||
</a> |
||||
<div class="new-menu-inner"> |
||||
<a class="{{if .PageIsSettingsProfile}}active{{end}} item" href="{{AppSubUrl}}/user/settings"> |
||||
{{.i18n.Tr "settings.profile"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsAccount}}active{{end}} item" href="{{AppSubUrl}}/user/settings/account"> |
||||
{{.i18n.Tr "settings.account"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsSecurity}}active{{end}} item" href="{{AppSubUrl}}/user/settings/security"> |
||||
{{.i18n.Tr "settings.security"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsApplications}}active{{end}} item" href="{{AppSubUrl}}/user/settings/applications"> |
||||
{{.i18n.Tr "settings.applications"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsKeys}}active{{end}} item" href="{{AppSubUrl}}/user/settings/keys"> |
||||
{{.i18n.Tr "settings.ssh_gpg_keys"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsOrganization}}active{{end}} item" href="{{AppSubUrl}}/user/settings/organization"> |
||||
{{.i18n.Tr "settings.organization"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsRepos}}active{{end}} item" href="{{AppSubUrl}}/user/settings/repos"> |
||||
{{.i18n.Tr "settings.repos"}} |
||||
</a> |
||||
</div> |
||||
</div> |
||||
|
Loading…
Reference in new issue