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
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
defp map_fetch(nil, _field_name), do: nil

View file

@ -1,6 +1,6 @@
- form = assigns[:f]
- action_text = assigns[:action_text] || 'Edit'
- action_icon = assigns[:action_icon] || 'edit'
- action_text = assigns[:action_text] || "Edit"
- action_icon = assigns[:action_icon] || "edit"
- field_name = assigns[:name] || :body
- field_placeholder = assigns[:placeholder] || "Your message"
- is_required = assigns[:required]
@ -11,7 +11,7 @@
= action_text
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>
| Preview

View file

@ -23,7 +23,7 @@
.field
=> label f, :categories, "Art Categories:"
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
.field
=> label f, :sheet_image_id, "Image ID of your commissions sheet (optional but recommended):"