Skip to content

Commit

Permalink
prototype problem card for file view
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Jan 30, 2024
1 parent 5400b7b commit 8998433
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/model_files/_problem.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<%= t("problems.model_file_#{problem.category}.title") %>
<%= t("problems.model_file_#{problem.category}.description") %>
<%= problem.note %>
6 changes: 6 additions & 0 deletions app/views/model_files/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
<%= render 'form' %>
<% end %>

<% if @file.problems.any? %>
<%= card(:secondary, 'Problems') do %>
<% render partial: "problem", collection: @file.problems %>
<% end %>
<% end %>

<% unless @duplicates.empty? %>
<%= card :warning, t('.duplicate_card.title') do %>
<p>
Expand Down

0 comments on commit 8998433

Please sign in to comment.