add mock recommender service for development, add user-context recommended posts
This commit is contained in:
3
app/views/recommended_posts/_show.html.erb
Normal file
3
app/views/recommended_posts/_show.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
<section class="recommended-posts user-disable-cropped-<%= Danbooru.config.enable_image_cropping && CurrentUser.user.disable_cropped_thumbnails? %>">
|
||||
<%= PostSets::Recommended.new(@posts).presenter.post_previews_html(self) %>
|
||||
</section>
|
||||
15
app/views/recommended_posts/show.html.erb
Normal file
15
app/views/recommended_posts/show.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<div id="c-posts">
|
||||
<div id="a-index">
|
||||
<h1>Recommended Posts</h1>
|
||||
|
||||
<p>Based on your voting history, you may enjoy these posts. Vote more to get more accurate results. These recommendations update every hour.</p>
|
||||
|
||||
<%= render partial: "show" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "posts/partials/common/secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Recommended Posts - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user