parent
e5310cdbc1
commit
4465c58f4b
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||||||
0.6.15.0926 Beta |
0.6.16.1002 Beta |
@ -1,55 +1,61 @@ |
|||||||
{{template "ng/base/head" .}} |
{{template "base/head" .}} |
||||||
{{template "ng/base/header" .}} |
<div class="repository quickstart"> |
||||||
<div id="repo-wrapper" class="repo-bare"> |
{{template "repo/header" .}} |
||||||
<div id="repo-header" class="clear"> |
<div class="ui container"> |
||||||
<div class="container clear"> |
<div class="ui grid"> |
||||||
<h1 id="repo-header-name" class="left public"> |
<div class="sixteen wide column content"> |
||||||
<i class="mega-octicon octicon-{{if .Repository.IsPrivate}}lock{{else}}repo{{end}}"></i> |
{{template "base/alert" .}} |
||||||
<a class="author" href="{{AppSubUrl}}/{{.Repository.Owner.Name}}">{{.Repository.Owner.Name}}</a> |
{{if .IsRepositoryAdmin}} |
||||||
<span class="divider">/</span> |
<h4 class="ui top attached header"> |
||||||
<a class="repo text-bold" href="{{.RepoLink}}">{{.Repository.Name}}</a> |
{{.i18n.Tr "repo.quick_guide"}} |
||||||
</h1> |
<div class="ui right"> |
||||||
</div> |
<a class="ui black tiny button" href="{{.RepoLink}}/settings">{{.i18n.Tr "repo.settings"}}</a> |
||||||
</div> |
</div> |
||||||
<div id="repo-content" class="clear container"> |
</h4> |
||||||
<div id="repo-bare"> |
<div class="ui attached guide table segment"> |
||||||
<div id="repo-bare-start" class="panel panel-radius"> |
<div class="item"> |
||||||
<div class="panel-header"> |
<h3>{{.i18n.Tr "repo.clone_this_repo"}} <small>{{.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}</small></h3> |
||||||
<a class="btn btn-small btn-black btn-header btn-radius right" href="{{.RepoLink}}/settings">{{.i18n.Tr "repo.settings"}}</a> |
<div class="ui action small input"> |
||||||
<strong>{{.i18n.Tr "repo.quick_guide"}}</strong> |
|
||||||
</div> |
|
||||||
<div class="panel-content"> |
|
||||||
<div id="repo-clone" class="clear text-center"> |
|
||||||
<h2>{{.i18n.Tr "repo.clone_this_repo"}}</h2> |
|
||||||
{{if not $.DisableSSH}} |
{{if not $.DisableSSH}} |
||||||
<button class="btn btn-blue btn-first current left btn-left-radius" id="repo-clone-ssh" data-link="{{.CloneLink.SSH}}">SSH</button> |
<button class="ui blue basic clone button" id="repo-clone-ssh" data-link="{{.CloneLink.SSH}}"> |
||||||
|
SSH |
||||||
|
</button> |
||||||
{{end}} |
{{end}} |
||||||
<button class="btn {{if $.DisableSSH}}btn-first btn-blue current{{else}}btn-gray{{end}} left" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}">HTTPS</button> |
<button class="ui {{if $.DisableSSH}}blue{{end}} basic clone button" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}"> |
||||||
<input id="repo-clone-url" type="text" class="ipt ipt-disabled left" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" onclick="this.select()" readonly /> |
HTTPS |
||||||
<button class="btn btn-black left btn-right-radius" id="repo-clone-copy" data-copy-val="val" data-copy-from="#repo-clone-url">{{.i18n.Tr "repo.copy_link"}}</button> |
</button> |
||||||
<p class="text-center" id="repo-clone-help">{{.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}</p> |
<input id="repo-clone-url" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" readonly> |
||||||
<hr/> |
<button class="ui basic button poping up clipboard" id="clipboard-btn" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url"> |
||||||
</div> |
<i class="octicon octicon-clippy"></i> |
||||||
<div id="repo-bare-cmd" class="text-center"> |
</button> |
||||||
<h2>{{.i18n.Tr "repo.create_new_repo_command"}}</h2> |
</div> |
||||||
<pre class="text-left radius"><code>touch README.md |
</div> |
||||||
|
<div class="ui divider"></div> |
||||||
|
|
||||||
|
<div class="item"> |
||||||
|
<h3>{{.i18n.Tr "repo.create_new_repo_command"}}</h3> |
||||||
|
<div class="markdown"> |
||||||
|
<pre><code>touch README.md |
||||||
git init |
git init |
||||||
git add README.md |
git add README.md |
||||||
git commit -m "first commit" |
git commit -m "first commit" |
||||||
git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span> |
git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span> |
||||||
git push -u origin master</code></pre> |
git push -u origin master</code></pre> |
||||||
<br/> |
|
||||||
<hr/> |
|
||||||
</div> |
</div> |
||||||
<div id="repo-bare-remote" class="text-center"> |
</div> |
||||||
<h2>{{.i18n.Tr "repo.push_exist_repo"}}</h2> |
<div class="ui divider"></div> |
||||||
<pre class="text-left radius"><code>git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span> |
|
||||||
|
<div class="item"> |
||||||
|
<h3>{{.i18n.Tr "repo.push_exist_repo"}}</h3> |
||||||
|
<div class="markdown"> |
||||||
|
<pre><code>git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span> |
||||||
git push -u origin master</code></pre> |
git push -u origin master</code></pre> |
||||||
<br/> |
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
{{end}} |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{{template "ng/base/footer" .}} |
{{template "base/footer" .}} |
||||||
|
Loading…
Reference in new issue