aboutsummaryrefslogtreecommitdiff
path: root/templates/user/meta/header.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-24 01:08:22 +0800
committerUnknwon <u@gogs.io>2016-07-24 01:08:22 +0800
commit1f2e173a745da8e4b57f96b5561a3c10054d3b76 (patch)
tree367f0f07e4fe1269ac0772e0561a4bf912b5153c /templates/user/meta/header.tmpl
parent46e96c008cf966428c9dad71c7871de88186e3fe (diff)
Refactor User.Id to User.ID
Diffstat (limited to 'templates/user/meta/header.tmpl')
-rw-r--r--templates/user/meta/header.tmpl4
1 files changed, 2 insertions, 2 deletions
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>