- Note: - <%= ban.note %> + Note: <%= ban.note %>
<% end %> @@ -71,8 +69,7 @@- Note: - <%= ban.note %> + Note: <%= ban.note %>
<% end %> @@ -71,8 +69,7 @@- Note: - <%= ban.note %> + Note: <%= ban.note %>
<% end %> @@ -71,8 +69,7 @@- 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") %> !
- 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) %> .
- The reason given by the administrator who banned you is:
-
+ The reason given by the administrator who banned you is:
<%= @conn.assigns.current_ban.reason %>
- (Ban ID:
- <%= @conn.assigns.current_ban.generated_ban_id %>
- ).
+ (Ban ID: <%= @conn.assigns.current_ban.generated_ban_id %> ).
piczel_channel_name
- .
- - - This comment is pending approval from a staff member. + This comment is pending approval from a staff member.
<%= if can?(@conn, :approve, @comment) do %>
diff --git a/lib/philomena_web/templates/conversation/index.html.heex b/lib/philomena_web/templates/conversation/index.html.heex
index 2e8f5601..0b7c98b1 100644
--- a/lib/philomena_web/templates/conversation/index.html.heex
+++ b/lib/philomena_web/templates/conversation/index.html.heex
@@ -1,7 +1,5 @@
-<%
- route = fn p -> ~p"/conversations?#{p}" end
- pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @conversations, route: route, conn: @conn)
-%>
+<% route = fn p -> ~p"/conversations?#{p}" end
+pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @conversations, route: route, conn: @conn) %>
My Conversations
@@ -12,8 +10,7 @@
- <%= link("Click here", to: ~p"/conversations/new?#{[receipient: other.name]}") %> - to make a new conversation with this user. + <%= link("Click here", to: ~p"/conversations/new?#{[receipient: other.name]}") %> to make a new conversation with this user.
- <%= @image.image_width %> - x - <%= @image.image_height %> + <%= @image.image_width %> x <%= @image.image_height %>
<%= render(PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @image, conn: @conn) %> @@ -20,15 +17,13 @@ <%= if @source do %> <% else %> <% end %> diff --git a/lib/philomena_web/templates/duplicate_report/_list.html.heex b/lib/philomena_web/templates/duplicate_report/_list.html.heex index ee417de1..1a18d8b9 100644 --- a/lib/philomena_web/templates/duplicate_report/_list.html.heex +++ b/lib/philomena_web/templates/duplicate_report/_list.html.heex @@ -91,18 +91,15 @@ <%= cond do %> <% same_format?(report) -> %>
- Maintained by - <%= render(PhilomenaWeb.UserAttributionView, "_user.html", object: @filter, conn: @conn) %> + Maintained by <%= render(PhilomenaWeb.UserAttributionView, "_user.html", object: @filter, conn: @conn) %>
<% end %> <%= if @filter.system do %> @@ -16,10 +15,7 @@- Clicking this button will clear the recent filters list in the header dropdown. - <%= button_to("Clear recent filter list", ~p"/filters/clear_recent", method: "delete", class: "button") %> + Clicking this button will clear the recent filters list in the header dropdown. <%= button_to("Clear recent filter list", ~p"/filters/clear_recent", method: "delete", class: "button") %>
<% end %> <% end %> diff --git a/lib/philomena_web/templates/filter/show.html.heex b/lib/philomena_web/templates/filter/show.html.heex index 149e6ce0..6d31e006 100644 --- a/lib/philomena_web/templates/filter/show.html.heex +++ b/lib/philomena_web/templates/filter/show.html.heex @@ -1,16 +1,12 @@- This filter is maintained by - <%= render(PhilomenaWeb.UserAttributionView, "_user.html", object: @filter, conn: @conn) %> + This filter is maintained by <%= render(PhilomenaWeb.UserAttributionView, "_user.html", object: @filter, conn: @conn) %>
<% end %>diff --git a/lib/philomena_web/templates/fingerprint_profile/show.html.heex b/lib/philomena_web/templates/fingerprint_profile/show.html.heex index 1f1e5ed3..7af195b1 100644 --- a/lib/philomena_web/templates/fingerprint_profile/show.html.heex +++ b/lib/philomena_web/templates/fingerprint_profile/show.html.heex @@ -1,6 +1,5 @@
@@ -67,8 +60,7 @@ >#{@image.id}t"} /> - - Copy + Copy
@@ -77,8 +69,7 @@ >#{@image.id}p"} /> - - Copy + Copy
- - This private message is pending approval from a staff member. + This private message is pending approval from a staff member.
<%= if can?(@conn, :approve, @message) do %>
- $ - <%= Decimal.round(item.base_price, 2) %> + $ <%= Decimal.round(item.base_price, 2) %> |
<%= add_ons %>
diff --git a/lib/philomena_web/templates/profile/commission/_listing_sidebar.html.heex b/lib/philomena_web/templates/profile/commission/_listing_sidebar.html.heex
index 9cb16411..1455ba55 100644
--- a/lib/philomena_web/templates/profile/commission/_listing_sidebar.html.heex
+++ b/lib/philomena_web/templates/profile/commission/_listing_sidebar.html.heex
@@ -14,24 +14,17 @@
Status:
- <%=
- if @commission.open do
- "Open"
- else
- "Closed"
- end
- %>
+ <%= if @commission.open do
+ "Open"
+ else
+ "Closed"
+ end %>
<%= if Enum.any?(@commission.items) do %> Price Range: - <% {min, max} = Enum.min_max_by(@commission.items, &Decimal.to_float(&1.base_price)) %> - $ - <%= Decimal.round(min.base_price, 2) |> Decimal.to_string() %> - - $ - <%= Decimal.round(max.base_price, 2) |> Decimal.to_string() %> - USD + <% {min, max} = Enum.min_max_by(@commission.items, &Decimal.to_float(&1.base_price)) %> $ <%= Decimal.round(min.base_price, 2) |> Decimal.to_string() %> - $ <%= Decimal.round(max.base_price, 2) |> Decimal.to_string() %> USD <% end %> @@ -96,7 +89,7 @@ <% # - is_current = (current_user && current_user.id == @user.id) %> <% # - if @links.present? || is_current %> <% # = render partial: 'profiles/artist_link_area' %> -<% # %> +<% # %> <% # Options block %>
@@ -128,8 +121,7 @@
URL
-
- Copy
+ Copy
<%= text_input(:commission, :commission_url, value: url, class: "input input--wide input--separate-top", readonly: true) %>
diff --git a/lib/philomena_web/templates/profile/commission/show.html.heex b/lib/philomena_web/templates/profile/commission/show.html.heex
index 8945c2b4..21b10f06 100644
--- a/lib/philomena_web/templates/profile/commission/show.html.heex
+++ b/lib/philomena_web/templates/profile/commission/show.html.heex
@@ -1,6 +1,5 @@
- <%= @commission.user.name %> - 's Commissions + <%= @commission.user.name %> 's Commissions
<% # Side column %>
diff --git a/lib/philomena_web/templates/profile/detail/index.html.heex b/lib/philomena_web/templates/profile/detail/index.html.heex
index 07f0716c..8d24d826 100644
--- a/lib/philomena_web/templates/profile/detail/index.html.heex
+++ b/lib/philomena_web/templates/profile/detail/index.html.heex
@@ -1,6 +1,5 @@
- <%= link(@user.name, to: ~p"/profiles/#{@user}") %> - 's User Details + <%= link(@user.name, to: ~p"/profiles/#{@user}") %> 's User Details
Mod Notes
diff --git a/lib/philomena_web/templates/profile/fp_history/index.html.heex b/lib/philomena_web/templates/profile/fp_history/index.html.heex
index 04c62c76..02924f1f 100644
--- a/lib/philomena_web/templates/profile/fp_history/index.html.heex
+++ b/lib/philomena_web/templates/profile/fp_history/index.html.heex
@@ -1,6 +1,5 @@
- IP History for - <%= @user.name %> + IP History for <%= @user.name %>
- <%= @user.name %> - 's profile + <%= @user.name %> 's profile<%= render(PhilomenaWeb.UserAttributionView, "_user_title.html", object: %{user: @user}, large: true) %>@@ -20,8 +19,7 @@ <% end %> - Member since - <%= pretty_time(@user.created_at) %> + Member since <%= pretty_time(@user.created_at) %>
@@ -113,14 +111,12 @@
<% end %>
<%= for link <- @user.verified_links, should_see_link?(@conn, @user, link) do %>
- <%
- watchers =
- if link.tag do
- @watcher_counts[link.tag.id] || 0
- else
- 0
- end
- %>
+ <% watchers =
+ if link.tag do
+ @watcher_counts[link.tag.id] || 0
+ else
+ 0
+ end %>
<%= if link.tag do %>
@@ -130,9 +126,7 @@
<% end %>
<%= link(link.uri, to: link.uri) %>
<%= if current?(@user, @conn.assigns.current_user) or manages_links?(@conn, @user) do %>
-
diff --git a/lib/philomena_web/templates/profile/tag_change/index.html.heex b/lib/philomena_web/templates/profile/tag_change/index.html.heex
index 2b4906c7..bf9472aa 100644
--- a/lib/philomena_web/templates/profile/tag_change/index.html.heex
+++ b/lib/philomena_web/templates/profile/tag_change/index.html.heex
@@ -18,8 +18,7 @@
- Watched by - <%= watchers %> + Watched by <%= watchers %> <%= pluralize("user", "users", watchers) %> <% end %> <%= if manages_links?(@conn, @user) do %> @@ -152,8 +146,7 @@ <% else %> <%= unless link.public do %> - - Hidden + Hidden <% end %> <% end %>
- Listing changes for
- <%= @image_count %>
+ Listing changes for <%= @image_count %>
<%= pluralize("image", "images", @image_count) %>
diff --git a/lib/philomena_web/templates/registration/edit.html.heex b/lib/philomena_web/templates/registration/edit.html.heex
index bf1c0640..503c09cb 100644
--- a/lib/philomena_web/templates/registration/edit.html.heex
+++ b/lib/philomena_web/templates/registration/edit.html.heex
@@ -8,17 +8,14 @@
- Looking for two factor authentication? - <%= link("Click here!", to: ~p"/registrations/totp/edit") %> + Looking for two factor authentication? <%= link("Click here!", to: ~p"/registrations/totp/edit") %> - Looking to change your avatar? - <%= link("Click here!", to: ~p"/avatar/edit") %> + Looking to change your avatar? <%= link("Click here!", to: ~p"/avatar/edit") %> <%= if can?(@conn, :change_username, @current_user) do %>- Looking to change your username? - <%= link("Click here!", to: ~p"/registrations/name/edit") %> + Looking to change your username? <%= link("Click here!", to: ~p"/registrations/name/edit") %> <% end %>diff --git a/lib/philomena_web/templates/report/new.html.heex b/lib/philomena_web/templates/report/new.html.heex index 2850d671..27433e3d 100644 --- a/lib/philomena_web/templates/report/new.html.heex +++ b/lib/philomena_web/templates/report/new.html.heex @@ -13,9 +13,7 @@diff --git a/lib/philomena_web/templates/search/_form.html.heex b/lib/philomena_web/templates/search/_form.html.heex index edccf4ac..97612fdb 100644 --- a/lib/philomena_web/templates/search/_form.html.heex +++ b/lib/philomena_web/templates/search/_form.html.heex @@ -119,8 +119,7 @@
false
- .
- + . Example: @@ -149,8 +148,7 @@
lt
- (less than), can be applied to the desired value.
- + (less than), can be applied to the desired value. Example: @@ -187,8 +185,7 @@
lt
- (less than), can be applied to the desired value.
- + (less than), can be applied to the desired value. Example: @@ -205,8 +202,7 @@
*
- as a substitute for zero or more characters.
- + as a substitute for zero or more characters. Example: @@ -227,40 +223,38 @@
<%= submit("Search", class: "button button--state-primary") %>
<% # = submit_tag "I'm Feeling Poni", class: 'button button--separate-left spacing-right', name: 'random_image' %>
- <%
- random_is_selected = to_string(@conn.params["sf"]) =~ ~r/\Arandom(:\d+)?\z/
+ <% random_is_selected = to_string(@conn.params["sf"]) =~ ~r/\Arandom(:\d+)?\z/
- random_seed =
- if random_is_selected do
- @conn.params["sf"]
- else
- "random:#{:rand.uniform(4_294_967_296)}"
- end
+ random_seed =
+ if random_is_selected do
+ @conn.params["sf"]
+ else
+ "random:#{:rand.uniform(4_294_967_296)}"
+ end
- sort_fields = [
- "Sort by initial post date": :first_seen_at,
- "Sort by image ID": :id,
- "Sort by last modification date": :updated_at,
- "Sort by aspect ratio": :aspect_ratio,
- "Sort by fave count": :faves,
- "Sort by upvotes": :upvotes,
- "Sort by downvotes": :downvotes,
- "Sort by score": :score,
- "Sort by Wilson score": :wilson_score,
- "Sort by relevance": :_score,
- "Sort by width": :width,
- "Sort by height": :height,
- "Sort by comments": :comment_count,
- "Sort by tag count": :tag_count,
- "Sort by pixels": :pixels,
- "Sort by file size": :size,
- "Sort by duration": :duration,
- Random!: random_seed
- ]
+ sort_fields = [
+ "Sort by initial post date": :first_seen_at,
+ "Sort by image ID": :id,
+ "Sort by last modification date": :updated_at,
+ "Sort by aspect ratio": :aspect_ratio,
+ "Sort by fave count": :faves,
+ "Sort by upvotes": :upvotes,
+ "Sort by downvotes": :downvotes,
+ "Sort by score": :score,
+ "Sort by Wilson score": :wilson_score,
+ "Sort by relevance": :_score,
+ "Sort by width": :width,
+ "Sort by height": :height,
+ "Sort by comments": :comment_count,
+ "Sort by tag count": :tag_count,
+ "Sort by pixels": :pixels,
+ "Sort by file size": :size,
+ "Sort by duration": :duration,
+ Random!: random_seed
+ ]
- sort_directions = [Descending: :desc, Ascending: :asc]
- sort_hidden = ["Exclude Deleted": "", "Include Deleted/Merged": "1", "Deleted Only": "deleted", "Deleted/Merged Only": "only"]
- %>
+ sort_directions = [Descending: :desc, Ascending: :asc]
+ sort_hidden = ["Exclude Deleted": "", "Include Deleted/Merged": "1", "Deleted Only": "deleted", "Deleted/Merged Only": "only"] %>
<%= select(f, :sf, sort_fields, class: "input input--separate-left", name: "sf", autocomplete: "off", selected: @conn.params["sf"]) %>
<%= select(f, :sd, sort_directions, class: "input input--separate-left", name: "sd", autocomplete: "off", selected: @conn.params["sd"]) %>
<%= if present?(@conn.params["hidden"]) do %>
diff --git a/lib/philomena_web/templates/search/reverse/index.html.heex b/lib/philomena_web/templates/search/reverse/index.html.heex
index 6932c527..4019048a 100644
--- a/lib/philomena_web/templates/search/reverse/index.html.heex
+++ b/lib/philomena_web/templates/search/reverse/index.html.heex
@@ -76,12 +76,7 @@
|
diff --git a/lib/philomena_web/templates/setting/edit.html.heex b/lib/philomena_web/templates/setting/edit.html.heex
index 9c79b9eb..fc46ebca 100644
--- a/lib/philomena_web/templates/setting/edit.html.heex
+++ b/lib/philomena_web/templates/setting/edit.html.heex
@@ -37,9 +37,7 @@
Watchlist queries and filtering
- <%= 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<%= render(PhilomenaWeb.TagView, "_tag_list.html", tags: Tag.display_order(match.tags), conn: @conn) %>- The following two areas are for search queries to control what other images show up in your watch list. Lines are ORed together. See - <%= link("the syntax guide", to: "/pages/search_syntax") %> - for how to write queries. + The following two areas are for search queries to control what other images show up in your watch list. Lines are ORed together. See <%= link("the syntax guide", to: "/pages/search_syntax") %> for how to write queries.
<%= label(f, :watched_images_query_str, "Watch list search string (images found by this search are added to your watched images list)") %>
@@ -59,8 +57,7 @@
Other
- RSS feed link (for Newsblur, RSSOwl, Thunderbird, etc.):
-
<%= link("Click to show", to: "#", data: [click_show: "#rss-link", click_hide: "#rss-feed-button"]) %>
@@ -69,8 +66,7 @@
@@ -146,9 +142,7 @@
<%= checkbox(f, :comments_always_jump_to_last) %>
@@ -322,10 +316,8 @@
<%= if !@conn.assigns.current_user do %>
- This setting takes effect when the previous is disabled. Always jump to the latest page (enabled) or show the first page if the oldest comments are shown at the top of the page.
-
- Posting will always direct you to the latest page so that you can see your comment in context. + This setting takes effect when the previous is disabled. Always jump to the latest page (enabled) or show the first page if the oldest comments are shown at the top of the page. Posting will always direct you to the latest page so that you can see your comment in context.
- Consider
- <%= link("creating an account!", to: ~p"/registrations/new") %>
- - Ask them before reverting their changes. + This user is a staff member. Ask them before reverting their changes. <% end %> |
diff --git a/lib/philomena_web/templates/staff/index.html.heex b/lib/philomena_web/templates/staff/index.html.heex
index f3c33218..3c681b71 100644
--- a/lib/philomena_web/templates/staff/index.html.heex
+++ b/lib/philomena_web/templates/staff/index.html.heex
@@ -65,8 +65,7 @@