Skip to content

Commit

Permalink
Use @software insted of @os in software/show.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-Mozi authored and postmodern committed May 21, 2024
1 parent 9be8802 commit 9797970
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions views/db/software/show.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
<tbody>
<tr>
<td><strong>Name:</strong></td>
<td><%=h @os.name %></td>
<td><%=h @software.name %></td>
</tr>

<tr>
<td><strong>Version:</strong></td>
<td><%=h @os.version %></td>
<td><%=h @software.version %></td>
</tr>

<tr>
<td><strong>Vendor:</strong></td>
<td>
<% if @os.vendor %>
<a href="/db/software_vendors/<%=h @os.vendor.id %>">
<%=h @os.vendor %>
<% if @software.vendor %>
<a href="/db/software_vendors/<%=h @software.vendor.id %>">
<%=h @software.vendor %>
</a>
<% end %>
</td>
Expand All @@ -39,7 +39,7 @@
<tr>
<td><strong>Open Ports:</strong></td>
<td>
<% @os.open_ports.each do |open_port| %>
<% @software.open_ports.each do |open_port| %>
<p>
<a href="/db/open_ports/<%=h open_port.id %>">
<%=h open_port %>
Expand Down

0 comments on commit 9797970

Please sign in to comment.