2014-07-26 06:24:27 +02:00
{{ 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 >
2014-09-20 02:11:34 +02:00
< a class = "author" href = " {{ AppSubUrl }} / {{ .Repository.Owner.Name }} " > {{ .Repository.Owner.Name }} </ a >
2014-07-26 06:24:27 +02:00
< 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" >
2014-08-30 15:12:53 +02:00
< div class = "panel-header" >
2014-08-10 00:50:06 +02:00
< a class = "btn btn-small btn-black btn-header btn-radius right" href = " {{ .RepoLink }} /settings" > {{ .i18n.Tr "repo.settings" }} </ a >
2014-08-31 15:03:16 +02:00
< strong > {{ .i18n.Tr "repo.quick_guide" }} </ strong >
2014-08-10 00:50:06 +02:00
< / div >
2014-07-26 06:24:27 +02:00
< div class = "panel-content" >
< div id = "repo-clone" class = "clear text-center" >
2014-08-31 15:03:16 +02:00
< h2 > {{ .i18n.Tr "repo.clone_this_repo" }} </ h2 >
2015-08-09 19:38:26 +02:00
{{ 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 >
{{ 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 >
< 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 />
2014-08-31 15:03:16 +02:00
< 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 >
2015-03-18 10:00:28 +01:00
< 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 >
2014-07-26 06:24:27 +02:00
< hr / >
< / div >
< div id = "repo-bare-cmd" class = "text-center" >
2014-08-31 15:03:16 +02:00
< h2 > {{ .i18n.Tr "repo.create_new_repo_command" }} </ h2 >
2014-07-26 06:24:27 +02:00
< pre class = "text-left radius" > < code > touch README.md
git init
git add README.md
git commit -m "first commit"
2015-08-09 19:38:26 +02:00
git remote add origin < span class = "clone-url" > {{ if $.DisableSSH }}{{ $.CloneLink.HTTPS }}{{ else }}{{ $.CloneLink.SSH }}{{ end }} </ span >
2014-07-26 06:24:27 +02:00
git push -u origin master< / code > < / pre >
< br / >
< hr / >
< / div >
< div id = "repo-bare-remote" class = "text-center" >
2014-08-31 15:03:16 +02:00
< h2 > {{ .i18n.Tr "repo.push_exist_repo" }} </ h2 >
2015-08-09 19:38:26 +02:00
< pre class = "text-left radius" >< code > git remote add origin < span class = "clone-url" > {{ if $.DisableSSH }}{{ $.CloneLink.HTTPS }}{{ else }}{{ $.CloneLink.SSH }}{{ end }} </ span >
2014-07-26 06:24:27 +02:00
git push -u origin master< / code > < / pre >
< br / >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
2015-02-18 08:22:13 +01:00
{{ template "ng/base/footer" . }}