Fix whitespace errors

These were largely found with three regular expressions:
%> [.;,]
( <%
%> \w+ <
This commit is contained in:
Liam 2024-05-04 15:52:41 -04:00
parent 67720bd7dc
commit c617533b4c
43 changed files with 68 additions and 187 deletions

View file

@ -57,7 +57,7 @@
</strong>
<%= if contacted?(link) do %>
<br /> by <%= link.contacted_by_user.name %>
<br /> ( <%= pretty_time(link.contacted_at) %> )
<br /> (<%= pretty_time(link.contacted_at) %>)
<% end %>
</td>
<td>

View file

@ -1,6 +1,6 @@
<div class="walloftext">
<h1>
<%= @user.name %> 's Donations
<%= @user.name %>'s Donations
</h1>
<%= render(PhilomenaWeb.Admin.DonationView, "_table.html", donations: @donations, conn: @conn) %>
<h1>

View file

@ -7,7 +7,7 @@
</a>
<p>
<strong>
Derpibooru costs over $25 a day to operate - <%= link("help support us financially", to: "/pages/donations") %> !
Derpibooru costs over $25 a day to operate - <%= link("help support us financially", to: "/pages/donations") %>!
</strong>
</p>
</div>

View file

@ -3,13 +3,13 @@
You've been banned!
</h4>
<p>
You cannot create comments or posts or update metadata (or do anything but read, really) until <%= pretty_time(@conn.assigns.current_ban.valid_until) %> .
You cannot create comments or posts or update metadata (or do anything but read, really) until <%= pretty_time(@conn.assigns.current_ban.valid_until) %>.
</p>
<p>
The reason given by the administrator who banned you is: <br />
<strong>
<%= @conn.assigns.current_ban.reason %>
</strong>
(Ban ID: <%= @conn.assigns.current_ban.generated_ban_id %> ).
(Ban ID: <%= @conn.assigns.current_ban.generated_ban_id %>).
</p>
</div>

View file

@ -14,11 +14,7 @@
picarto_channel_name
</em>
</code>
is
<code>
picarto_channel_name
</code>
.
is <code>picarto_channel_name</code>.
</div>
<div class="fieldlabel">
The short name of
@ -28,11 +24,7 @@
piczel_channel_name
</em>
</code>
is
<code>
piczel_channel_name
</code>
. <br />
is <code>piczel_channel_name</code>. <br />
<br />
</div>
<div class="field">

View file

@ -43,7 +43,7 @@
<strong class="comment_deleted">
Deletion reason: <%= @comment.deletion_reason %>
<%= if can?(@conn, :hide, @comment) and not is_nil(@comment.deleted_by) do %>
( <%= @comment.deleted_by.name %> )
(<%= @comment.deleted_by.name %>)
<% end %>
</strong>
<%= if can?(@conn, :hide, @comment) do %>

View file

@ -16,7 +16,7 @@
<strong class="comment_deleted">
Deletion reason: <%= @comment.deletion_reason %>
<%= if can?(@conn, :hide, @comment) and not is_nil(@comment.deleted_by) do %>
( <%= @comment.deleted_by.name %> )
(<%= @comment.deleted_by.name %>)
<% end %>
</strong>
<%= if can?(@conn, :hide, @comment) do %>

View file

@ -7,11 +7,7 @@
<%= submit("Search", class: "hform__button button") %>
</div>
<div class="fieldlabel">
For more information, see the
<a href="/pages/search_syntax">
search syntax documentation
</a>
. Search results are sorted by creation date.
For more information, see the <a href="/pages/search_syntax">search syntax documentation</a>. Search results are sorted by creation date.
</div>
<% end %>
<h2>
@ -52,31 +48,8 @@
Default search
</h3>
<p>
If you do not specify a field to search over, the search engine will
search for comments with a body that is similar to the query's
<em>
word stems
</em>
. For example, comments containing the words
<code>
winged humanization
</code>
,
<code>
wings
</code>
, and
<code>
spread wings
</code>
would all be found by a search for
<code>
wing
</code>
, but
<code>
sewing
</code>
If you do not specify a field to search over, the search engine will search for comments with a body that is similar to the query's <em>word stems</em>. For example, comments containing the words <code>winged humanization</code>, <code>wings</code>, and <code>spread wings</code>
would all be found by a search for <code>wing</code>, but <code>sewing</code>
would not be.
</p>
<h3>

View file

@ -37,7 +37,7 @@ pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @comm
<strong>
Price Range:
</strong>
$ <%= Decimal.round(min.base_price, 2) |> Decimal.to_string() %> - $ <%= Decimal.round(max.base_price, 2) |> Decimal.to_string() %> USD
$<%= Decimal.round(min.base_price, 2) |> Decimal.to_string() %> - $<%= Decimal.round(max.base_price, 2) |> Decimal.to_string() %> USD
</p>
<p>
<strong>

View file

@ -36,7 +36,7 @@ pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @conv
<%= link(c.title, to: ~p"/conversations/#{c}") %>
<div class="small-text hide-mobile">
<%= count %>
<%= pluralize("message", "messages", count) %> ; started <%= pretty_time(c.created_at) %> , last message <%= pretty_time(c.last_message_at) %>
<%= pluralize("message", "messages", count) %>; started <%= pretty_time(c.created_at) %>, last message <%= pretty_time(c.last_message_at) %>
</div>
</td>
<td class="table--communication-list__stats">

View file

@ -34,7 +34,7 @@
<br />
<%= link("My Listings", to: ~p"/dnp?#{[mine: "1"]}") %>
<% not is_nil(@current_user) -> %>
You must have a verified artist link to create and manage DNP entries. <%= link("Request an artist link", to: ~p"/profiles/#{@current_user}/artist_links/new") %> .
You must have a verified artist link to create and manage DNP entries. <%= link("Request an artist link", to: ~p"/profiles/#{@current_user}/artist_links/new") %>.
<% true -> %>
You must be logged in and have a verified artist link to create and manage DNP entries.
<% end %>

View file

@ -3,12 +3,12 @@
<%= if is_nil(@image) do %>
(Image now hard-deleted)
<% else %>
# <%= @image.id %>
#<%= @image.id %>
<% end %>
</p>
<%= render(PhilomenaWeb.ImageView, "_image_container.html", image: @image, size: :thumb_small, conn: @conn) %>
<p>
<%= @image.image_width %> x <%= @image.image_height %>
<%= @image.image_width %>x<%= @image.image_height %>
</p>
<p>
<%= render(PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @image, conn: @conn) %>

View file

@ -15,7 +15,7 @@
<div class="filter-options">
<ul>
<li>
Spoilers <%= length(@filter.spoilered_tag_ids) %> , hides <%= length(@filter.hidden_tag_ids) %>
Spoilers <%= length(@filter.spoilered_tag_ids) %>, hides <%= length(@filter.hidden_tag_ids) %>
</li>
<li>
<%= link("View this filter", to: ~p"/filters/#{@filter}", class: "button") %>

View file

@ -1,5 +1,5 @@
<h1>
<%= @fingerprint %> 's fingerprint profile
<%= @fingerprint %>'s fingerprint profile
</h1>
<ul>
<li>

View file

@ -57,10 +57,7 @@ info = render(PhilomenaWeb.PaginationView, "_pagination_info.html", page: @image
A gallery by
</span>
<%= link(@gallery.creator.name, to: ~p"/profiles/#{@gallery.creator}") %> with <%= @gallery.image_count %>
<%= pluralize("image", "images", @gallery.image_count) %>
<span class="hide-mobile-t">
, last updated <%= pretty_time(@gallery.updated_at) %>
</span>
<%= pluralize("image", "images", @gallery.image_count) %><span class="hide-mobile-t">, last updated <%= pretty_time(@gallery.updated_at) %></span>
</div>
<div class="block__content flex js-imagelist-info">
<div class="flex__fixed thumb-tiny-container spacing-right">

View file

@ -89,7 +89,7 @@
<%= render(PhilomenaWeb.ImageView, "_uploader.html", assigns) %>
</div>
<span class="image-size">
&nbsp; <%= @image.image_width %> x <%= @image.image_height %>
&nbsp; <%= @image.image_width %>x<%= @image.image_height %>
<%= if not is_nil(@image.image_duration) and @image.image_is_animated and @image.image_duration > 0 do %>
<span class="image-size" title={@image.image_duration}>
&nbsp; <% dur = trunc(@image.image_duration) %>

View file

@ -9,7 +9,7 @@
<%= img_tag(static_path(@conn, "/images/tagblocked.svg"), width: 250, height: 250, data: [click_unfilter: @image.id]) %>
</p>
<span class="filter-explanation"></span>
<%= link("your current filter", to: ~p"/filters/#{@conn.assigns.current_filter}", class: "filter-link") %> .
<%= link("your current filter", to: ~p"/filters/#{@conn.assigns.current_filter}", class: "filter-link") %>.
</div>
<%= if size == :full and not embed_display do %>
<div

View file

@ -71,7 +71,7 @@
<spanspan class="hide-mobile">
History
</spanspan>
( <%= @source_change_count %> )
(<%= @source_change_count %>)
</a>
<% end %>
<%= if can?(@conn, :hide, @image) and not hide_staff_tools?(@conn) do %>

View file

@ -90,7 +90,7 @@
</a>
<%= if @tag_change_count > 0 do %>
<a class="button button--link button--inline" href={~p"/images/#{@image}/tag_changes"} title="Tag history">
<i class="fa fa-history"></i> History ( <%= @tag_change_count %> )
<i class="fa fa-history"></i> History (<%= @tag_change_count %>)
</a>
<% end %>
</div>

View file

@ -1,7 +1,7 @@
<h1>
Viewing last 25 versions of comment by <%= render(PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @comment, conn: @conn) %> on image
<a href={~p"/images/#{@comment.image}"}>
# <%= @comment.image_id %>
#<%= @comment.image_id %>
</a>
</h1>
<%= for version <- @versions do %>

View file

@ -37,7 +37,7 @@
If you originally uploaded the file previously located here, please don't re-upload it - <%= link("contact us", to: "/pages/contact") %> if you feel this was in error and we'll talk! We're only human, and mistakes happen.
</p>
<p>
Here's the <%= link("tagging guidelines", to: "/pages/tags") %> and <%= link("rules of the site", to: "/pages/rules") %> . Other useful links can be found at the bottom of the page.
Here's the <%= link("tagging guidelines", to: "/pages/tags") %> and <%= link("rules of the site", to: "/pages/rules") %>. Other useful links can be found at the bottom of the page.
</p>
</div>
<% end %>

View file

@ -3,7 +3,7 @@
<div class="block__header__title hide-mobile">
Viewing related images for
<strong>
# <%= @image.id %>
#<%= @image.id %>
</strong>
</div>
</div>

View file

@ -1,7 +1,7 @@
<h1>
Source changes for
<a href={~p"/images/#{@image}"}>
image # <%= @image.id %>
image #<%= @image.id %>
</a>
</h1>
<% route = fn p -> ~p"/images/#{@image}/source_changes?#{p}" end %>

View file

@ -1,7 +1,7 @@
<h1>
Tag changes for
<a href={~p"/images/#{@image}"}>
image # <%= @image.id %>
image #<%= @image.id %>
</a>
</h1>
<% route = fn p -> ~p"/images/#{@image}/tag_changes?#{p}" end %>

View file

@ -1,6 +1,6 @@
<% tag_input = Enum.map_join(@image.locked_tags, ", ", & &1.name) %>
<h1>
Editing locked tags on image # <%= @image.id %>
Editing locked tags on image #<%= @image.id %>
</h1>
<%= form_for @changeset, ~p"/images/#{@image}/tag_lock", fn f -> %>
<div class="field">

View file

@ -1,5 +1,5 @@
<h1>
<%= @ip %> 's IP profile
<%= @ip %>'s IP profile
</h1>
<ul>
<li>

View file

@ -28,6 +28,6 @@
<a href="https://github.com/philomena-dev/philomena">
philomena
</a>
( <%= render_time(@conn) %> ms)
(<%= render_time(@conn) %> ms)
</div>
</footer>

View file

@ -130,7 +130,7 @@
</div>
<% else %>
<a class="header__link hide-mobile" href="/filters">
Filters ( <%= @current_filter.name %> )
Filters (<%= @current_filter.name %>)
</a>
<span class="js-burger-links hide-mobile">
<a class="header__link" href="/settings/edit">

View file

@ -43,7 +43,7 @@
<strong class="comment_deleted">
Deletion reason: <%= @post.deletion_reason %>
<%= if can?(@conn, :hide, @post) and not is_nil(@post.deleted_by) do %>
( <%= @post.deleted_by.name %> )
(<%= @post.deleted_by.name %>)
<% end %>
</strong>
<%= if can?(@conn, :hide, @post) do %>

View file

@ -7,11 +7,7 @@
<%= submit("Search", class: "hform__button button") %>
</div>
<div class="fieldlabel">
For more information, see the
<a href="/pages/search_syntax">
search syntax documentation
</a>
. Search results are sorted by creation date.
For more information, see the <a href="/pages/search_syntax">search syntax documentation</a>. Search results are sorted by creation date.
</div>
<% end %>
<h2>
@ -62,31 +58,8 @@
Default search
</h3>
<p>
If you do not specify a field to search over, the search engine will
search for posts with a body that is similar to the query's
<em>
word stems
</em>
. For example, posts containing the words
<code>
winged humanization
</code>
,
<code>
wings
</code>
, and
<code>
spread wings
</code>
would all be found by a search for
<code>
wing
</code>
, but
<code>
sewing
</code>
If you do not specify a field to search over, the search engine will search for posts with a body that is similar to the query's <em>word stems</em>. For example, posts containing the words <code>winged humanization</code>, <code>wings</code>, and <code>spread wings</code>
would all be found by a search for <code>wing</code>, but <code>sewing</code>
would not be.
</p>
<h3>

View file

@ -14,7 +14,7 @@
You have not added any items to your commissions sheet yet.
</p>
<p>
Your listing will not appear in search results until you <%= link("list at least one item", to: ~p"/profiles/#{@user}/commission/items/new") %> .
Your listing will not appear in search results until you <%= link("list at least one item", to: ~p"/profiles/#{@user}/commission/items/new") %>.
</p>
<% else %>
<p>
@ -63,7 +63,7 @@
<%= description %>
</td>
<td>
$ <%= Decimal.round(item.base_price, 2) %>
$<%= Decimal.round(item.base_price, 2) %>
</td>
<td>
<%= add_ons %>

View file

@ -1,5 +1,5 @@
<h1>
<%= @commission.user.name %> 's Commissions
<%= @commission.user.name %>'s Commissions
</h1>
<div class="column-layout">
<% # Side column %>

View file

@ -1,5 +1,5 @@
<h2>
<%= link(@user.name, to: ~p"/profiles/#{@user}") %> 's User Details
<%= link(@user.name, to: ~p"/profiles/#{@user}") %>'s User Details
</h2>
<h4>
Mod Notes

View file

@ -8,7 +8,7 @@
<ul>
<%= for u <- @other_users[ufp.fingerprint] do %>
<li>
<%= link(u.user.name, to: ~p"/profiles/#{u.user}") %> ( <%= u.uses %> uses, last used <%= pretty_time(u.updated_at) %> )
<%= link(u.user.name, to: ~p"/profiles/#{u.user}") %> (<%= u.uses %> uses, last used <%= pretty_time(u.updated_at) %>)
</li>
<% end %>
</ul>

View file

@ -8,7 +8,7 @@
<ul>
<%= for u <- @other_users[uip.ip] do %>
<li>
<%= link(u.user.name, to: ~p"/profiles/#{u.user}") %> ( <%= u.uses %> uses, last used <%= pretty_time(u.updated_at) %> )
<%= link(u.user.name, to: ~p"/profiles/#{u.user}") %> (<%= u.uses %> uses, last used <%= pretty_time(u.updated_at) %>)
</li>
<% end %>
</ul>

View file

@ -10,7 +10,7 @@
<div class="profile-top__name-and-links">
<div>
<h1 class="profile-top__name-header">
<%= @user.name %> 's profile
<%= @user.name %>'s profile
</h1>
<%= render(PhilomenaWeb.UserAttributionView, "_user_title.html", object: %{user: @user}, large: true) %>
<br />

View file

@ -13,7 +13,7 @@
</h3>
<ul>
<li>
Make sure to report for the correct <%= link("rule", to: "/pages/rules") %> .
Make sure to report for the correct <%= link("rule", to: "/pages/rules") %>.
</li>
<li>
One report per problem. If it involves multiple things (images, comments, etc), list all of their IDs in the description of a single report.
@ -49,7 +49,7 @@
a verified artist link.
</p>
<p>
For more information, please read the <%= link("takedown policy", to: "/pages/takedowns") %> .
For more information, please read the <%= link("takedown policy", to: "/pages/takedowns") %>.
</p>
</div>
<br />

View file

@ -111,53 +111,26 @@
<div class="block__content">
<div class="hidden walloftext" data-search-help="boolean">
<strong class="js-search-help-subject"></strong>
is a Boolean-valued field. It only accepts the values
<code>
true
</code>
and
<code>
false
</code>
. <br />
is a Boolean-valued field. It only accepts the values <code>true</code>
and <code>false</code>. <br />
<br />
<em>
Example:
</em>
to find images which are not animated, you would use
<code>
animated:false
</code>
.
to find images which are not animated, you would use <code>animated:false</code>.
</div>
<div class="hidden walloftext" data-search-help="numeric">
<strong class="js-search-help-subject"></strong>
is a numerical range field. Four qualifiers,
<code>
gte
</code>
(greater than or equal),
<code>
lte
</code>
(less than or equal),
<code>
gt
</code>
(greater than), and
<code>
lt
</code>
is a numerical range field. Four qualifiers, <code>gte</code>
(greater than or equal), <code>lte</code>
(less than or equal), <code>gt</code>
(greater than), and <code>lt</code>
(less than), can be applied to the desired value. <br />
<br />
<em>
Example:
</em>
to find images with a score greater than 100, you would use
<code>
score.gt:100
</code>
.
to find images with a score greater than 100, you would use <code>score.gt:100</code>.
</div>
<div class="hidden walloftext" data-search-help="date">
<strong class="js-search-help-subject"></strong>
@ -165,53 +138,26 @@
<a href="/pages/search_syntax#date-range">
tweaked subset of the ISO 8601 standard
</a>
, as well as relative dates
<code>
(X minutes/hours/days/months/years ago)
</code>
. Four qualifiers,
<code>
gte
</code>
(greater than or equal),
<code>
lte
</code>
(less than or equal),
<code>
gt
</code>
(greater than), and
<code>
lt
</code>
, as well as relative dates <code>(X minutes/hours/days/months/years ago)</code>. Four qualifiers, <code>gte</code>
(greater than or equal), <code>lte</code>
(less than or equal), <code>gt</code>
(greater than), and <code>lt</code>
(less than), can be applied to the desired value. <br />
<br />
<em>
Example:
</em>
to find images created before 2013, you would use
<code>
created_at.lt:2013
</code>
.
to find images created before 2013, you would use <code>created_at.lt:2013</code>.
</div>
<div class="hidden walloftext" data-search-help="literal">
<strong class="js-search-help-subject"></strong>
is a literal field. You can apply apply a wildcard
<code>
*
</code>
is a literal field. You can apply apply a wildcard <code>*</code>
as a substitute for zero or more characters. <br />
<br />
<em>
Example:
</em>
to find images from DeviantArt, you would use
<code>
source_url:*deviantart.com*
</code>
.
to find images from DeviantArt, you would use <code>source_url:*deviantart.com*</code>.
</div>
</div>
</div>

View file

@ -76,7 +76,7 @@
</th>
<th>
<h3>
<%= match.image_width %> x <%= match.image_height %> - <%= round(match.image_size / 1024) %> KiB
<%= match.image_width %>x<%= match.image_height %> - <%= round(match.image_size / 1024) %> KiB
</h3>
<%= render(PhilomenaWeb.TagView, "_tag_list.html", tags: Tag.display_order(match.tags), conn: @conn) %>
</th>

View file

@ -2,7 +2,7 @@
<div>
<%= for map <- slice do %>
<% [header, tag_name] = Enum.to_list(map) %>
<%= header %> . <%= tag_link(@tags[tag_name], tag_name) %>
<%= header %>. <%= tag_link(@tags[tag_name], tag_name) %>
<br />
<% end %>
</div>

View file

@ -92,7 +92,7 @@
<%= for channel <- @tag.channels do %>
<%= link(channel.title, to: ~p"/channels/#{channel}") %>
<%= if can?(@conn, :edit, channel) do %>
( <%= link("Edit", to: ~p"/channels/#{channel}/edit") %> )
(<%= link("Edit", to: ~p"/channels/#{channel}/edit") %>)
<% end %>
<% end %>
<br />
@ -130,7 +130,7 @@
<strong>
<%= entry.dnp_type %>
</strong>
<%= body %> ( <%= link("more info", to: ~p"/dnp/#{entry}") %> )
<%= body %> (<%= link("more info", to: ~p"/dnp/#{entry}") %>)
<% end %>
<% end %>
</div>

View file

@ -10,7 +10,7 @@
</h3>
<%= render(PhilomenaWeb.Tag.DetailView, "_filters.html", filters: @filters_hiding, conn: @conn) %>
<h3>
Users that watch this tag ( <%= length(@users_watching) %> )
Users that watch this tag (<%= length(@users_watching) %>)
</h3>
<%= for u <- @users_watching do %>
<%= link(u.name, to: ~p"/profiles/#{u}", class: "interaction-user-list-item") %>

View file

@ -28,7 +28,7 @@
<% end %>
<p>
<%= if active?(@poll) do %>
Poll ends <%= pretty_time(@poll.active_until) %> .
Poll ends <%= pretty_time(@poll.active_until) %>.
<%= if @poll.total_votes > 0 do %>
<%= @poll.total_votes %>
<%= pluralize("vote", "votes", @poll.total_votes) %>
@ -38,7 +38,7 @@
cast so far.
<% else %>
Poll ended <%= pretty_time(@poll.active_until) %> with <%= @poll.total_votes %>
<%= pluralize("vote", "votes", @poll.total_votes) %> .
<%= pluralize("vote", "votes", @poll.total_votes) %>.
<% end %>
</p>
</div>