diff --git a/templates/repo/clone_panel.tmpl b/templates/repo/clone_panel.tmpl new file mode 100644 index 0000000000..42896c5c13 --- /dev/null +++ b/templates/repo/clone_panel.tmpl @@ -0,0 +1,76 @@ +{{$n := len .TreeNames}} +{{$l := Eval $n "-" 1}} +{{$isHomepage := (eq $n 0)}} +
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 62bd3e1766..55ac307571 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -113,79 +113,7 @@ {{end}} - + {{template "repo/clone_panel" .}} {{if .IsViewFile}} {{template "repo/view_file" .}}