From f46a8d640d42fa5fc83dbf73a66d2e93fd7cd41a Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Thu, 7 Dec 2023 09:34:48 +0100 Subject: [PATCH] Pass icon to languages and sites tables --- app/views/alchemy/admin/languages/_language.html.erb | 3 +++ app/views/alchemy/admin/languages/_table.html.erb | 1 + app/views/alchemy/admin/sites/index.html.erb | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/alchemy/admin/languages/_language.html.erb b/app/views/alchemy/admin/languages/_language.html.erb index f740aa52c6..7f7ad31c05 100644 --- a/app/views/alchemy/admin/languages/_language.html.erb +++ b/app/views/alchemy/admin/languages/_language.html.erb @@ -1,4 +1,7 @@ + + <%= render_icon("translate-2", size: "xl", style: nil) %> + <%= language.name %> diff --git a/app/views/alchemy/admin/languages/_table.html.erb b/app/views/alchemy/admin/languages/_table.html.erb index df2984bff2..63ff2d869b 100644 --- a/app/views/alchemy/admin/languages/_table.html.erb +++ b/app/views/alchemy/admin/languages/_table.html.erb @@ -2,6 +2,7 @@ + diff --git a/app/views/alchemy/admin/sites/index.html.erb b/app/views/alchemy/admin/sites/index.html.erb index bb4c337d2c..27d02244ca 100644 --- a/app/views/alchemy/admin/sites/index.html.erb +++ b/app/views/alchemy/admin/sites/index.html.erb @@ -21,7 +21,7 @@
<% if @sites.any? %> <%= render 'alchemy/admin/resources/table_header' %> - <%= render 'table' %> + <%= render 'table', icon: "global" %> <% elsif search_filter_params[:q].present? %> <%= render_message { Alchemy.t('Nothing found') } %> <% else %>
<%= sort_link @query, :name %>