recommended posts: drop unused PostSets::Recommended class.
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
module PostSets
|
|
||||||
class Recommended < PostSets::Post
|
|
||||||
attr_reader :posts
|
|
||||||
|
|
||||||
def initialize(posts)
|
|
||||||
super("")
|
|
||||||
@posts = posts
|
|
||||||
end
|
|
||||||
|
|
||||||
def presenter
|
|
||||||
::PostSetPresenters::Post.new(self)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<div class="recommended-posts">
|
|
||||||
<p><em>You might also like:</em></p>
|
|
||||||
|
|
||||||
<section class="user-disable-cropped-<%= Danbooru.config.enable_image_cropping && CurrentUser.user.disable_cropped_thumbnails? %>">
|
|
||||||
<%= PostSets::Recommended.new(post).presenter.post_previews_html(self) %>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
Reference in New Issue
Block a user