Fix compile warnings

This commit is contained in:
Liam 2024-06-12 21:47:15 -04:00
parent 3a384f3085
commit b11ae51446
3 changed files with 5 additions and 5 deletions

View file

@ -212,7 +212,7 @@ defmodule PhilomenaWeb.ProfileController do
end end
defp individual_stat(mapping, stat_name) do defp individual_stat(mapping, stat_name) do
Enum.map(89..0, &(map_fetch(mapping[&1], stat_name) || 0)) Enum.map(89..0//-1, &(map_fetch(mapping[&1], stat_name) || 0))
end end
defp map_fetch(nil, _field_name), do: nil defp map_fetch(nil, _field_name), do: nil

View file

@ -1,6 +1,6 @@
- form = assigns[:f] - form = assigns[:f]
- action_text = assigns[:action_text] || 'Edit' - action_text = assigns[:action_text] || "Edit"
- action_icon = assigns[:action_icon] || 'edit' - action_icon = assigns[:action_icon] || "edit"
- field_name = assigns[:name] || :body - field_name = assigns[:name] || :body
- field_placeholder = assigns[:placeholder] || "Your message" - field_placeholder = assigns[:placeholder] || "Your message"
- is_required = assigns[:required] - is_required = assigns[:required]
@ -11,7 +11,7 @@
= action_text = action_text
a href="#" data-click-tab="preview" a href="#" data-click-tab="preview"
i.fa.fa-cog.fa-fw.fa-spin.js-preview-loading.hidden> title=raw('Loading preview…') i.fa.fa-cog.fa-fw.fa-spin.js-preview-loading.hidden> title=raw("Loading preview…")
i.fa.fa-eye.fa-fw.js-preview-idle> i.fa.fa-eye.fa-fw.js-preview-idle>
| Preview | Preview

View file

@ -23,7 +23,7 @@
.field .field
=> label f, :categories, "Art Categories:" => label f, :categories, "Art Categories:"
br br
= collection_checkboxes f, :categories, categories(), selected: f.data.categories, input_opts: [ class: 'checkbox spacing-right' ], wrapper: &Phoenix.HTML.Tag.content_tag(:span, &1, class: "commission__category") = collection_checkboxes f, :categories, categories(), selected: f.data.categories, input_opts: [ class: "checkbox spacing-right" ], wrapper: &Phoenix.HTML.Tag.content_tag(:span, &1, class: "commission__category")
= error_tag f, :categories = error_tag f, :categories
.field .field
=> label f, :sheet_image_id, "Image ID of your commissions sheet (optional but recommended):" => label f, :sheet_image_id, "Image ID of your commissions sheet (optional but recommended):"