Files
nairobi/app/components/widget/feeds/feed_component.html.erb
Javi Martín e8e920ee50 Rename Widgets components to Widget
So naming is consistent with the way Admin::Widget controllers are
named.
2021-01-12 14:50:37 +01:00

18 lines
553 B
Plaintext

<section id="feed_<%= kind %>" class="widget-feed feed-<%= kind %>">
<header>
<h2 class="title"><%= t("welcome.feed.most_active.#{kind}") %></h2>
</header>
<% if feed.items.any? %>
<div class="feed-content">
<% feed.items.each do |item| %>
<%= render item_component_class.new(item) %>
<% end %>
</div>
<%= link_to t("welcome.feed.see_all.#{kind}"), see_all_path, class: "see-all" %>
<% else %>
<div class="no-items callout primary"><%= t("welcome.feed.no_items.#{kind}") %></div>
<% end %>
</section>