diff options
author | Unknwon <u@gogs.io> | 2016-08-05 12:12:54 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-05 12:12:54 -0700 |
commit | 50422f1fc226d71fe2f5f701c7ebdd1a5f2d143e (patch) | |
tree | 649757ae8cac275b0501e684d1c7bb0a5ee2d7d9 /templates/user | |
parent | db3d393576c716dbbea500791c5f800e52c70be5 (diff) | |
download | gitea-50422f1fc226d71fe2f5f701c7ebdd1a5f2d143e.tar.gz gitea-50422f1fc226d71fe2f5f701c7ebdd1a5f2d143e.zip |
#3348 always use relative avatar link in the template
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/dashboard/issues.tmpl | 2 | ||||
-rw-r--r-- | templates/user/dashboard/navbar.tmpl | 6 | ||||
-rw-r--r-- | templates/user/meta/header.tmpl | 3 | ||||
-rw-r--r-- | templates/user/profile.tmpl | 6 |
4 files changed, 8 insertions, 9 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index c8d17b3cdd..38ead6127f 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -72,7 +72,7 @@ {{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.Name | Safe}} {{if .Assignee}} <a class="ui right assignee poping up" href="{{.Assignee.HomeLink}}" data-content="{{.Assignee.Name}}" data-variation="inverted" data-position="left center"> - <img class="ui avatar image" src="{{.Assignee.AvatarLink}}"> + <img class="ui avatar image" src="{{.Assignee.RelAvatarLink}}"> </a> {{end}} </p> diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index a078006ccc..02f21048ff 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -1,7 +1,7 @@ <div class="ui container"> <div class="ui floating dropdown link jump"> <span class="text"> - <img class="ui avatar image" src="{{.ContextUser.AvatarLink}}"> + <img class="ui avatar image" src="{{.ContextUser.RelAvatarLink}}"> {{.ContextUser.ShortName 20}} <i class="dropdown icon"></i> </span> @@ -11,12 +11,12 @@ </div> <div class="items"> <a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{end}}"> - <img class="ui avatar image" src="{{.SignedUser.AvatarLink}}"> + <img class="ui avatar image" src="{{.SignedUser.RelAvatarLink}}"> {{.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}}"> - <img class="ui avatar image" src="{{.AvatarLink}}"> + <img class="ui avatar image" src="{{.RelAvatarLink}}"> {{.ShortName 20}} </a> {{end}} diff --git a/templates/user/meta/header.tmpl b/templates/user/meta/header.tmpl index 4982c7506a..36072e8aa1 100644 --- a/templates/user/meta/header.tmpl +++ b/templates/user/meta/header.tmpl @@ -1,13 +1,12 @@ {{with .Owner}} <div class="ui container"> - <img class="ui avatar image" src="{{.AvatarLink}}"> + <img class="ui avatar image" src="{{.RelAvatarLink}}"> <span class="header name"> <a href="{{.HomeLink}}">{{.Name}}</a> {{with .FullName}}({{.}}){{end}} </span> <div class="ui right"> - {{if or $.PageIsFollowers $.PageIsFollowing}} {{if and $.IsSigned (ne $.SignedUserName .Name)}} <div class="follow"> diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index d84bcddd7d..4bcc92d95d 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -6,11 +6,11 @@ <div class="ui card"> {{if eq .SignedUserName .Owner.Name}} <a class="image poping up" href="{{AppSubUrl}}/user/settings" id="profile-avatar" data-content="{{.i18n.Tr "user.change_avatar"}}" data-variation="inverted tiny" data-position="bottom center"> - <img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/> + <img src="{{.Owner.RelAvatarLink}}?s=290" title="{{.Owner.Name}}"/> </a> {{else}} <span class="image"> - <img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/> + <img src="{{.Owner.RelAvatarLink}}?s=290" title="{{.Owner.Name}}"/> </span> {{end}} <div class="content"> @@ -56,7 +56,7 @@ {{if .Orgs}} <li> {{range .Orgs}} - <a href="{{.HomeLink}}"><img class="ui mini image poping up" src="{{.AvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a> + <a href="{{.HomeLink}}"><img class="ui mini image poping up" src="{{.RelAvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a> {{end}} </li> {{end}} |