diff options
author | zeripath <art27@cantab.net> | 2019-04-17 15:49:56 +0100 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-04-17 10:49:56 -0400 |
commit | bdbbd816fc9de6e071b24b1d3dd10e2822d498c0 (patch) | |
tree | e9aba9597bc7dac653a20b9936828f6765deeab2 | |
parent | cf0a9a04a9171a0e490454f113d544a8383ff6de (diff) | |
download | gitea-bdbbd816fc9de6e071b24b1d3dd10e2822d498c0.tar.gz gitea-bdbbd816fc9de6e071b24b1d3dd10e2822d498c0.zip |
Add more title attributes on shortened names (#6647)
-rw-r--r-- | templates/repo/create.tmpl | 6 | ||||
-rw-r--r-- | templates/repo/home.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/migrate.tmpl | 6 | ||||
-rw-r--r-- | templates/repo/pulls/fork.tmpl | 6 | ||||
-rw-r--r-- | templates/user/dashboard/navbar.tmpl | 6 |
5 files changed, 13 insertions, 13 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 44473c3a86..53a97f559d 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -13,18 +13,18 @@ <label>{{.i18n.Tr "repo.owner"}}</label> <div class="ui selection owner dropdown"> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> - <span class="text"> + <span class="text" title="{{.ContextUser.Name}}"> <img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}"> {{.ContextUser.ShortName 20}} </span> <i class="dropdown icon"></i> <div class="menu"> - <div class="item" data-value="{{.SignedUser.ID}}"> + <div class="item" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"> <img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}"> {{.SignedUser.ShortName 20}} </div> {{range .Orgs}} - <div class="item" data-value="{{.ID}}"> + <div class="item" data-value="{{.ID}}" title="{{.Name}}"> <img class="ui mini image" src="{{.RelAvatarLink}}"> {{.ShortName 20}} </div> diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 13fa9de0c4..f94f0f2104 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -70,7 +70,7 @@ </div> {{end}} {{else}} - <div class="fitted item"><span class="ui breadcrumb repo-path"><a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchNameSubURL}}">{{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="fitted item"><span class="ui breadcrumb repo-path"><a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchNameSubURL}}" title="{{.Repository.Name}}">{{EllipsisString .Repository.Name 30}}</a>{{range $i, $v := .TreeNames}}<span class="divider">/</span>{{if eq $i $l}}<span class="active section" title="{{$v}}">{{EllipsisString $v 30}}</span>{{else}}{{ $p := index $.Paths $i}}<span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}" title="{{$v}}">{{EllipsisString $v 30}}</a></span>{{end}}{{end}}</span></div> {{end}} <div class="right fitted item" id="file-buttons"> <div class="ui tiny blue buttons"> diff --git a/templates/repo/migrate.tmpl b/templates/repo/migrate.tmpl index 18b85f72af..509463e913 100644 --- a/templates/repo/migrate.tmpl +++ b/templates/repo/migrate.tmpl @@ -41,18 +41,18 @@ <label>{{.i18n.Tr "repo.owner"}}</label> <div class="ui selection owner dropdown"> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> - <span class="text"> + <span class="text" title="{{.ContextUser.Name}}"> <img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}"> {{.ContextUser.ShortName 20}} </span> <i class="dropdown icon"></i> - <div class="menu"> + <div class="menu" title="{{.SignedUser.Name}}"> <div class="item" data-value="{{.SignedUser.ID}}"> <img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}"> {{.SignedUser.ShortName 20}} </div> {{range .Orgs}} - <div class="item" data-value="{{.ID}}"> + <div class="item" data-value="{{.ID}}" title="{{.Name}}"> <img class="ui mini image" src="{{.RelAvatarLink}}"> {{.ShortName 20}} </div> diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl index 048601af76..c7ad0f087b 100644 --- a/templates/repo/pulls/fork.tmpl +++ b/templates/repo/pulls/fork.tmpl @@ -13,20 +13,20 @@ <label>{{.i18n.Tr "repo.owner"}}</label> <div class="ui selection owner dropdown"> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> - <span class="text"> + <span class="text" title="{{.ContextUser.Name}}"> <img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}"> {{.ContextUser.ShortName 20}} </span> <i class="dropdown icon"></i> <div class="menu"> {{if .CanForkToUser}} - <div class="item" data-value="{{.SignedUser.ID}}"> + <div class="item" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"> <img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}"> {{.SignedUser.ShortName 20}} </div> {{end}} {{range .Orgs}} - <div class="item" data-value="{{.ID}}"> + <div class="item" data-value="{{.ID}}" title="{{.Name}}"> <img class="ui mini image" src="{{.RelAvatarLink}}"> {{.ShortName 20}} </div> diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index a9898ee912..25c45325a6 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -3,7 +3,7 @@ <div class="item"> <div class="ui floating dropdown link jump"> <span class="text"> - <img class="ui avatar image" src="{{.ContextUser.RelAvatarLink}}"> + <img class="ui avatar image" src="{{.ContextUser.RelAvatarLink}}" title="{{.ContextUser.Name}}"> {{.ContextUser.ShortName 20}} <i class="dropdown icon"></i> </span> @@ -17,7 +17,7 @@ {{.SignedUser.Name}} </a> {{range .Orgs}} - <a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else}}dashboard{{end}}"> + <a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item" title="{{.Name}}" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else}}dashboard{{end}}"> <img class="ui avatar image" src="{{.RelAvatarLink}}"> {{.ShortName 20}} </a> @@ -44,7 +44,7 @@ <i class="octicon octicon-git-pull-request"></i> {{.i18n.Tr "pull_requests"}} </a> <div class="item"> - <a class="ui blue basic button" href="{{.ContextUser.HomeLink}}"> + <a class="ui blue basic button" href="{{.ContextUser.HomeLink}}" title='{{.i18n.Tr "home.view_home" .ContextUser.Name}}'> {{.i18n.Tr "home.view_home" (.ContextUser.ShortName 10)}} </a> </div> |