Skip to content

Commit

Permalink
ld
Browse files Browse the repository at this point in the history
  • Loading branch information
yigefaxian committed Sep 8, 2024
1 parent 3fe0e8a commit 4241446
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/views/factory/admin/home/_index/_index_column.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
<%= link_to({ controller: 'provides' }, class: 'cell button is-fullwidth') do %>
<span><%= t('.provides.index.title') %></span>
<% end %>
<%= link_to({ controller: 'brands' }, class: 'cell button is-fullwidth') do %>
<span><%= t('.brands.index.title') %></span>
<% end %>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<td>
<div class="is-several">
<%= image_tag model.logo.url, class: 'image is-32x32' if model.logo.attached? %>
<%= image_tag model.logo.url, class: 'image is-24x24' if model.logo.attached? %>
<%= link_to({ controller: 'productions', product_id: model.id }, text: true) do %>
<span><%= model.name %></span>
<% end %>
</div>
<% if model.brand %>
<p><span class="tag is-danger is-light"><%= model.brand.name %></span></p>
<% end %>
</td>
<td><%= model.base_price.to_money.format.html_safe %></td>
<td>
Expand Down

0 comments on commit 4241446

Please sign in to comment.