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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user