mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 19:52:18 -05:00
30 lines
1019 B
ERB
30 lines
1019 B
ERB
<h1><%= Problem.model_name.human(count: 100) %></h1>
|
|
|
|
<%= render "filters" %>
|
|
|
|
<%= paginate @problems %>
|
|
|
|
<% if @problems.empty? %>
|
|
<div class="alert alert-info">
|
|
<%= t(".no_problems") %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<table class="table table-striped">
|
|
<% @problems.each do |problem| %>
|
|
<% next unless problem.problematic %>
|
|
<tr class="table-<%= problem_severity(problem) %> <%= problem.ignored && "opacity-50" %>">
|
|
<%= render partial: "problems/#{problem.problematic_type.underscore}/#{problem.category}", locals: {problem: problem} %>
|
|
<td>
|
|
<% if problem.ignored %>
|
|
<%= link_to icon("eye-fill", t(".unignore")), problem_path(problem, problem: {ignored: false}), method: :patch, class: "btn btn-outline-secondary" %>
|
|
<% else %>
|
|
<%= link_to icon("eye-slash", t(".ignore")), problem_path(problem, problem: {ignored: true}), method: :patch, class: "btn btn-outline-secondary" %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
<%= paginate @problems %>
|