Skip to content

Commit

Permalink
Adds view to decommissioned list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Scherz committed Jul 9, 2024
1 parent 0ffc972 commit cee36f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/software_records/list_decommissioned.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ List</h1>
<% if current_user.role.to_s == "viewer" %>
<td><%= link_to 'View', software_record , { :class => "btn btn-success action-btn" }%></td>
<% elsif current_user.role.to_s == "owner" %>
<td><%= link_to 'View', software_record , { :class => "btn btn-success action-btn" }%></td>
<td><%= link_to 'Edit', edit_software_record_path(software_record), class: "btn btn-primary action-btn", style:
"white-space: nowrap;" %></td>
<% else %>
<td><%= link_to 'View', software_record , { :class => "btn btn-success action-btn" }%></td>
<td><%= link_to 'Edit', edit_software_record_path(software_record), class: "btn btn-primary action-btn", style:
"white-space: nowrap;" %></td>

Expand Down

0 comments on commit cee36f9

Please sign in to comment.