diff options
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/dashboard/navbar.tmpl | 4 | ||||
-rw-r--r-- | templates/user/meta/followers.tmpl | 2 | ||||
-rw-r--r-- | templates/user/meta/header.tmpl | 4 | ||||
-rw-r--r-- | templates/user/profile.tmpl | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index ff05b151..a078006c 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -10,12 +10,12 @@ {{.i18n.Tr "home.switch_dashboard_context"}} </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}}"> + <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}}"> {{.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" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else}}dashboard{{end}}"> <img class="ui avatar image" src="{{.AvatarLink}}"> {{.ShortName 20}} </a> diff --git a/templates/user/meta/followers.tmpl b/templates/user/meta/followers.tmpl index 403a4e8a..40d7e950 100644 --- a/templates/user/meta/followers.tmpl +++ b/templates/user/meta/followers.tmpl @@ -3,4 +3,4 @@ {{template "user/meta/header" .}} {{template "repo/user_cards" .}} </div> -{{template "base/footer" .}}
\ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/user/meta/header.tmpl b/templates/user/meta/header.tmpl index 366d1e0b..4982c750 100644 --- a/templates/user/meta/header.tmpl +++ b/templates/user/meta/header.tmpl @@ -11,7 +11,7 @@ {{if or $.PageIsFollowers $.PageIsFollowing}} {{if and $.IsSigned (ne $.SignedUserName .Name)}} <div class="follow"> - {{if $.SignedUser.IsFollowing .Id}} + {{if $.SignedUser.IsFollowing .ID}} <a class="ui small basic red button" href="{{.HomeLink}}/action/unfollow?redirect_to={{$.Link}}"><i class="octicon octicon-person"></i> {{$.i18n.Tr "user.unfollow"}}</a> {{else}} <a class="ui small basic green button" href="{{.HomeLink}}/action/follow?redirect_to={{$.Link}}"><i class="octicon octicon-person"></i> {{$.i18n.Tr "user.follow"}}</a> @@ -22,4 +22,4 @@ </div> </div> {{end}} -<div class="ui divider"></div>
\ No newline at end of file +<div class="ui divider"></div> diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 8f68e932..36bd54b1 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -62,7 +62,7 @@ {{end}} {{if and .IsSigned (ne .SignedUserName .Owner.Name)}} <li class="follow"> - {{if .SignedUser.IsFollowing .Owner.Id}} + {{if .SignedUser.IsFollowing .Owner.ID}} <a class="ui basic red button" href="{{.Link}}/action/unfollow?redirect_to={{$.Link}}"><i class="octicon octicon-person"></i> {{.i18n.Tr "user.unfollow"}}</a> {{else}} <a class="ui basic green button" href="{{.Link}}/action/follow?redirect_to={{$.Link}}"><i class="octicon octicon-person"></i> {{.i18n.Tr "user.follow"}}</a> |