mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Only show follow button if you can follow
This commit is contained in:
parent
7a50bed7d3
commit
a5b71c4396
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
|||
<a href="/site/<%= site.username %>/archives" class="btn-Action edit"><i class="fa fa-history" title="Archives"></i> Archives</a>
|
||||
<% end %>
|
||||
|
||||
<% if current_site && current_site != site %>
|
||||
<% if current_site && current_site != site && current_site.can_follow?(site) %>
|
||||
<% is_following = current_site.is_following?(site) %>
|
||||
|
||||
<a id="followLink" href="#" onclick="Site.toggleFollow(<%= site.id %>, '<%= csrf_token %>'); return false" class="btn-Action <%= is_following ? 'is-following' : '' %>">
|
||||
|
|
Loading…
Add table
Reference in a new issue