From c5fb50d41a34ddc7a700bc29e2d255e59ac0b735 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Fri, 20 Jan 2023 19:14:26 +0100 Subject: [PATCH] Navbar: Add global navigation Missing still is the apps button to jump to other blender.org sites. --- templates/base/head_navbar.tmpl | 22 +++ templates/custom/body_inner_pre.tmpl | 197 +++++++++++++++++++++++++++ templates/custom/extra_links.tmpl | 2 +- 3 files changed, 220 insertions(+), 1 deletion(-) create mode 100644 templates/base/head_navbar.tmpl create mode 100644 templates/custom/body_inner_pre.tmpl diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl new file mode 100644 index 0000000..f4c3206 --- /dev/null +++ b/templates/base/head_navbar.tmpl @@ -0,0 +1,22 @@ +
+ {{if and .IsSigned .MustChangePassword}} + {{/* No links */}} + {{else if .IsSigned}} + {{if not .UnitIssuesGlobalDisabled}} + {{.locale.Tr "issues"}} + {{end}} + {{if not .UnitPullsGlobalDisabled}} + {{.locale.Tr "pull_requests"}} + {{end}} + {{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}} + {{if .ShowMilestonesDashboardPage}}{{.locale.Tr "milestones"}}{{end}} + {{end}} + {{.locale.Tr "explore"}} + {{else if .IsLandingPageOrganizations}} + {{.locale.Tr "explore"}} + {{else}} + {{.locale.Tr "explore"}} + {{end}} + + {{template "custom/extra_links" .}} +
diff --git a/templates/custom/body_inner_pre.tmpl b/templates/custom/body_inner_pre.tmpl new file mode 100644 index 0000000..43b59ce --- /dev/null +++ b/templates/custom/body_inner_pre.tmpl @@ -0,0 +1,197 @@ + diff --git a/templates/custom/extra_links.tmpl b/templates/custom/extra_links.tmpl index 94d839a..745f88c 100644 --- a/templates/custom/extra_links.tmpl +++ b/templates/custom/extra_links.tmpl @@ -1 +1 @@ -{{.locale.Tr "Report a Bug"}} +{{.locale.Tr "Report a Bug"}}