recommendations: add search form, allow searching by username.

This commit is contained in:
evazion
2019-12-02 02:04:46 -06:00
parent ae46f7a665
commit efda9f37e1
11 changed files with 57 additions and 40 deletions

View 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>