recommendations: add search form, allow searching by username.
This commit is contained in:
9
app/views/recommended_posts/_index.html.erb
Normal file
9
app/views/recommended_posts/_index.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<section class="recommended-posts user-disable-cropped-<%= Danbooru.config.enable_image_cropping && CurrentUser.user.disable_cropped_thumbnails? %>">
|
||||
<% if @recs.empty? %>
|
||||
No recommendations found.
|
||||
<% end %>
|
||||
|
||||
<% @recs.each do |rec| %>
|
||||
<%= PostPresenter.preview(rec[:post], recommended: 100*rec[:score]) %>
|
||||
<% end %>
|
||||
</section>
|
||||
Reference in New Issue
Block a user