diff options
author | silverwind <me@silverwind.io> | 2017-08-14 00:49:38 +0200 |
---|---|---|
committer | Andrey Nering <andrey.nering@gmail.com> | 2017-08-13 19:49:38 -0300 |
commit | fc29a405e8c210fa62ad4cbe4250617e4b85d6c8 (patch) | |
tree | 8b42916d036abc7d6c8f77dbaa3db2ad2724fa68 /templates/repo | |
parent | 29f3a6e492daa80a2ce5e3693743aa2448f391d9 (diff) | |
download | gitea-fc29a405e8c210fa62ad4cbe4250617e4b85d6c8.tar.gz gitea-fc29a405e8c210fa62ad4cbe4250617e4b85d6c8.zip |
More tweaks to repo top panel (#2267)
* More tweaks to repo top panel
* undo hiding of compare button on master
* attempt to fix ci issue
* another ci attempt
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/branch_dropdown.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/home.tmpl | 25 |
2 files changed, 7 insertions, 20 deletions
diff --git a/templates/repo/branch_dropdown.tmpl b/templates/repo/branch_dropdown.tmpl index ae09b25246..063006314b 100644 --- a/templates/repo/branch_dropdown.tmpl +++ b/templates/repo/branch_dropdown.tmpl @@ -1,6 +1,6 @@ <div class="fitted item choose reference"> <div class="ui floating filter dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}"> - <div class="ui basic small button"> + <div class="ui basic compact tiny button"> <span class="text"> <i class="octicon octicon-git-branch"></i> {{if .IsViewBranch}}{{.i18n.Tr "repo.branch"}}{{else}}{{.i18n.Tr "repo.tree"}}{{end}}: diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 24ce082da6..f3feb149c6 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -11,27 +11,14 @@ {{if .PullRequestCtx.Allowed}} <div class="fitted item"> <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{if .SignedUser.HasForkedRepo .BaseRepo.ID }}{{.SignedUser.Name}}:{{end}}{{.BranchName}}"> - <button class="ui green small button"><i class="octicon octicon-git-compare"></i></button> + <button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button> </a> </div> {{end}} {{template "repo/branch_dropdown" .}} - <div class="fitted item"> - <span class="ui breadcrumb"> - <a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{EllipsisString .Repository.Name 30}}</a> - {{ $n := len .TreeNames}} - {{ $l := Subtract $n 1}} - {{range $i, $v := .TreeNames}} - <span class="divider"> / </span> - {{if eq $i $l}} - <span class="active section">{{EllipsisString $v 30}}</span> - {{else}} - {{ $p := index $.Paths $i}} - <span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 30}}</a></span> - {{end}} - {{end}} - </span> - </div> + {{ $n := len .TreeNames}} + {{ $l := Subtract $n 1}} + <div class="fitted item"><span class="ui breadcrumb repo-path"><a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{EllipsisString .Repository.Name 30}}</a>{{range $i, $v := .TreeNames}}<span class="divider">/</span>{{if eq $i $l}}<span class="active section">{{EllipsisString $v 30}}</span>{{else}}{{ $p := index $.Paths $i}}<span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 30}}</a></span>{{end}}{{end}}</span></div> <div class="right fitted item"> {{if .Repository.CanEnableEditor}} <div id="file-buttons" class="ui tiny blue buttons"> @@ -48,9 +35,9 @@ </div> {{end}} - <!-- Only show colne panel in repository home page --> + <!-- Only show clone panel in repository home page --> {{if eq $n 0}} - <div class="ui action small input" id="clone-panel"> + <div class="ui action tiny input" id="clone-panel"> {{if not $.DisableHTTP}} <button class="ui basic clone button" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}"> {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}} |