Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/controllers/help_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class HelpController < ApplicationController
tags_fandoms
tags_ratings
tags_relationships
tags_search_results
tags_search_text
tags_warnings
works_assignment
works_backdating
Expand Down
5 changes: 5 additions & 0 deletions app/views/help/tags_search_results.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h4><%= t(".page_heading") %></h4>

<p><%= t(".canonical.description_html", highlighted: tag.span(t(".canonical.highlighted"), class: "canonical")) %></p>
<p><%= t(".sorting") %></p>
<p><%= t(".refine") %></p>
38 changes: 38 additions & 0 deletions app/views/help/tags_search_text.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<h4><%= t(".page_heading") %></h4>

<dl>
<dt>
<%= t(".asterisk.title") %>
</dt>
<dd>
<%= t(".asterisk.description_html", book_query_kbd: tag.kbd(t(".asterisk.book_query_kbd")), book_samp: tag.samp(t(".asterisk.book_samp")), books_samp: tag.samp(t(".asterisk.books_samp")), booking_samp: tag.samp(t(".asterisk.booking_samp"))) %>
</dd>

<dt>
<%= t(".and.title") %>
</dt>
<dd>
<%= t(".and.description_html", harry_potter_kbd: tag.kbd(t(".and.harry_potter_kbd")), harry_potter_samp: tag.samp(t(".and.harry_potter_samp")), harry_james_potter_samp: tag.samp(t(".and.harry_james_potter_samp")), harry_samp: tag.samp(t(".and.harry_samp"))) %>
</dd>

<dt>
<%= t(".or.title") %>
</dt>
<dd>
<%= t(".or.description_html", harry_potter_kbd: tag.kbd(t(".or.harry_potter_kbd")), harry_samp: tag.samp(t(".or.harry_samp")), harry_potter_samp: tag.samp(t(".or.harry_potter_samp")), potter_samp: tag.samp(t(".or.potter_samp"))) %>
</dd>

<dt>
<%= t(".double_quote.title") %>
</dt>
<dd>
<%= t(".double_quote.description_html", harry_lockhart_kbd: tag.kbd(t(".double_quote.harry_lockhart_kbd")), harry_lockhart_samp: tag.samp(t(".double_quote.harry_lockhart_samp")), harry_potter_gilderoy_lockhart_samp: tag.samp(t(".double_quote.harry_potter_gilderoy_lockhart_samp"))) %>
</dd>

<dt>
<%= t(".not.title") %>
</dt>
<dd>
<%= t(".not.description_html", harry_not_lockhart_kbd: tag.kbd(t(".not.harry_not_lockhart_kbd")), harry_potter_samp: tag.samp(t(".not.harry_potter_samp")), harry_lockhart_samp: tag.samp(t(".not.harry_lockhart_samp")), gilderoy_lockhart_harry_potter_samp: tag.samp(t(".not.gilderoy_lockhart_harry_potter_samp"))) %>
</dd>
</dl>
2 changes: 1 addition & 1 deletion app/views/tags/_search_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<dl>
<dt>
<%= f.label :name, t(".tag_name") %>
<%= link_to_help "tag-search-text-help" %>
<%= link_to_help_modal(help_tags_search_text_path, t(".tags_search_text_help_title")) %>
</dt>
<dd>
<%= f.text_field :name %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/tags/search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= render :partial => 'tags/search_form' %>

<% if @tags %>
<h3 class="heading"><%= search_results_found(@tags) %> <%= link_to_help "tag-search-results-help" %></h3>
<h3 class="heading"><%= search_results_found(@tags) %> <%= link_to_help_modal(help_tags_search_results_path, t(".tags_search_results_help_title")) %></h3>
<h4 class="landmark heading">Listing Tags</h4>
<ol class="tag index group">
<% for tag in @tags %>
Expand Down
46 changes: 46 additions & 0 deletions config/locales/views/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1749,6 +1749,49 @@ en:
html: "(For more information, see the %{tags_faq_section_link}.)"
tags_faq_section: Tags on the Archive FAQ
page_heading: Relationships Tags
tags_search_results:
canonical:
description_html: "%{highlighted} tags are canonical."
highlighted: Highlighted
page_heading: Tag Search Results
refine: If there are too many tags, try refining your search, rather than paging through the results.
sorting: Very new tags will be at the top of the list. Otherwise the list is sorted alphabetically by type and then name.
tags_search_text:
and:
description_html: "%{harry_potter_kbd} will find %{harry_potter_samp} and %{harry_james_potter_samp} but not %{harry_samp}."
harry_james_potter_samp: Harry James Potter
harry_potter_kbd: Harry Potter
harry_potter_samp: Harry Potter
harry_samp: Harry
title: 'space: a space acts like AND'
asterisk:
book_query_kbd: book*
book_samp: book
booking_samp: booking
books_samp: books
description_html: "%{book_query_kbd} will find %{book_samp} and %{books_samp} and %{booking_samp}."
title: "*: any characters"
double_quote:
description_html: "%{harry_lockhart_kbd} will find %{harry_lockhart_samp} but not %{harry_potter_gilderoy_lockhart_samp}."
harry_lockhart_kbd: '"Harry Lockhart"'
harry_lockhart_samp: '"Harry Lockhart"'
harry_potter_gilderoy_lockhart_samp: Harry Potter/Gilderoy Lockhart
title: "\": words in exact sequence"
not:
description_html: "%{harry_not_lockhart_kbd} will find %{harry_potter_samp} but not %{harry_lockhart_samp} or %{gilderoy_lockhart_harry_potter_samp}."
gilderoy_lockhart_harry_potter_samp: Gilderoy Lockhart/Harry Potter
harry_lockhart_samp: Harry Lockhart
harry_not_lockhart_kbd: Harry NOT Lockhart
harry_potter_samp: Harry Potter
title: 'NOT: NOT'
or:
description_html: "%{harry_potter_kbd} will find %{harry_samp}, %{harry_potter_samp}, and %{potter_samp}."
harry_potter_kbd: Harry || Potter
harry_potter_samp: Harry Potter
harry_samp: Harry
potter_samp: Potter
title: "||: OR (not exclusive)"
page_heading: Tag Search Text
tags_warnings:
choose_not_to_use:
description: Use this if you don't want to warn for anything. You may also choose this option if you don't know what you should warn for; if you don't like warning for certain topics or warnings in general; if you want to avoid some spoilers, but not others; etc.
Expand Down Expand Up @@ -3087,6 +3130,8 @@ en:
random: These are some random tags used on the Archive. To find more tags, %{search_tags_link}.
random_in_collection: These are some random tags used in the collection.
search_tags: try our tag search
search:
tags_search_results_help_title: Tag search results help
search_form:
fandoms: Fandoms
fandoms_footnote: Find tags wrangled to specific canonical fandoms.
Expand All @@ -3103,6 +3148,7 @@ en:
synonymous: Synonymous
unwrangleable: Unwrangleable
tag_name: Tag name
tags_search_text_help_title: Tag search text help
type: Type
wrangling_status: Wrangling status
show:
Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,8 @@
get "/help/fandom-help.html", to: redirect("/help/tags_fandoms")
get "/help/rating-help.html", to: redirect("/help/tags_ratings")
get "/help/relationships-help.html", to: redirect("/help/tags_relationships")
get "/help/tag-search-results-help.html", to: redirect("/help/tags_search_results")
get "/help/tag-search-text-help.html", to: redirect("/help/tags_search_text")
get "/help/warning-help.html", to: redirect("/help/tags_warnings")
get "/help/add-work-to-assignment.html", to: redirect("/help/works_assignment")
get "/help/backdating-help.html", to: redirect("/help/works_backdating")
Expand Down
5 changes: 0 additions & 5 deletions public/help/tag-search-results-help.html

This file was deleted.

43 changes: 0 additions & 43 deletions public/help/tag-search-text-help.html

This file was deleted.

Loading