summaryrefslogtreecommitdiffstats
path: root/templates/repo/header.tmpl
diff options
context:
space:
mode:
authorAlberto González Palomo <bugs@sentido-labs.com>2018-01-10 07:19:50 +0100
committerLauris BH <lauris@nix.lv>2018-01-10 08:19:50 +0200
commit45c264f681e3f7e1a22a191029836a690959aac3 (patch)
treedb85d9352b85d7e2df33f3bebe782212f9a1f888 /templates/repo/header.tmpl
parent88a3bb6d42536d0458b48269b26d821d59055fe2 (diff)
downloadgitea-45c264f681e3f7e1a22a191029836a690959aac3.tar.gz
gitea-45c264f681e3f7e1a22a191029836a690959aac3.zip
Templates for extra links in top navbar and repo tool tabs. (#3308)
These templates add content to the top navbar and to the repository page. This way we do not have to copy and modify the whole template, and re-modify it after upgrading Gitea if it changes. Signed-off-by: Alberto González Palomo <bugs@sentido-labs.com>
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r--templates/repo/header.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index c83505ac96..db5b6c7f0c 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -89,6 +89,8 @@
</a>
{{end}}
+ {{template "custom/extra_tabs" .}}
+
{{if .IsRepositoryAdmin}}
<div class="right menu">
<a class="{{if .PageIsSettings}}active{{end}} item" href="{{.RepoLink}}/settings">