aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-01-24 21:15:44 -0500
committerUnknwon <u@gogs.io>2017-01-24 21:15:44 -0500
commitd1c327d508e5d3c1ad9237ccf7c7d5b6cc21be8a (patch)
tree2f0b3ca12dabf233b5a5900763620666ae09629d /templates
parenteaf57229d35598a6585f6dc777db8462d9d47779 (diff)
repo/home.tmpl: only ellipsis on repository name
File name could contain non-ASCII characters. See details on https://discuss.gogs.io/t/topic/758.
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/repo/home.tmpl6
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/.VERSION b/templates/.VERSION
index 5014f536..d66ae3bf 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.9.115.0103 \ No newline at end of file
+0.9.116.0124 \ No newline at end of file
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 88e74eb6..f059ea19 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -18,16 +18,16 @@
{{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>
+ <a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{EllipsisString .Repository.Name 15}}</a>
{{ $n := len .TreeNames}}
{{ $l := Subtract $n 1}}
{{range $i, $v := .TreeNames}}
<div class="divider"> / </div>
{{if eq $i $l}}
- <span class="active section">{{EllipsisString $v 15}}</span>
+ <span class="active section">{{$v}}</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}}">{{$v}}</a></span>
{{end}}
{{end}}
</div>