diff options
author | Alberto González Palomo <bugs@sentido-labs.com> | 2018-01-10 07:19:50 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-01-10 08:19:50 +0200 |
commit | 45c264f681e3f7e1a22a191029836a690959aac3 (patch) | |
tree | db85d9352b85d7e2df33f3bebe782212f9a1f888 /templates | |
parent | 88a3bb6d42536d0458b48269b26d821d59055fe2 (diff) | |
download | gitea-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')
-rw-r--r-- | templates/base/head.tmpl | 3 | ||||
-rw-r--r-- | templates/custom/extra_links.tmpl | 0 | ||||
-rw-r--r-- | templates/custom/extra_tabs.tmpl | 0 | ||||
-rw-r--r-- | templates/repo/header.tmpl | 2 |
4 files changed, 5 insertions, 0 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 04c5a43e4c..a486d9b9b9 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -158,6 +158,9 @@ {{end}} <a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a> + + {{template "custom/extra_links" .}} + {{/* <div class="item"> <div class="ui icon input"> diff --git a/templates/custom/extra_links.tmpl b/templates/custom/extra_links.tmpl new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/templates/custom/extra_links.tmpl diff --git a/templates/custom/extra_tabs.tmpl b/templates/custom/extra_tabs.tmpl new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/templates/custom/extra_tabs.tmpl 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"> |