diff --git a/lib/central/general_test_lib.ex b/lib/central/general_test_lib.ex index b087951ad..5794acc18 100644 --- a/lib/central/general_test_lib.ex +++ b/lib/central/general_test_lib.ex @@ -32,7 +32,7 @@ defmodule Central.Helpers.GeneralTestLib do "name" => params["name"] || "Test", "email" => params["email"] || "email@email#{:rand.uniform(999_999_999_999)}", "colour" => params["colour"] || "#00AA00", - "icon" => params["icon"] || "fa-regular fa-user", + "icon" => params["icon"] || "fa-solid fa-user", "permissions" => permissions, "password" => params["password"] || "password", "password_confirmation" => params["password"] || "password", diff --git a/lib/teiserver/account/libs/auth_lib.ex b/lib/teiserver/account/libs/auth_lib.ex index 15285b033..4c79dcf20 100644 --- a/lib/teiserver/account/libs/auth_lib.ex +++ b/lib/teiserver/account/libs/auth_lib.ex @@ -3,7 +3,7 @@ defmodule Teiserver.Account.AuthLib do require Logger @spec icon :: String.t() - def icon(), do: "fa-regular fa-address-card" + def icon(), do: "fa-solid fa-address-card" @spec get_all_permission_sets() :: Map.t() def get_all_permission_sets do diff --git a/lib/teiserver/account/libs/smurf_key_type_lib.ex b/lib/teiserver/account/libs/smurf_key_type_lib.ex index 01626858d..0044c9012 100644 --- a/lib/teiserver/account/libs/smurf_key_type_lib.ex +++ b/lib/teiserver/account/libs/smurf_key_type_lib.ex @@ -4,7 +4,7 @@ defmodule Teiserver.Account.SmurfKeyTypeLib do # Functions @spec icon :: String.t() - def icon, do: "fa-regular fa-???" + def icon, do: "fa-regular fa-question" @spec colours :: atom def colours, do: :default diff --git a/lib/teiserver/account/reports/mapping_report.ex b/lib/teiserver/account/reports/mapping_report.ex index 8ff8c2b0c..3e6a473b1 100644 --- a/lib/teiserver/account/reports/mapping_report.ex +++ b/lib/teiserver/account/reports/mapping_report.ex @@ -3,7 +3,7 @@ defmodule Teiserver.Game.MappingReport do alias Teiserver.{Battle} @spec icon() :: String.t() - def icon(), do: "fa-regular fa-map" + def icon(), do: "fa-solid fa-map" @spec permissions() :: String.t() def permissions(), do: "Admin" diff --git a/lib/teiserver/account/reports/week_on_week_report.ex b/lib/teiserver/account/reports/week_on_week_report.ex index 43fd8bf4f..f57b70e76 100644 --- a/lib/teiserver/account/reports/week_on_week_report.ex +++ b/lib/teiserver/account/reports/week_on_week_report.ex @@ -3,7 +3,7 @@ defmodule Teiserver.Account.WeekOnWeekReport do alias Teiserver.Helper.{TimexHelper, NumberHelper} @spec icon() :: String.t() - def icon(), do: "fa-regular fa-calendar" + def icon(), do: "fa-solid fa-calendar" @spec permissions() :: String.t() def permissions(), do: "Admin" diff --git a/lib/teiserver/helpers/fontawesome.ex b/lib/teiserver/helpers/fontawesome.ex index 56cc8ae2c..242477c26 100644 --- a/lib/teiserver/helpers/fontawesome.ex +++ b/lib/teiserver/helpers/fontawesome.ex @@ -72,11 +72,11 @@ defmodule Fontawesome do def icon_lookup(:chart), do: "fa-chart-line" - def icon_lookup(:day), do: "fa-calendar-day" - def icon_lookup(:week), do: "fa-calendar-week" - def icon_lookup(:month), do: "fa-calendar-range" - def icon_lookup(:quarter), do: "fa-calendar" - def icon_lookup(:year), do: "fa-circle-calendar" + def icon_lookup(:day), do: "" + def icon_lookup(:week), do: "" + def icon_lookup(:month), do: "" + def icon_lookup(:quarter), do: "" + def icon_lookup(:year), do: "" def brand_icons do ~w(42-group 500px accessible-icon accusoft adn adversal affiliatetheme airbnb algolia alipay amazon-pay amazon amilia android angellist angrycreative angular apper apple-pay apple app-store-ios app-store artstation asymmetrik atlassian audible autoprefixer avianex aviato aws bandcamp battle-net behance bilibili bimobject bitbucket bitcoin bity blackberry black-tie blogger-b blogger bluetooth-b bluetooth bootstrap bots btc buffer buromobelexperte buy-n-large buysellads canadian-maple-leaf cc-amazon-pay cc-amex cc-apple-pay cc-diners-club cc-discover cc-jcb cc-mastercard cc-paypal cc-stripe cc-visa centercode centos chromecast chrome cloudflare cloudscale cloudsmith cloudversify cmplid codepen codiepie confluence connectdevelop contao cotton-bureau cpanel creative-commons-by creative-commons-nc-eu creative-commons-nc-jp creative-commons-nc creative-commons-nd creative-commons-pd-alt creative-commons-pd creative-commons-remix creative-commons-sampling-plus creative-commons-sampling creative-commons-sa creative-commons-share creative-commons creative-commons-zero critical-role css3-alt css3 cuttlefish dailymotion d-and-d-beyond d-and-d dashcube deezer delicious deploydog deskpro deviantart dev dhl diaspora digg digital-ocean discord discourse dochub docker draft2digital dribbble dropbox drupal dyalog earlybirds ebay edge-legacy edge elementor ello ember empire envira erlang ethereum etsy evernote expeditedssl facebook-f facebook-messenger facebook fantasy-flight-games fedex fedora figma firefox-browser firefox firstdraft first-order-alt first-order flickr flipboard fly font-awesome fonticons-fi fonticons fort-awesome-alt fort-awesome forumbee foursquare freebsd free-code-camp fulcrum galactic-republic galactic-senate get-pocket gg-circle gg git-alt github-alt github gitkraken gitlab git gitter glide-g glide gofore golang goodreads-g goodreads google-drive google-pay google-play google-plus-g google-plus google google-wallet gratipay grav gripfire grunt guilded gulp hacker-news hackerrank hashnode hips hire-a-helper hive hooli hornbill hotjar houzz html5 hubspot ideal imdb instagram instalod intercom internet-explorer invision ioxhost itch-io itunes-note itunes java jedi-order jenkins jira joget joomla jsfiddle js kaggle keybase keycdn kickstarter-k kickstarter korvue laravel lastfm leanpub less line linkedin-in linkedin linode linux lyft magento mailchimp mandalorian markdown mastodon maxcdn mdb medapps medium medrt meetup megaport mendeley meta microblog microsoft mixcloud mixer mix mizuni modx monero napster neos nfc-directional nfc-symbol nimblr node-js node npm ns8 nutritionix octopus-deploy odnoklassniki odysee old-republic opencart openid opera optin-monster orcid osi padlet page4 pagelines palfed patreon paypal perbyte periscope phabricator phoenix-framework phoenix-squadron php pied-piper-alt pied-piper-hat pied-piper-pp pied-piper pinterest-p pinterest pix playstation product-hunt pushed python qq quinscape quora raspberry-pi ravelry reacteurope react readme rebel reddit-alien reddit redhat red-river renren replyd researchgate resolving rev rocketchat rockrms r-project rust safari salesforce sass schlix screenpal scribd searchengin sellcast sellsy servicestack shirtsinbulk shopify shopware simplybuilt sistrix sith sitrox sketch skyatlas skype slack slideshare snapchat soundcloud sourcetree space-awesome speakap speaker-deck spotify square-behance square-dribbble square-facebook square-font-awesome-stroke square-font-awesome square-github square-gitlab square-git square-google-plus square-hacker-news square-instagram square-js square-lastfm square-odnoklassniki square-pied-piper square-pinterest square-reddit square-snapchat squarespace square-steam square-tumblr square-twitter square-viadeo square-vimeo square-whatsapp square-xing square-youtube stack-exchange stack-overflow stackpath staylinked steam steam-symbol sticker-mule strava stripe-s stripe stubber studiovinari stumbleupon-circle stumbleupon superpowers supple suse swift symfony teamspeak telegram tencent-weibo themeco themeisle the-red-yeti think-peaks tiktok trade-federation trello tumblr twitch twitter typo3 uber ubuntu uikit umbraco uncharted uniregistry unity unsplash untappd ups usb usps ussunnah vaadin viacoin viadeo viber vimeo vimeo-v vine vk vnv vuejs watchman-monitoring waze weebly weibo weixin whatsapp whmcs wikipedia-w windows wirsindhandwerk wix wizards-of-the-coast wodu wolf-pack-battalion wordpress-simple wordpress wpbeginner wpexplorer wpforms wpressr xbox xing yahoo yammer yandex-international yandex yarn y-combinator yelp yoast youtube zhihu) diff --git a/lib/teiserver/helpers/styling_helpers.ex b/lib/teiserver/helpers/styling_helpers.ex index 798c121ca..b501ed93a 100644 --- a/lib/teiserver/helpers/styling_helpers.ex +++ b/lib/teiserver/helpers/styling_helpers.ex @@ -52,6 +52,8 @@ defmodule Teiserver.Helper.StylingHelper do def get_bsname(colour), do: elem(colours(colour), 2) @spec icon(atom) :: String.t() + def icon(nil), do: nil + def icon(nil, _), do: nil def icon(atom), do: icon(atom, "solid") @spec icon(atom, String.t()) :: String.t() @@ -82,13 +84,13 @@ defmodule Teiserver.Helper.StylingHelper do def icon(:summary, fa_type), do: "fa-#{fa_type} fa-clipboard-list" - def icon(:chart, fa_type), do: "fa-#{fa_type} fa-chart-line" + def icon(:chart, _fa_type), do: "fa-solid fa-chart-line" - def icon(:day, fa_type), do: "fa-#{fa_type} fa-calendar-day" - def icon(:week, fa_type), do: "fa-#{fa_type} fa-calendar-week" - def icon(:month, fa_type), do: "fa-#{fa_type} fa-calendar-range" - def icon(:quarter, fa_type), do: "fa-#{fa_type} fa-calendar" - def icon(:year, fa_type), do: "fa-#{fa_type} fa-circle-calendar" + def icon(:day, _fa_type), do: "" + def icon(:week, _fa_type), do: "" + def icon(:month, _fa_type), do: "" + def icon(:quarter, _fa_type), do: "" + def icon(:year, _fa_type), do: "" # defp split_colour(c) do # {r, _} = c |> String.slice(1, 2) |> Integer.parse(16) @@ -224,7 +226,7 @@ defmodule Teiserver.Helper.StylingHelper do @spec random_styling() :: Map.t() def random_styling() do %{ - "icon" => "fa-regular fa-" <> random_icon(), + "icon" => "fa-solid fa-" <> random_icon(), "colour" => random_colour() } end diff --git a/lib/teiserver/logging/lib/aggregate_view_log_lib.ex b/lib/teiserver/logging/lib/aggregate_view_log_lib.ex index a8968bda2..db445f0b2 100644 --- a/lib/teiserver/logging/lib/aggregate_view_log_lib.ex +++ b/lib/teiserver/logging/lib/aggregate_view_log_lib.ex @@ -9,7 +9,7 @@ defmodule Teiserver.Logging.AggregateViewLogLib do def colours(), do: :info2 @spec icon() :: String.t() - def icon(), do: "fa-regular fa-chart-area" + def icon(), do: "fa-solid fa-chart-area" def get_logs() do from(logs in AggregateViewLog) diff --git a/lib/teiserver/logging/lib/audit_log_lib.ex b/lib/teiserver/logging/lib/audit_log_lib.ex index 25284e465..38cb849a6 100644 --- a/lib/teiserver/logging/lib/audit_log_lib.ex +++ b/lib/teiserver/logging/lib/audit_log_lib.ex @@ -8,7 +8,7 @@ defmodule Teiserver.Logging.AuditLogLib do def colours(), do: :danger2 @spec icon() :: String.t() - def icon(), do: "fa-regular fa-archive" + def icon(), do: "fa-solid fa-archive" @spec add_audit_types([String.t()]) :: :ok def add_audit_types(types) do diff --git a/lib/teiserver/logging/lib/logging_lib.ex b/lib/teiserver/logging/lib/logging_lib.ex index 34b3f8b6a..95779197a 100644 --- a/lib/teiserver/logging/lib/logging_lib.ex +++ b/lib/teiserver/logging/lib/logging_lib.ex @@ -6,7 +6,7 @@ defmodule Teiserver.Logging.LoggingLib do def colours(), do: :default @spec icon() :: String.t() - def icon(), do: "fa-regular fa-bars" + def icon(), do: "fa-solid fa-bars" @spec do_not_log(Plug.Conn.t()) :: Plug.Conn.t() def do_not_log(conn) do diff --git a/lib/teiserver/logging/lib/page_view_log_lib.ex b/lib/teiserver/logging/lib/page_view_log_lib.ex index baffa0fd6..43335f800 100644 --- a/lib/teiserver/logging/lib/page_view_log_lib.ex +++ b/lib/teiserver/logging/lib/page_view_log_lib.ex @@ -6,7 +6,7 @@ defmodule Teiserver.Logging.PageViewLogLib do def colours(), do: :info @spec icon() :: String.t() - def icon(), do: "fa-regular fa-chart-line" + def icon(), do: "fa-solid fa-chart-line" alias Teiserver.Logging.PageViewLog diff --git a/lib/teiserver/logging/lib/server_day_log_lib.ex b/lib/teiserver/logging/lib/server_day_log_lib.ex index e9b05b6cd..f4f053719 100644 --- a/lib/teiserver/logging/lib/server_day_log_lib.ex +++ b/lib/teiserver/logging/lib/server_day_log_lib.ex @@ -8,7 +8,7 @@ defmodule Teiserver.Logging.ServerDayLogLib do def colours(), do: :warning @spec icon() :: String.t() - def icon(), do: "fa-regular fa-monitor-heart-rate" + def icon(), do: "fa-solid fa-heart-pulse" @spec get_server_day_logs :: Ecto.Query.t() def get_server_day_logs() do diff --git a/lib/teiserver_web/live/account/party/index.html.heex b/lib/teiserver_web/live/account/party/index.html.heex index 59db05934..cf73cae50 100644 --- a/lib/teiserver_web/live/account/party/index.html.heex +++ b/lib/teiserver_web/live/account/party/index.html.heex @@ -13,12 +13,12 @@ moderator = allow?(@current_user, "Moderator") %>
<%= if @client do %> -   +   Create party <% else %> -   +   Connect with client to enable functionality <% end %> @@ -103,7 +103,7 @@ moderator = allow?(@current_user, "Moderator") %> phx-value-party_id={party.id} class="btn btn-sm btn-success btn-block" > -   +   Accept invite @@ -113,7 +113,7 @@ moderator = allow?(@current_user, "Moderator") %> phx-value-party_id={party.id} class="btn btn-sm btn-warning btn-block" > -   +   Decline invite @@ -127,7 +127,7 @@ moderator = allow?(@current_user, "Moderator") %> href={Routes.ts_game_party_show_path(@socket, :show, party.id)} class="btn btn-sm btn-secondary" > -   +   Show as admin diff --git a/lib/teiserver_web/live/queues/index.html.heex b/lib/teiserver_web/live/queues/index.html.heex index 7906cdb78..78bb0d036 100644 --- a/lib/teiserver_web/live/queues/index.html.heex +++ b/lib/teiserver_web/live/queues/index.html.heex @@ -30,7 +30,7 @@ accepted_app = @client == nil or @client.app_status == :accepted href={Routes.ts_game_queue_path(@socket, :index)} class={"btn btn-outline-#{bsname}"} > -   +   Admin view <% end %> diff --git a/lib/teiserver_web/templates/admin/accolade/section_menu.html.heex b/lib/teiserver_web/templates/admin/accolade/section_menu.html.heex index d89466cd0..a997d6cd0 100644 --- a/lib/teiserver_web/templates/admin/accolade/section_menu.html.heex +++ b/lib/teiserver_web/templates/admin/accolade/section_menu.html.heex @@ -4,7 +4,7 @@ name: "index", label: "List", active: @active, - icon: "fa-regular fa-bars", + icon: "fa-solid fa-bars", bsname: bsname, url: Routes.ts_admin_accolade_path(@conn, :index) ) %> diff --git a/lib/teiserver_web/templates/admin/badge_type/section_menu.html.heex b/lib/teiserver_web/templates/admin/badge_type/section_menu.html.heex index 0a3d0e8ac..25f27e17a 100644 --- a/lib/teiserver_web/templates/admin/badge_type/section_menu.html.heex +++ b/lib/teiserver_web/templates/admin/badge_type/section_menu.html.heex @@ -4,7 +4,7 @@ name: "index", label: "List", active: @active, - icon: "fa-regular fa-bars", + icon: "fa-solid fa-bars", bsname: bsname, url: Routes.ts_admin_badge_type_path(@conn, :index) ) %> diff --git a/lib/teiserver_web/templates/admin/discord_channel/section_menu.html.heex b/lib/teiserver_web/templates/admin/discord_channel/section_menu.html.heex index b6f543fb1..8b188aa0a 100644 --- a/lib/teiserver_web/templates/admin/discord_channel/section_menu.html.heex +++ b/lib/teiserver_web/templates/admin/discord_channel/section_menu.html.heex @@ -4,7 +4,7 @@ name: "index", label: "List", active: @active, - icon: "fa-regular fa-bars", + icon: "fa-solid fa-bars", bsname: bsname, url: ~p"/admin/discord_channels" ) %> diff --git a/lib/teiserver_web/templates/admin/lobby_policy/section_menu.html.heex b/lib/teiserver_web/templates/admin/lobby_policy/section_menu.html.heex index 6299c1194..7277b15de 100644 --- a/lib/teiserver_web/templates/admin/lobby_policy/section_menu.html.heex +++ b/lib/teiserver_web/templates/admin/lobby_policy/section_menu.html.heex @@ -4,7 +4,7 @@ name: "index", label: "List", active: @active, - icon: "fa-regular fa-bars", + icon: "fa-solid fa-bars", bsname: bsname, url: Routes.admin_lobby_policy_path(@conn, :index) ) %> diff --git a/lib/teiserver_web/templates/admin/match/section_menu.html.heex b/lib/teiserver_web/templates/admin/match/section_menu.html.heex index c2299acbc..e4104ae99 100644 --- a/lib/teiserver_web/templates/admin/match/section_menu.html.heex +++ b/lib/teiserver_web/templates/admin/match/section_menu.html.heex @@ -5,7 +5,7 @@ name: "list", label: "List", active: @active, - icon: "fa-regular fa-bars", + icon: "fa-solid fa-bars", bsname: bsname, url: Routes.ts_admin_match_path(@conn, :index) ) %> diff --git a/lib/teiserver_web/templates/admin/text_callback/section_menu.html.heex b/lib/teiserver_web/templates/admin/text_callback/section_menu.html.heex index 6d703c318..fbe66ca2a 100644 --- a/lib/teiserver_web/templates/admin/text_callback/section_menu.html.heex +++ b/lib/teiserver_web/templates/admin/text_callback/section_menu.html.heex @@ -4,7 +4,7 @@ name: "index", label: "List", active: @active, - icon: "fa-regular fa-bars", + icon: "fa-solid fa-bars", bsname: bsname, url: ~p"/admin/text_callbacks" ) %> @@ -14,7 +14,7 @@ name: "new", label: "New", active: @active, - icon: "fa-regular fa-plus", + icon: "fa-solid fa-plus", bsname: bsname, url: ~p"/admin/text_callbacks/new" ) %> diff --git a/lib/teiserver_web/templates/component/section_menu_button.html.heex b/lib/teiserver_web/templates/component/section_menu_button.html.heex index f05cac127..360f701a5 100644 --- a/lib/teiserver_web/templates/component/section_menu_button.html.heex +++ b/lib/teiserver_web/templates/component/section_menu_button.html.heex @@ -2,7 +2,7 @@ icon = if is_atom(@icon), do: Teiserver.Helper.StylingHelper.icon(@icon), else: @icon icon = - if is_active do + if is_active && not is_nil(icon) do icon |> String.replace("far ", "fa-solid ") |> String.replace("fa-regular ", "fa-solid ") @@ -16,7 +16,7 @@ icon = active_class = if is_active, do: "active" %> - <%= if @icon != "" do %> + <%= if not is_nil(@icon) && @icon != "" do %> <%= central_component("icon", icon: icon) %>   <% end %> <%= @label %> diff --git a/lib/teiserver_web/templates/game/queue/section_menu.html.heex b/lib/teiserver_web/templates/game/queue/section_menu.html.heex index 60964f065..3a819ceee 100644 --- a/lib/teiserver_web/templates/game/queue/section_menu.html.heex +++ b/lib/teiserver_web/templates/game/queue/section_menu.html.heex @@ -4,7 +4,7 @@ name: "index", label: "List", active: @active, - icon: "fa-regular fa-bars", + icon: "fa-solid fa-bars", bsname: bsname, url: Routes.ts_game_queue_path(@conn, :index) ) %> diff --git a/lib/teiserver_web/templates/logging/aggregate_view_log/section_menu.html.heex b/lib/teiserver_web/templates/logging/aggregate_view_log/section_menu.html.heex index d392a0ab7..d5e0557c2 100644 --- a/lib/teiserver_web/templates/logging/aggregate_view_log/section_menu.html.heex +++ b/lib/teiserver_web/templates/logging/aggregate_view_log/section_menu.html.heex @@ -16,7 +16,7 @@ class={"btn btn-outline-#{bsname}"} id="section-menu-index" > -   +   List diff --git a/lib/teiserver_web/templates/logging/audit_log/section_menu.html.heex b/lib/teiserver_web/templates/logging/audit_log/section_menu.html.heex index 39531e4d2..7bb27ad62 100644 --- a/lib/teiserver_web/templates/logging/audit_log/section_menu.html.heex +++ b/lib/teiserver_web/templates/logging/audit_log/section_menu.html.heex @@ -16,7 +16,7 @@ class={"btn btn-outline-#{bsname}"} id="section-menu-index" > -   +   List diff --git a/lib/teiserver_web/templates/logging/general/sub_menu.html.heex b/lib/teiserver_web/templates/logging/general/sub_menu.html.heex index 45d0ec81a..37d20c7bb 100644 --- a/lib/teiserver_web/templates/logging/general/sub_menu.html.heex +++ b/lib/teiserver_web/templates/logging/general/sub_menu.html.heex @@ -76,7 +76,7 @@ label: "Live dashboard", active: @active, url: ~p"/logging/live/dashboard", - icon: "fa-regular fa-tachometer-alt" + icon: "fa-solid fa-tachograph-digital" ) %> <% end %>
diff --git a/lib/teiserver_web/templates/logging/match_log/section_menu.html.heex b/lib/teiserver_web/templates/logging/match_log/section_menu.html.heex index 9d8480849..b3ebbd445 100644 --- a/lib/teiserver_web/templates/logging/match_log/section_menu.html.heex +++ b/lib/teiserver_web/templates/logging/match_log/section_menu.html.heex @@ -4,7 +4,7 @@ name: "day_metrics", label: "Daily metrics", active: @active, - icon: "fa-regular fa-bars", + icon: "fa-solid fa-bars", bsname: bsname, url: Routes.logging_match_log_path(@conn, :day_metrics_list) ) %> @@ -22,7 +22,7 @@ name: "graph", label: "Graph", active: @active, - icon: "fa-regular fa-chart-line-up", + icon: "fa-solid fa-chart-line-up", bsname: bsname, url: Routes.logging_match_log_path(@conn, :day_metrics_graph) ) %> @@ -39,7 +39,7 @@ name: "month_metrics", label: "Monthly metrics", active: @active, - icon: "fa-regular fa-bars", + icon: "fa-solid fa-bars", bsname: bsname, url: Routes.logging_match_log_path(@conn, :month_metrics_list) ) %> @@ -57,7 +57,7 @@ name: "month_graph", label: "Graph", active: @active, - icon: "fa-regular fa-chart-line-up", + icon: "fa-solid fa-chart-line-up", bsname: bsname, url: Routes.logging_match_log_path(@conn, :month_metrics_graph) ) %> diff --git a/lib/teiserver_web/templates/logging/page_view_log/section_menu.html.heex b/lib/teiserver_web/templates/logging/page_view_log/section_menu.html.heex index c063fd0e2..3ec2e19b8 100644 --- a/lib/teiserver_web/templates/logging/page_view_log/section_menu.html.heex +++ b/lib/teiserver_web/templates/logging/page_view_log/section_menu.html.heex @@ -16,7 +16,7 @@ class={"btn btn-outline-#{bsname}"} id="section-menu-index" > -   +   List diff --git a/lib/teiserver_web/templates/logging/server_log/section_menu.html.heex b/lib/teiserver_web/templates/logging/server_log/section_menu.html.heex index 4c29ba227..e5395d8cc 100644 --- a/lib/teiserver_web/templates/logging/server_log/section_menu.html.heex +++ b/lib/teiserver_web/templates/logging/server_log/section_menu.html.heex @@ -4,7 +4,7 @@ name: "day_list", label: "Daily", active: @active, - icon: StylingHelper.icon(:day), + icon: nil, bsname: bsname, url: ~p"/logging/server/day" ) %> @@ -13,7 +13,7 @@ name: "week_list", label: "Weekly", active: @active, - icon: StylingHelper.icon(:week), + icon: nil, bsname: bsname, url: ~p"/logging/server/week" ) %> @@ -22,7 +22,7 @@ name: "month_list", label: "Monthly", active: @active, - icon: StylingHelper.icon(:month), + icon: nil, bsname: bsname, url: ~p"/logging/server/month" ) %> @@ -31,7 +31,7 @@ name: "quarter_list", label: "Quarterly", active: @active, - icon: StylingHelper.icon(:quarter), + icon: nil, bsname: bsname, url: ~p"/logging/server/quarter" ) %> @@ -40,7 +40,7 @@ name: "year_list", label: "Yearly", active: @active, - icon: StylingHelper.icon(:year), + icon: nil, bsname: bsname, url: ~p"/logging/server/year" ) %>      @@ -48,7 +48,7 @@ name: "this_day", label: "Today", active: @active, - icon: "fa-regular fa-waveform", + icon: nil, bsname: bsname, url: ~p"/logging/server/show/day/today" ) %> @@ -57,7 +57,7 @@ name: "this_week", label: "This week", active: @active, - icon: "fa-regular fa-waveform", + icon: nil, bsname: bsname, url: ~p"/logging/server/show/week/today" ) %> @@ -66,7 +66,7 @@ name: "this_month", label: "This month", active: @active, - icon: "fa-regular fa-waveform", + icon: nil, bsname: bsname, url: ~p"/logging/server/show/month/today" ) %> @@ -75,7 +75,7 @@ name: "this_quarter", label: "This quarter", active: @active, - icon: "fa-regular fa-waveform", + icon: nil, bsname: bsname, url: ~p"/logging/server/show/quarter/today" ) %>      @@ -92,7 +92,7 @@ name: "load", label: "Load", active: @active, - icon: "fa-regular fa-server", + icon: "fa-solid fa-server", bsname: bsname, url: ~p"/logging/server/load" ) %> @@ -101,7 +101,7 @@ name: "user_cost", label: "User cost", active: @active, - icon: "fa-regular fa-euro", + icon: "fa-solid fa-euro", bsname: bsname, url: ~p"/logging/server/user_cost" ) %> diff --git a/lib/teiserver_web/templates/report/rating/section_menu.html.heex b/lib/teiserver_web/templates/report/rating/section_menu.html.heex index 20c34df50..3c835041d 100644 --- a/lib/teiserver_web/templates/report/rating/section_menu.html.heex +++ b/lib/teiserver_web/templates/report/rating/section_menu.html.heex @@ -13,7 +13,7 @@ name: "distribution_graph", label: "Distribution graph", active: @active, - icon: "fa-regular fa-chart-area", + icon: "fa-solid fa-chart-area", bsname: bsname, url: Routes.ts_reports_rating_path(@conn, :distribution_graph) ) %> diff --git a/lib/teiserver_web/views/logging/logging_view.ex b/lib/teiserver_web/views/logging/logging_view.ex index 6090c1ec6..7b5248334 100644 --- a/lib/teiserver_web/views/logging/logging_view.ex +++ b/lib/teiserver_web/views/logging/logging_view.ex @@ -2,5 +2,5 @@ defmodule TeiserverWeb.Logging.LoggingView do use TeiserverWeb, :view def view_colour(), do: Teiserver.Helper.StylingHelper.colours(:info) - def icon(), do: "fa-regular fa-chart-line" + def icon(), do: "fa-solid fa-chart-line" end