mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix for global activity
This commit is contained in:
parent
10a6e1634f
commit
2bd0d8d35b
1 changed files with 14 additions and 12 deletions
|
@ -10,21 +10,23 @@
|
|||
<script src="/js/news/event.js"></script>
|
||||
<script src="/js/news/site.js"></script>
|
||||
|
||||
<% follow_events = site.newest_follows %>
|
||||
<% unless follow_events.empty? %>
|
||||
<div class="news-item follow">
|
||||
<div class="icon"><a href="/site/<%= site.username %>" title="<%= site.username %>" class="avatar" style="background-image: url(<%= site.screenshot_url 'index.html', '50x50' %>);"></a></div>
|
||||
<% if defined?(site) %>
|
||||
<% follow_events = site.newest_follows %>
|
||||
<% unless follow_events.empty? %>
|
||||
<div class="news-item follow">
|
||||
<div class="icon"><a href="/site/<%= site.username %>" title="<%= site.username %>" class="avatar" style="background-image: url(<%= site.screenshot_url 'index.html', '50x50' %>);"></a></div>
|
||||
|
||||
<div class="text">
|
||||
<strong>New Followers</strong>
|
||||
</div>
|
||||
<div class="text">
|
||||
<strong>New Followers</strong>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<% follow_events.first.site.newest_follows.each_with_index do |event,i| %>
|
||||
<a href="/site/<%= event.actioning_site.username %>" class="user" title="<%= event.actioning_site.title %>"><i class="fa fa-user"><% if event.actioning_site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= event.actioning_site.username %></a><% unless follow_events.length == i+1 %>, <% end %>
|
||||
<% end %>
|
||||
<div class="content">
|
||||
<% follow_events.first.site.newest_follows.each_with_index do |event,i| %>
|
||||
<a href="/site/<%= event.actioning_site.username %>" class="user" title="<%= event.actioning_site.title %>"><i class="fa fa-user"><% if event.actioning_site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= event.actioning_site.username %></a><% unless follow_events.length == i+1 %>, <% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% events.each do |event| %>
|
||||
|
|
Loading…
Add table
Reference in a new issue