2015-12-21 17:54:11 +05:30
|
|
|
{{with .Owner}}
|
|
|
|
<div class="ui container">
|
2016-08-06 00:42:54 +05:30
|
|
|
<img class="ui avatar image" src="{{.RelAvatarLink}}">
|
2015-12-21 17:54:11 +05:30
|
|
|
<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">
|
2016-07-23 22:38:22 +05:30
|
|
|
{{if $.SignedUser.IsFollowing .ID}}
|
2015-12-21 17:54:11 +05:30
|
|
|
<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>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2016-07-23 22:38:22 +05:30
|
|
|
<div class="ui divider"></div>
|