We were passing a hash of options instead of converting them to keyword parameters, which resulted in warnings on Ruby 2.7: ``` app/components/admin/table_actions_component.html.erb:5: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call app/components/admin/table_actions_component.html.erb:9: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call app/components/admin/widget/cards/row_component.html.erb:20: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call app/components/admin/widget/cards/table_component.html.erb:14: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call ```
23 lines
575 B
Plaintext
23 lines
575 B
Plaintext
<tr id="<%= dom_id(card) %>" class="homepage-card">
|
|
<td>
|
|
<%= card.label %><br>
|
|
<%= card.title %>
|
|
</td>
|
|
<td><%= card.description %></td>
|
|
<td>
|
|
<%= card.link_text %><br>
|
|
<%= card.link_url %>
|
|
</td>
|
|
|
|
<!-- remove conditional once specs have image validations -->
|
|
<td>
|
|
<% if card.image.present? %>
|
|
<%= link_to t("admin.shared.show_image"), card.image.variant(:large),
|
|
title: card.image.title, target: "_blank" %>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<%= render Admin::TableActionsComponent.new(card, **options) %>
|
|
</td>
|
|
</tr>
|