mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix for logged out display of site
This commit is contained in:
parent
f3c2a81e0c
commit
f6ebb4ee41
1 changed files with 5 additions and 3 deletions
|
@ -19,13 +19,15 @@
|
||||||
<% if current_site == site %>
|
<% if current_site == site %>
|
||||||
<a href="/dashboard" class="btn-Action edit"><span><i class="fa fa-pencil"></i> Edit Site</span></a>
|
<a href="/dashboard" class="btn-Action edit"><span><i class="fa fa-pencil"></i> Edit Site</span></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if current_site != site %>
|
|
||||||
|
<% if current_site && current_site != site %>
|
||||||
<% is_following = current_site.is_following?(site) %>
|
<% is_following = current_site.is_following?(site) %>
|
||||||
<a id="followLink" href="#" onclick="Site.toggleFollow(<%= site.id %>, '<%= csrf_token %>')" class="btn-Action <%= is_following ? '' : 'follow' %>">
|
<a id="followLink" href="#" onclick="Site.toggleFollow(<%= site.id %>, '<%= csrf_token %>')" class="btn-Action <%= is_following ? '' : 'follow' %>">
|
||||||
<span><%= is_following ? 'Unfollow' : 'Follow' %></span>
|
<span><%= is_following ? 'Unfollow' : 'Follow' %></span>
|
||||||
</a>
|
</a>
|
||||||
<!-- <a href="#" class="btn-Action tip"><span>Tip</span></a> -->
|
<!-- <a href="#" class="btn-Action tip"><span>Tip</span></a> -->
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<a href="#" id="shareButton" class="btn-Action share" data-container="body" data-toggle="popover" data-placement="bottom" data-content='
|
<a href="#" id="shareButton" class="btn-Action share" data-container="body" data-toggle="popover" data-placement="bottom" data-content='
|
||||||
<a href="http://facebook.com/sharer.php?u=<%= Rack::Utils.build_query(u: "http://#{site.username}.neocities.org") %>" target="_blank">Facebook</a>
|
<a href="http://facebook.com/sharer.php?u=<%= Rack::Utils.build_query(u: "http://#{site.username}.neocities.org") %>" target="_blank">Facebook</a>
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Add table
Reference in a new issue