css: factor out recent posts component.

This commit is contained in:
evazion
2021-02-16 01:48:20 -06:00
parent 1e80540a04
commit e215fd1c47
5 changed files with 27 additions and 31 deletions

View File

@@ -22,11 +22,13 @@
<% if @artist.tag.present? && @artist.tag.post_count > 0 %>
<div class="recent-posts">
<h2>Recent Posts <%= link_to "»", posts_path(tags: @artist.name) %></h2>
<h2 class="recent-posts-header">
<%= link_to "Posts", posts_path(tags: @artist.name) %>
</h2>
<%= render "posts/partials/common/inline_blacklist" %>
<div>
<div class="recent-posts-previews">
<%= post_previews_html(@artist.tag.posts.limit(8), tags: @artist.name) %>
</div>
</div>