summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-20 08:25:41 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-20 08:25:41 -0400
commite8a49c7746f3d93688d83401c69b0f4936c25783 (patch)
tree6a9934cf1aea634a9886b1e759c9bd060541f959 /templates
parentcb80111e8923ff9317199dca61509e32408279ca (diff)
downloadgitea-e8a49c7746f3d93688d83401c69b0f4936c25783.tar.gz
gitea-e8a49c7746f3d93688d83401c69b0f4936c25783.zip
Add data to ui
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/single_bare.tmpl10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/single_bare.tmpl b/templates/repo/single_bare.tmpl
index caf2ef7498..999ff557b0 100644
--- a/templates/repo/single_bare.tmpl
+++ b/templates/repo/single_bare.tmpl
@@ -6,8 +6,8 @@
<h3>Clone this repository</h3>
<div class="input-group col-md-8 col-md-offset-2 guide-buttons">
<span class="input-group-btn">
- <button class="btn btn-default" data-url="https-link" type="button">HTTPS</button>
- <button class="btn btn-default" data-url="git-link" type="button">SSH</button>
+ <button class="btn btn-default" data-url="{{.CloneLink.HTTPS}}" type="button">HTTPS</button>
+ <button class="btn btn-default" data-url="{{.CloneLink.SSH}}" type="button">SSH</button>
</span>
<input type="text" class="form-control" id="guide-clone-url" value="" readonly/>
<span class="input-group-btn">
@@ -20,12 +20,12 @@
<pre class="text-left"><code>touch README.md
git init
git add README.md
-git commit -m "first commit"
-git remote add origin <span class="clone-url">https://github.com/fuxiaohei/air.git</span>
+git commit -m "first commit" {{.CloneLink.SSH}}
+git remote add origin <span class="clone-url">{{.CloneLink.HTTPS}}</span>
git push -u origin master</code></pre>
<hr/>
<h3>Push an existing repository from the command line</h3>
- <pre class="text-left"><code>git remote add origin <span class="clone-url">https://github.com/fuxiaohei/air.git</span>
+ <pre class="text-left"><code>git remote add origin <span class="clone-url">{{.CloneLink.HTTPS}}</span>
git push -u origin master</code></pre>
</div>
</div> \ No newline at end of file