2014-08-02 11:47:33 -06:00
|
|
|
<div id="repo-header" class="clear">
|
|
|
|
<div class="container clear">
|
|
|
|
<h1 id="repo-header-name" class="left public">
|
2014-08-07 04:40:05 -06:00
|
|
|
<i class="mega-octicon octicon-{{if .Repository.IsPrivate}}lock{{else if .Repository.IsMirror}}repo-clone{{else}}repo{{end}}"></i>
|
2014-09-19 18:11:34 -06:00
|
|
|
<a class="author" href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a>
|
2014-08-02 11:47:33 -06:00
|
|
|
<span class="divider">/</span>
|
|
|
|
<a class="repo text-bold" href="{{.RepoLink}}">{{.Repository.Name}}</a>
|
2014-08-07 04:40:05 -06:00
|
|
|
{{if .Repository.IsMirror}}<span class="label label-gray">{{.i18n.Tr "mirror"}}</span>{{end}}
|
2014-08-02 11:47:33 -06:00
|
|
|
</h1>
|
|
|
|
<ul id="repo-header-meta" class="right menu menu-line">
|
2014-09-14 14:43:22 -06:00
|
|
|
<li id="repo-header-download" class="drop">
|
2014-08-02 11:47:33 -06:00
|
|
|
<a id="repo-header-download-btn" href="#">
|
|
|
|
<button class="btn btn-black text-bold btn-radius">
|
|
|
|
<i class="octicon octicon-cloud-download"></i>
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
<div id="repo-header-download-drop" class="drop-down">
|
|
|
|
<div id="repo-clone" class="clear">
|
2014-08-31 07:03:16 -06:00
|
|
|
<button class="btn btn-blue left left btn-left-radius" id="repo-clone-ssh" data-link="{{.CloneLink.SSH}}">SSH</button>
|
|
|
|
<button class="btn btn-gray left" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}">HTTPS</button>
|
|
|
|
<input id="repo-clone-url" class="ipt ipt-disabled left" value="{{.CloneLink.SSH}}" readonly />
|
|
|
|
<button id="repo-clone-copy" class="btn btn-black left btn-right-radius" data-copy-val="val" data-copy-from="#repo-clone-url">{{.i18n.Tr "repo.copy_link"}}</button>
|
2014-08-10 21:11:18 -06:00
|
|
|
<p class="text-center" id="repo-clone-help">{{.i18n.Tr "repo.clone_helper" | Str2html}}</p>
|
2014-08-02 11:47:33 -06:00
|
|
|
<hr/>
|
|
|
|
<div class="text-center" id="repo-clone-zip">
|
|
|
|
<a class="btn btn-green btn-radius" href="{{.RepoLink}}/archive/{{.BranchName}}.zip"><i class="octicon octicon-file-zip"></i>ZIP</a>
|
|
|
|
<a class="btn btn-green btn-radius" href="{{.RepoLink}}/archive/{{.BranchName}}.tar.gz"><i class="octicon octicon-file-zip"></i>TAR.GZ</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li id="repo-header-watch">
|
2014-08-10 21:11:18 -06:00
|
|
|
<a id="repo-header-watch-btn" href="{{.RepoLink}}/action/{{if .IsWatchingRepo}}un{{end}}watch">
|
2014-08-02 11:47:33 -06:00
|
|
|
<button class="btn btn-gray text-bold btn-radius">
|
2014-08-10 21:11:18 -06:00
|
|
|
<i class="octicon octicon-eye-watch"></i>{{if .IsWatchingRepo}}{{.i18n.Tr "repo.unwatch"}}{{else}}{{.i18n.Tr "repo.watch"}}{{end}}<span class="num">{{.Repository.NumWatches}}</span>
|
2014-08-02 11:47:33 -06:00
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li id="repo-header-star">
|
2014-08-10 21:11:18 -06:00
|
|
|
<a id="repo-header-star-btn" href="{{.RepoLink}}/action/{{if .IsStaringRepo}}un{{end}}star">
|
2014-08-02 11:47:33 -06:00
|
|
|
<button class="btn btn-gray text-bold btn-radius">
|
2014-08-10 21:11:18 -06:00
|
|
|
<i class="octicon octicon-star"></i>{{if .IsStaringRepo}}{{.i18n.Tr "repo.unstar"}}{{else}}{{.i18n.Tr "repo.star"}}{{end}}
|
2014-08-02 11:47:33 -06:00
|
|
|
<span class="num">{{.Repository.NumStars}}</span>
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
</li>
|
2014-08-31 10:33:40 -06:00
|
|
|
<!-- <li id="repo-header-fork">
|
2014-08-10 21:11:18 -06:00
|
|
|
<a id="repo-header-fork-btn" href="{{.RepoLink}}/action/fork">
|
2014-08-02 11:47:33 -06:00
|
|
|
<button class="btn btn-gray text-bold btn-radius">
|
2014-08-10 21:11:18 -06:00
|
|
|
<i class="octicon octicon-repo-forked"></i>{{.i18n.Tr "repo.fork"}}
|
2014-08-02 11:47:33 -06:00
|
|
|
<span class="num">{{.Repository.NumForks}}</span>
|
|
|
|
</button>
|
|
|
|
</a>
|
2014-08-31 10:33:40 -06:00
|
|
|
</li> -->
|
2014-08-02 11:47:33 -06:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|