mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
25 lines
1 KiB
Text
25 lines
1 KiB
Text
<% if (!is_current_site && site.followings_dataset.count > 0) || is_current_site %>
|
|
<h3><%= is_current_site ? 'You follow' : 'This site follows' %></h3>
|
|
<div class="following">
|
|
<% if site.followings_dataset.count == 0 %>
|
|
<p>You are not following any sites yet. Add some by <a href="/browse">browsing sites</a> or looking at your tags.
|
|
<% else %>
|
|
<% site.followings.each do |following| %>
|
|
<a href="/site/<%= following.site.username %>"><img src="<%= site.screenshot_path 'index.html', '37x37' %>" class="avatar"></a>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if (!is_current_site && site.follows_dataset.count > 0) || is_current_site %>
|
|
<h3>Followers</h3>
|
|
<div class="following">
|
|
<% if site.follows_dataset.count == 0 %>
|
|
No followers yet.
|
|
<% else %>
|
|
<% site.follows.each do |follow| %>
|
|
<a href="/site/<%= follow.actioning_site.username %>"><img src="<%= follow.actioning_site.screenshot_path 'index.html', '37x37' %>" class="avatar"></a>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|