header.tmpl 864 B

1234567891011121314151617181920212223242526
  1. {{with .Owner}}
  2. <div class="ui container">
  3. <img class="ui avatar image" src="{{.AvatarLink}}">
  4. <span class="header name">
  5. <a href="{{.HomeLink}}">{{.Name}}</a>
  6. {{with .FullName}}({{.}}){{end}}
  7. </span>
  8. <div class="ui right">
  9. {{if or $.PageIsFollowers $.PageIsFollowing}}
  10. {{if and $.IsSigned (ne $.SignedUserName .Name)}}
  11. <div class="follow">
  12. {{if $.SignedUser.IsFollowing .ID}}
  13. <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>
  14. {{else}}
  15. <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>
  16. {{end}}
  17. </div>
  18. {{end}}
  19. {{end}}
  20. </div>
  21. </div>
  22. {{end}}
  23. <div class="ui divider"></div>