summaryrefslogtreecommitdiffstats
path: root/templates/repo/bare.tmpl
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-07-26 00:24:27 -0400
committerUnknwon <joe2010xtmf@163.com>2014-07-26 00:24:27 -0400
commit8dd07c0ddd99ae626a1ec8c06f75f27fed51269f (patch)
tree261d3c9911dabc58c1ac54e4e36b3dee24d2032b /templates/repo/bare.tmpl
parent0a739cf9ac901f54484c34bba8322418dedb09b0 (diff)
downloadgitea-8dd07c0ddd99ae626a1ec8c06f75f27fed51269f.tar.gz
gitea-8dd07c0ddd99ae626a1ec8c06f75f27fed51269f.zip
New UI merge in progress
Diffstat (limited to 'templates/repo/bare.tmpl')
-rw-r--r--templates/repo/bare.tmpl50
1 files changed, 50 insertions, 0 deletions
diff --git a/templates/repo/bare.tmpl b/templates/repo/bare.tmpl
new file mode 100644
index 0000000000..241fea8519
--- /dev/null
+++ b/templates/repo/bare.tmpl
@@ -0,0 +1,50 @@
+{{template "ng/base/head" .}}
+{{template "ng/base/header" .}}
+<div id="repo-wrapper" class="repo-bare">
+ <div id="repo-header" class="clear">
+ <div class="container clear">
+ <h1 id="repo-header-name" class="left public">
+ <i class="mega-octicon octicon-{{if .Repository.IsPrivate}}lock{{else}}repo{{end}}"></i>
+ <a class="author" href="/{{.Repository.Owner.Name}}">{{.Repository.Owner.Name}}</a>
+ <span class="divider">/</span>
+ <a class="repo text-bold" href="{{.RepoLink}}">{{.Repository.Name}}</a>
+ </h1>
+ </div>
+ </div>
+ <div id="repo-content" class="clear container">
+ <div id="repo-bare">
+ <div id="repo-bare-start" class="panel panel-radius">
+ <p class="panel-header"><strong>Quick Start</strong></p>
+ <div class="panel-content">
+ <div id="repo-clone" class="clear text-center">
+ <h2>Clone this repository</h2>
+ <button id="repo-clone-ssh" class="btn btn-blue current left btn-left-radius">SSH</button>
+ <button id="repo-clone-https" class="btn btn-gray left">HTTPS</button>
+ <input id="repo-clone-url" type="text" class="ipt ipt-disabled left" value="{{.CloneLink.SSH}}" />
+ <button id="repo-clone-copy" class="btn btn-black left btn-right-radius">Copy</button>
+ <p class="text-center" id="repo-clone-help">Need help cloning? Visit <a href="#">Help</a>!</p>
+ <hr/>
+ </div>
+ <div id="repo-bare-cmd" class="text-center">
+ <h2>Create a new repository on the command line</h2>
+ <pre class="text-left radius"><code>touch README.md
+git init
+git add README.md
+git commit -m "first commit"
+git remote add origin <span class="clone-url">{{.CloneLink.SSH}}</span>
+git push -u origin master</code></pre>
+ <br/>
+ <hr/>
+ </div>
+ <div id="repo-bare-remote" class="text-center">
+ <h2>Push an existing repository from the command line</h2>
+ <pre class="text-left radius"><code>git remote add origin <span class="clone-url">{{.CloneLink.SSH}}</span>
+git push -u origin master</code></pre>
+ <br/>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+{{template "ng/base/footer" .}} \ No newline at end of file