There's no need to disable this option. Supporting it adds complexity and disabling it is untested.
10 lines
302 B
Plaintext
10 lines
302 B
Plaintext
<section class="recommended-posts user-disable-cropped-<%= 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>
|