mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 19:01:26 +01:00
Add more title attributes on shortened names (#6647)
This commit is contained in:
parent
cf0a9a04a9
commit
bdbbd816fc
5 changed files with 13 additions and 13 deletions
|
@ -13,18 +13,18 @@
|
||||||
<label>{{.i18n.Tr "repo.owner"}}</label>
|
<label>{{.i18n.Tr "repo.owner"}}</label>
|
||||||
<div class="ui selection owner dropdown">
|
<div class="ui selection owner dropdown">
|
||||||
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
|
<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}}">
|
<img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}">
|
||||||
{{.ContextUser.ShortName 20}}
|
{{.ContextUser.ShortName 20}}
|
||||||
</span>
|
</span>
|
||||||
<i class="dropdown icon"></i>
|
<i class="dropdown icon"></i>
|
||||||
<div class="menu">
|
<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}}">
|
<img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}">
|
||||||
{{.SignedUser.ShortName 20}}
|
{{.SignedUser.ShortName 20}}
|
||||||
</div>
|
</div>
|
||||||
{{range .Orgs}}
|
{{range .Orgs}}
|
||||||
<div class="item" data-value="{{.ID}}">
|
<div class="item" data-value="{{.ID}}" title="{{.Name}}">
|
||||||
<img class="ui mini image" src="{{.RelAvatarLink}}">
|
<img class="ui mini image" src="{{.RelAvatarLink}}">
|
||||||
{{.ShortName 20}}
|
{{.ShortName 20}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else}}
|
{{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}}
|
{{end}}
|
||||||
<div class="right fitted item" id="file-buttons">
|
<div class="right fitted item" id="file-buttons">
|
||||||
<div class="ui tiny blue buttons">
|
<div class="ui tiny blue buttons">
|
||||||
|
|
|
@ -41,18 +41,18 @@
|
||||||
<label>{{.i18n.Tr "repo.owner"}}</label>
|
<label>{{.i18n.Tr "repo.owner"}}</label>
|
||||||
<div class="ui selection owner dropdown">
|
<div class="ui selection owner dropdown">
|
||||||
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
|
<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}}">
|
<img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}">
|
||||||
{{.ContextUser.ShortName 20}}
|
{{.ContextUser.ShortName 20}}
|
||||||
</span>
|
</span>
|
||||||
<i class="dropdown icon"></i>
|
<i class="dropdown icon"></i>
|
||||||
<div class="menu">
|
<div class="menu" title="{{.SignedUser.Name}}">
|
||||||
<div class="item" data-value="{{.SignedUser.ID}}">
|
<div class="item" data-value="{{.SignedUser.ID}}">
|
||||||
<img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}">
|
<img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}">
|
||||||
{{.SignedUser.ShortName 20}}
|
{{.SignedUser.ShortName 20}}
|
||||||
</div>
|
</div>
|
||||||
{{range .Orgs}}
|
{{range .Orgs}}
|
||||||
<div class="item" data-value="{{.ID}}">
|
<div class="item" data-value="{{.ID}}" title="{{.Name}}">
|
||||||
<img class="ui mini image" src="{{.RelAvatarLink}}">
|
<img class="ui mini image" src="{{.RelAvatarLink}}">
|
||||||
{{.ShortName 20}}
|
{{.ShortName 20}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,20 +13,20 @@
|
||||||
<label>{{.i18n.Tr "repo.owner"}}</label>
|
<label>{{.i18n.Tr "repo.owner"}}</label>
|
||||||
<div class="ui selection owner dropdown">
|
<div class="ui selection owner dropdown">
|
||||||
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
|
<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}}">
|
<img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}">
|
||||||
{{.ContextUser.ShortName 20}}
|
{{.ContextUser.ShortName 20}}
|
||||||
</span>
|
</span>
|
||||||
<i class="dropdown icon"></i>
|
<i class="dropdown icon"></i>
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
{{if .CanForkToUser}}
|
{{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}}">
|
<img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}">
|
||||||
{{.SignedUser.ShortName 20}}
|
{{.SignedUser.ShortName 20}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{range .Orgs}}
|
{{range .Orgs}}
|
||||||
<div class="item" data-value="{{.ID}}">
|
<div class="item" data-value="{{.ID}}" title="{{.Name}}">
|
||||||
<img class="ui mini image" src="{{.RelAvatarLink}}">
|
<img class="ui mini image" src="{{.RelAvatarLink}}">
|
||||||
{{.ShortName 20}}
|
{{.ShortName 20}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="ui floating dropdown link jump">
|
<div class="ui floating dropdown link jump">
|
||||||
<span class="text">
|
<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}}
|
{{.ContextUser.ShortName 20}}
|
||||||
<i class="dropdown icon"></i>
|
<i class="dropdown icon"></i>
|
||||||
</span>
|
</span>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
{{.SignedUser.Name}}
|
{{.SignedUser.Name}}
|
||||||
</a>
|
</a>
|
||||||
{{range .Orgs}}
|
{{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}}">
|
<img class="ui avatar image" src="{{.RelAvatarLink}}">
|
||||||
{{.ShortName 20}}
|
{{.ShortName 20}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
<i class="octicon octicon-git-pull-request"></i> {{.i18n.Tr "pull_requests"}}
|
<i class="octicon octicon-git-pull-request"></i> {{.i18n.Tr "pull_requests"}}
|
||||||
</a>
|
</a>
|
||||||
<div class="item">
|
<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)}}
|
{{.i18n.Tr "home.view_home" (.ContextUser.ShortName 10)}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue