diff options
Diffstat (limited to 'templates/org/home.tmpl')
-rw-r--r-- | templates/org/home.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 1bd017d119..afd7d61ca9 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -19,6 +19,18 @@ {{if .Org.Website}}<div class="item">{{svg "octicon-link"}} <a target="_blank" rel="noopener noreferrer me" href="{{.Org.Website}}">{{.Org.Website}}</a></div>{{end}} </div> </div> + <div class="right stackable menu"> + <form method="post" action="{{.Link}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}&redirect_to={{$.Link}}"> + {{$.CsrfTokenHtml}} + <button type="submit" class="ui basic button gt-mr-0"> + {{if $.IsFollowing}} + {{.locale.Tr "user.unfollow"}} + {{else}} + {{.locale.Tr "user.follow"}} + {{end}} + </button> + </form> + </div> </div> {{template "org/menu" .}} |