-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prefer Rails built-in
t
helper over ts
- Loading branch information
1 parent
7adab14
commit ca89de9
Showing
2 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,22 @@ | |
<fieldset> | ||
<dl> | ||
<dt> | ||
<%= f.label :name, ts("Tag name") %> | ||
<%= f.label :name, t(".tag_name") %> | ||
<%= link_to_help "tag-search-text-help" %> | ||
</dt> | ||
<dd> | ||
<%= f.text_field :name %> | ||
</dd> | ||
<dt> | ||
<%= f.label :fandoms, ts("Fandoms") %> | ||
<%= f.label :fandoms, t(".fandoms") %> | ||
</dt> | ||
<dd> | ||
<%= f.text_field :fandoms, autocomplete_options("fandom", "aria-describedby" => "fandom-field-description") %> | ||
<p class="footnote" id="fandom-field-description"> | ||
<%= ts("Find tags wrangled to specific canonical fandoms.") %> | ||
<%= t(".fandoms_footnote") %> | ||
</p> | ||
</dd> | ||
<dt><%= ts("Type") %></dt> | ||
<dt><%= ts(".type") %></dt> | ||
Check failure on line 20 in app/views/tags/_search_form.html.erb GitHub Actions / ERB Lint runner
|
||
<dd> | ||
<fieldset> | ||
<ul> | ||
|
@@ -35,51 +35,51 @@ | |
</ul> | ||
</fieldset> | ||
</dd> | ||
<dt><%= ts("Wrangling status") %></dt> | ||
<dt><%= t(".wrangling_status") %></dt> | ||
<dd> | ||
<fieldset> | ||
<ul> | ||
<li> | ||
<%= f.radio_button :wrangling_status, "canonical" %> | ||
<%= f.label :wrangling_status, ts("Canonical"), value: "canonical" %> | ||
<%= f.label :wrangling_status, t(".status_option.canonical"), value: "canonical" %> | ||
</li> | ||
<li> | ||
<%= f.radio_button :wrangling_status, "noncanonical" %> | ||
<%= f.label :wrangling_status, ts("Non-canonical"), value: "noncanonical" %> | ||
<%= f.label :wrangling_status, t(".status_option.noncanonical"), value: "noncanonical" %> | ||
</li> | ||
<li> | ||
<%= f.radio_button :wrangling_status, "synonymous" %> | ||
<%= f.label :wrangling_status, ts("Synonymous"), value: "synonymous" %> | ||
<%= f.label :wrangling_status, t(".status_option.synonymous"), value: "synonymous" %> | ||
</li> | ||
<li> | ||
<%= f.radio_button :wrangling_status, "canonical_synonymous" %> | ||
<%= f.label :wrangling_status, ts("Canonical or synonymous"), value: "canonical_synonymous" %> | ||
<%= f.label :wrangling_status, t(".status_option.canonical_or_synonymous"), value: "canonical_synonymous" %> | ||
</li> | ||
<li> | ||
<%= f.radio_button :wrangling_status, "noncanonical_nonsynonymous" %> | ||
<%= f.label :wrangling_status, ts("Non-canonical and non-synonymous"), value: "noncanonical_nonsynonymous" %> | ||
<%= f.label :wrangling_status, t(".status_option.noncanonical_and_nonsynonymous"), value: "noncanonical_nonsynonymous" %> | ||
</li> | ||
<li> | ||
<%= f.radio_button :wrangling_status, "" %> | ||
<%= f.label :wrangling_status, ts("Any status"), value: "" %> | ||
<%= f.label :wrangling_status, t(".status_option.any_status"), value: "" %> | ||
</li> | ||
</ul> | ||
</fieldset> | ||
</dd> | ||
<dt> | ||
<%= f.label :sort_column, ts("Sort by") %> | ||
<%= f.label :sort_column, t(".sort_by") %> | ||
</dt> | ||
<dd> | ||
<%= f.select :sort_column, options_for_select(@search.sort_options, @search.sort_column) %> | ||
</dd> | ||
<dt> | ||
<%= f.label :sort_direction, ts("Sort direction") %> | ||
<%= f.label :sort_direction, t(".sort_direction") %> | ||
</dt> | ||
<dd> | ||
<%= f.select :sort_direction, | ||
options_for_select([["Ascending", "asc"], ["Descending", "desc"]], @search.sort_direction) %> | ||
</dd> | ||
</dl> | ||
<p class="submit actions"><%= f.submit ts("Search Tags") %></p> | ||
<p class="submit actions"><%= f.submit t(".search_tags") %></p> | ||
</fieldset> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters