Separate the header from the feed content

We were having some style issues when adding the processes feed to the
goal view because of this lack of separation.

We're using a <section> tag so it's clear where the <header> tag belongs
to.
This commit is contained in:
Javi Martín
2020-12-20 20:04:13 +01:00
parent 2bb0a2dfaf
commit 06d29335ff

View File

@@ -1,11 +1,13 @@
<div id="feed_<%= kind %>" class="widget-feed feed-<%= kind %>">
<div class="feed-content">
<section id="feed_<%= kind %>" class="widget-feed feed-<%= kind %>">
<header>
<h3 class="title"><%= t("welcome.feed.most_active.#{kind}") %></h3>
</header>
<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" %>
</div>
</section>