aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/home.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r--templates/repo/home.tmpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index b23e851139..19989bbe06 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -95,6 +95,17 @@
</div>
<div class="fitted item">
+ {{if eq $n 0}}
+ {{if .Repository.IsTemplate}}
+ <div class="ui tiny blue buttons">
+ <a href="{{AppSubUrl}}/repo/create?template_id={{.Repository.ID}}" class="ui button">
+ {{.i18n.Tr "repo.use_template"}}
+ </a>
+ </div>
+ {{end}}
+ {{end}}
+ </div>
+ <div class="fitted item">
<!-- Only show clone panel in repository home page -->
{{if eq $n 0}}