votes: fixup various minor issues.
* Add a gap between thumbnails on mobile. * Adjust CSS for scores and vote buttons. * Include "Private favorites" as an incentive on the user upgrade page. * Fix vote buttons not being visible beneath thumbnails on mobile. * Fix the "Show scores" link not preserving the current page number. * Fix vote buttons being unintentionally enabled for all thumbnails by default. * Fix banned and restricted users being able to favorite posts by tagging them with `fav:self`. * Fix search engines being able to crawl /posts?view=score pages. * Fix broken tests.
This commit is contained in:
@@ -35,9 +35,9 @@
|
||||
<%= render PopupMenuComponent.new do |menu| %>
|
||||
<% menu.item do %>
|
||||
<% if params[:view] == "score" %>
|
||||
<%= link_to "Hide scores", posts_path(tags: params[:tags], view: nil) %>
|
||||
<%= link_to "Hide scores", posts_path(tags: params[:tags], page: params[:page], limit: params[:limit], view: nil), rel: "nofollow" %>
|
||||
<% else %>
|
||||
<%= link_to "Show scores", posts_path(tags: params[:tags], view: "score") %>
|
||||
<%= link_to "Show scores", posts_path(tags: params[:tags], page: params[:page], limit: params[:limit], view: "score"), rel: "nofollow" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="posts" class="user-disable-cropped-<%= CurrentUser.user.disable_cropped_thumbnails? %>">
|
||||
<div id="posts-container">
|
||||
<div id="posts">
|
||||
<div class="posts-container user-disable-cropped-<%= CurrentUser.user.disable_cropped_thumbnails? %>">
|
||||
<% if post_set.shown_posts.empty? %>
|
||||
<%= render "post_sets/blank" %>
|
||||
<% else %>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
<% if params[:tags].blank? && @post_set.current_page == 1 %>
|
||||
<% canonical_url root_url(host: Danbooru.config.hostname) %>
|
||||
<% else %>
|
||||
<% canonical_url posts_url(host: Danbooru.config.hostname, tags: params[:tags], page: params[:page], limit: params[:limit]) %>
|
||||
<% end %>
|
||||
|
||||
<% noindex if @post_set.hide_from_crawler? %>
|
||||
|
||||
Reference in New Issue
Block a user