diff options
author | silverwind <me@silverwind.io> | 2017-08-06 05:13:20 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-08-06 11:13:20 +0800 |
commit | 54381f438b6dd3dcfd29426c003463b623d46982 (patch) | |
tree | a5657af7b5f0d74f60dee353c36525a8d166ba1a /templates/repo/home.tmpl | |
parent | d05150a3317766863586b3a5b2a6a09feab3dd8c (diff) | |
download | gitea-54381f438b6dd3dcfd29426c003463b623d46982.tar.gz gitea-54381f438b6dd3dcfd29426c003463b623d46982.zip |
File path tweaks in UI (#2264)
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 5af574ee04..24ce082da6 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -17,20 +17,20 @@ {{end}} {{template "repo/branch_dropdown" .}} <div class="fitted item"> - <div class="ui breadcrumb"> - <a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{EllipsisString .Repository.Name 25}}</a> + <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}} - <div class="divider"> / </div> + <span class="divider"> / </span> {{if eq $i $l}} - <span class="active section">{{EllipsisString $v 15}}</span> + <span class="active section">{{EllipsisString $v 30}}</span> {{else}} {{ $p := index $.Paths $i}} - <span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 15}}</a></span> + <span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 30}}</a></span> {{end}} {{end}} - </div> + </span> </div> <div class="right fitted item"> {{if .Repository.CanEnableEditor}} |