Files
danbooru/app/views/modqueue/_sidebar.html.erb
evazion 3a3d456bd2 html: standardize font sizes and heading tags.
Standardize font sizes and heading tags (<h1>-<h6>) to be more
consistent across the site.

Changes:

* Introduce font size CSS variables and start replacing hardcoded font
  sizes with standard sizes.
* Change header tags to use only one <h1> per page. One <h1> per page is
  recommended for SEO purposes. Usually this is for the page title, like
  in forum threads or wiki pages.
* Standardize on <h2> for section headers in sidebars and <h3> for
  smaller subsection headers. Don't use <h4>-<h6>.
* In DText, make h1-h4 headers all the same size. Standard wiki style is
  to ignore h1-h3 and start at h4.
* In DText, make h4-h6 the same size as the h1-h3 tags outside of DText.
* In the tag list, change the <h1> and <h2> tag category headers to <h3>.
* Make usernames in comments and forum posts smaller. Also change the
  <h4> tag for the commenter name to <div class="author-name">.
* Make the tag list, paginator, and nav menu smaller on mobile.
* Change h1#app-name-header to a#app-name-header.
2020-07-23 17:34:17 -05:00

56 lines
2.0 KiB
Plaintext

<% content_for(:sidebar) do %>
<h2>Search</h2>
<%= search_form_for(modqueue_index_path, classes: "one-line-form") do |f| %>
<%= f.input :tags, label: false, input_html: { placeholder: "Tags", value: params.dig(:search, :tags), "data-autocomplete": "tag-query" } %>
<%= f.input :order, label: false, collection: [["Newest", "modqueue"], ["Oldest", "modqueue_asc"], ["Score (Highest)", "score"], ["Score (Lowest)", "score_asc"]], selected: params[:search][:order] %>
<%= f.button :button, name: nil, id: "search-box-submit" do %>
<i class="fas fa-search"></i>
<% end %>
<% end %>
<%= render "posts/partials/index/blacklist" %>
<p id="modqueue-sidebar-status" class="sidebar-section">
<h2>Status</h2>
<ul>
<li>
<%= link_to "status:pending", modqueue_index_path(search: { tags: "status:pending" }) %>
<span class="post-count"><%= @pending_post_count %></span>
</li>
<li>
<%= link_to "status:flagged", modqueue_index_path(search: { tags: "status:flagged" }) %>
<span class="post-count"><%= @flagged_post_count %></span>
</li>
<% @disapproval_reasons.each do |reason, count| %>
<li>
<%= link_to "disapproved:#{reason}", modqueue_index_path(search: { tags: "disapproved:#{reason}" }) %>
<span class="post-count"><%= count %></span>
</li>
<% end %>
</ul>
</p>
<p id="modqueue-sidebar-uploaders" class="sidebar-section">
<h2>Uploaders</h2>
<ul>
<% @uploaders.each do |uploader, count| %>
<li>
<%= link_to_user uploader %>
<%= link_to "»", modqueue_index_path(search: { tags: "user:#{uploader.name}" }) %>
<span class="post-count"><%= count %></span>
</li>
<% end %>
</ul>
</p>
<p id="modqueue-sidebar-tags" class="sidebar-section">
<h2>Tags</h2>
<%= render "tag_list", tags: @artist_tags %>
<%= render "tag_list", tags: @copyright_tags %>
<%= render "tag_list", tags: @character_tags %>
</p>
<% end %>