Skip to content

Commit

Permalink
Pass icon to languages and sites tables
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Dec 7, 2023
1 parent e511eb1 commit f46a8d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/views/alchemy/admin/languages/_language.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<tr class="<%= cycle('even', 'odd') %>">
<td class="icon">
<%= render_icon("translate-2", size: "xl", style: nil) %>
</td>
<td>
<%= language.name %>
</td>
Expand Down
1 change: 1 addition & 0 deletions app/views/alchemy/admin/languages/_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<table class="list" id="languages_list">
<thead>
<tr>
<th class="icon"></th>
<th>
<%= sort_link @query, :name %>
</th>
Expand Down
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/sites/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div id="archive_all" class="resources-table-wrapper">
<% 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 %>
Expand Down

0 comments on commit f46a8d6

Please sign in to comment.