From 045603d65ec959aa6b470ad05c1d7f5a4ed90b27 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 11 Jan 2023 20:10:08 +0700 Subject: [PATCH] Gitea-ui-customized : update to be compatible with Gitea 1.18 build_gitea : Support git tag and build a completely usable binary --- .../templates/base/head_navbar.tmpl | 83 ++++++++++--------- build_gitea/Linux/build.sh | 26 +++++- 2 files changed, 65 insertions(+), 44 deletions(-) diff --git a/Gitea-ui-customized/templates/base/head_navbar.tmpl b/Gitea-ui-customized/templates/base/head_navbar.tmpl index 5e75897..1a8e57e 100644 --- a/Gitea-ui-customized/templates/base/head_navbar.tmpl +++ b/Gitea-ui-customized/templates/base/head_navbar.tmpl @@ -4,11 +4,11 @@ {{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}} {{end}}
- - + + {{if .IsSigned}} - + {{svg "octicon-bell"}} @@ -26,19 +26,19 @@ {{/* No links */}} {{else if .IsSigned}} {{if not .UnitIssuesGlobalDisabled}} - {{.i18n.Tr "issues"}} + {{.locale.Tr "issues"}} {{end}} {{if not .UnitPullsGlobalDisabled}} - {{.i18n.Tr "pull_requests"}} + {{.locale.Tr "pull_requests"}} {{end}} {{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}} - {{if .ShowMilestonesDashboardPage}}{{.i18n.Tr "milestones"}}{{end}} + {{if .ShowMilestonesDashboardPage}}{{.locale.Tr "milestones"}}{{end}} {{end}} - {{.i18n.Tr "explore"}} + {{.locale.Tr "explore"}} {{else if .IsLandingPageOrganizations}} - {{.i18n.Tr "explore"}} + {{.locale.Tr "explore"}} {{else}} - {{.i18n.Tr "explore"}} + {{.locale.Tr "explore"}} {{end}} {{template "custom/extra_links" .}} @@ -46,7 +46,7 @@ {{/* TODO
- + {{svg "octicon-search" 16}}
@@ -55,22 +55,22 @@ {{if and .IsSigned .MustChangePassword}}