From 578d981d7e196728dc0685f62a211383d4c808fa Mon Sep 17 00:00:00 2001 From: slene Date: Sun, 30 Mar 2014 11:38:41 +0800 Subject: display bare repo page --- templates/repo/single.tmpl | 4 --- templates/repo/single_bare.tmpl | 66 +++++++++++++++++++++++------------------ 2 files changed, 37 insertions(+), 33 deletions(-) (limited to 'templates') diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl index abaa4e8936..0bf7b0aaf2 100644 --- a/templates/repo/single.tmpl +++ b/templates/repo/single.tmpl @@ -4,9 +4,6 @@ {{template "repo/toolbar" .}}
- {{if .IsBareRepo}} - {{template "repo/single_bare" .}} - {{else}}
{{ $n := len .Treenames}} {{if not .IsFile}}{{end}} @@ -38,7 +35,6 @@ {{else}} {{template "repo/single_list" .}} {{end}} - {{end}}
{{template "base/footer" .}} diff --git a/templates/repo/single_bare.tmpl b/templates/repo/single_bare.tmpl index ed182ad28e..fe0e3aa355 100644 --- a/templates/repo/single_bare.tmpl +++ b/templates/repo/single_bare.tmpl @@ -1,31 +1,39 @@ -
-
-

Quick Guide

-
-
-

Clone this repository

-
- - - - - - - - +{{template "base/head" .}} +{{template "base/navbar" .}} +{{template "repo/nav" .}} +
+
+
+
+

Quick Guide

+
+
+

Clone this repository

+
+ + + + + + + + +
+

We recommend every repository include a README, LICENSE, and .gitignore.

+
+

Create a new repository on the command line

+
touch README.md
+        git init
+        git add README.md
+        git commit -m "first commit"
+        git remote add origin 
+        git push -u origin master
+
+

Push an existing repository from the command line

+
git remote add origin 
+        git push -u origin master
+
-

We recommend every repository include a README, LICENSE, and .gitignore.

-
-

Create a new repository on the command line

-
touch README.md
-git init
-git add README.md
-git commit -m "first commit"
-git remote add origin 
-git push -u origin master
-
-

Push an existing repository from the command line

-
git remote add origin 
-git push -u origin master
-
\ No newline at end of file +
+{{template "base/footer" .}} -- cgit v1.2.3