|
|
@ -8,10 +8,9 @@ |
|
|
|
<div class="col-md-5 actions text-right clone-group-btn"> |
|
|
|
{{if not .IsBareRepo}} |
|
|
|
<div class="btn-group" id="repo-clone"> |
|
|
|
<a class="btn btn-default" href="{{.RepoLink}}/archive/{{.BranchName}}/{{.Repository.Name}}.zip"><i class="fa fa-download fa-lg fa-m"><span class="sr-only">{{.i18n.Tr "download"}}</span></i></a> |
|
|
|
<a class="btn btn-default" href="{{.RepoLink}}/archive/{{.BranchName}}/{{.Repository.Name}}.zip"><i class="fa fa-download fa-lg fa-m"></i></a> |
|
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<span class="caret"></span> |
|
|
|
<span class="sr-only">{{.i18n.Tr "more"}}</span> |
|
|
|
</button> |
|
|
|
<div class="dropdown-menu clone-group-btn dropdown-menu-right no-propagation"> |
|
|
|
<div class="input-group"> |
|
|
@ -21,7 +20,7 @@ |
|
|
|
</span> |
|
|
|
<input type="text" class="form-control clone-group-url" value="" readonly id="repo-clone-ipt"/> |
|
|
|
<span class="input-group-btn"> |
|
|
|
<button class="btn btn-default" type="button" data-toggle="tooltip" title="copy to clipboard" data-placement="top" data-init="copy" data-copy-val="val" data-copy-from="#repo-clone-ipt"><i class="fa fa-copy"></i><span class="sr-only">copy to clipboard</span></button> |
|
|
|
<button class="btn btn-default" type="button" data-toggle="tooltip" title="copy to clipboard" data-placement="top" data-init="copy" data-copy-val="val" data-copy-from="#repo-clone-ipt"><i class="fa fa-copy"></i></button> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<p class="help-block text-center">Need help cloning? Visit <a target="_blank" href="https://help.github.com/articles/fork-a-repo">Help</a>!</p> |
|
|
@ -35,13 +34,12 @@ |
|
|
|
{{if .IsSigned}} |
|
|
|
<div class="btn-group {{if .IsRepositoryWatching}}watching{{else}}no-watching{{end}}" id="repo-watching" data-watch="{{AppSubUrl}}/{{.Owner.Name}}/{{.Repository.Name}}/action/watch" data-unwatch="{{AppSubUrl}}/{{.Owner.Name}}/{{.Repository.Name}}/action/unwatch"> |
|
|
|
{{if .IsRepositoryWatching}} |
|
|
|
<button type="button" class="btn btn-default"><i class="fa fa-eye fa-lg fa-m"></i><span class="sr-only">{{.i18n.Tr "unwatch"}}</span></button> |
|
|
|
<button type="button" class="btn btn-default"><i class="fa fa-eye fa-lg fa-m"></i></button> |
|
|
|
{{else}} |
|
|
|
<button type="button" class="btn btn-default"><i class="fa fa-eye-slash fa-lg fa-m"></i><span class="sr-only">{{.i18n.Tr "watch"}}</span></button> |
|
|
|
<button type="button" class="btn btn-default"><i class="fa fa-eye-slash fa-lg fa-m"></i></button> |
|
|
|
{{end}} |
|
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<span class="caret"></span> |
|
|
|
<span class="sr-only">{{.i18n.Tr "more"}}</span> |
|
|
|
</button> |
|
|
|
<div class="dropdown-menu dropdown-menu-right"> |
|
|
|
<div class="dropdown-item text-left to-unwatch"> |
|
|
@ -57,11 +55,11 @@ |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
<!-- <div class="btn-group"> |
|
|
|
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Star"><i class="fa fa-star"></i> {{.Repository.NumStars}}<span class="sr-only"> {{.i18n.Tr "star"}}</span></button> |
|
|
|
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Star"><i class="fa fa-star"></i> {{.Repository.NumStars}}</button> |
|
|
|
</div> --> |
|
|
|
{{end}} |
|
|
|
<!-- <div class="btn-group"> |
|
|
|
<a type="button" {{if not .IsRepositoryOwner}}href="{{AppSubUrl}}/{{.Username}}/{{.Reponame}}/fork"{{end}} class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Fork"><i class="fa fa-code-fork fa-lg"></i> {{.Repository.NumForks}}<span class="sr-only"> Fork</span></a> |
|
|
|
<a type="button" {{if not .IsRepositoryOwner}}href="{{AppSubUrl}}/{{.Username}}/{{.Reponame}}/fork"{{end}} class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Fork"><i class="fa fa-code-fork fa-lg"></i> {{.Repository.NumForks}}</a> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|