From 2580e7b57e60011766cf58a6c7cce421e193a668 Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Thu, 3 Dec 2015 02:15:00 +0100 Subject: UI: Always show menu on repo pages Merges repo/sidebar.tmpl with repo/header.tmpl and makes every repo page use middleware.RepoRef() necessary to display information on this menu. --- templates/repo/commits.tmpl | 1 - templates/repo/forks.tmpl | 1 - templates/repo/header.tmpl | 34 ++++++++++++++++++++++++++++++ templates/repo/home.tmpl | 1 - templates/repo/issue/labels.tmpl | 1 - templates/repo/issue/list.tmpl | 1 - templates/repo/issue/milestones.tmpl | 1 - templates/repo/release/list.tmpl | 1 - templates/repo/release/new.tmpl | 1 - templates/repo/settings/collaboration.tmpl | 1 - templates/repo/settings/deploy_keys.tmpl | 1 - templates/repo/settings/githook_edit.tmpl | 1 - templates/repo/settings/githooks.tmpl | 1 - templates/repo/settings/hook_new.tmpl | 1 - templates/repo/settings/hooks.tmpl | 1 - templates/repo/settings/options.tmpl | 1 - templates/repo/sidebar.tmpl | 34 ------------------------------ templates/repo/watchers.tmpl | 1 - templates/repo/wiki/new.tmpl | 1 - templates/repo/wiki/pages.tmpl | 1 - templates/repo/wiki/start.tmpl | 1 - templates/repo/wiki/view.tmpl | 1 - 22 files changed, 34 insertions(+), 54 deletions(-) delete mode 100644 templates/repo/sidebar.tmpl (limited to 'templates') diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index 03a07935c8..07762606fa 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -1,7 +1,6 @@ {{template "base/head" .}}
{{template "repo/header" .}} - {{template "repo/sidebar" .}}
{{template "repo/commits_table" .}}
diff --git a/templates/repo/forks.tmpl b/templates/repo/forks.tmpl index f541cd0a84..91085b9d22 100644 --- a/templates/repo/forks.tmpl +++ b/templates/repo/forks.tmpl @@ -1,7 +1,6 @@ {{template "base/head" .}}
{{template "repo/header" .}} - {{template "repo/sidebar" .}}

{{.i18n.Tr "repo.forks"}} diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 10455db516..d345c566b9 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -45,3 +45,37 @@

{{end}} +{{if not .IsBareRepo}} + +
+{{else}} +
+{{end}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 85094104bf..b733583b0a 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -1,7 +1,6 @@ {{template "base/head" .}}
{{template "repo/header" .}} - {{template "repo/sidebar" .}}

{{if .Repository.DescriptionHtml}}{{.Repository.DescriptionHtml}}{{else}}{{.i18n.Tr "repo.no_desc"}}{{end}} diff --git a/templates/repo/issue/labels.tmpl b/templates/repo/issue/labels.tmpl index f955973c6d..dd84ce416c 100644 --- a/templates/repo/issue/labels.tmpl +++ b/templates/repo/issue/labels.tmpl @@ -1,7 +1,6 @@ {{template "base/head" .}}

{{template "repo/header" .}} - {{template "repo/sidebar" .}}