Skip to content

Commit

Permalink
fix: use correct method to show card name in ConnectionsController#in…
Browse files Browse the repository at this point in the history
…dex (nanego#193)
  • Loading branch information
nicolas-brousse authored Jun 13, 2024
1 parent fb9cf4a commit 11ba5b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/views/connections/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@
<% end %>

<% table.with_column(Card.model_name.human) do |connection| %>
<%= connection.card&.name %>
<% if (card = connection.card) %>
<%= card.server %> / <%= card.card_type %>
<% if card.name.present? %>
/ <b><%= card.name %></b>
<% end %>
<% end %>
<% end %>

<% table.with_column(PortType.model_name.human) do |connection| %>
Expand Down

0 comments on commit 11ba5b5

Please sign in to comment.