mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 04:02:19 -05:00
19 lines
695 B
ERB
19 lines
695 B
ERB
<% if policy(@model).merge? %>
|
|
<%= card(problem_severity(problem), t("problems.model.%{cat}.title" % {cat: problem.category})) do %>
|
|
<%= t(("problems.model.%{cat}.description" % {cat: problem.category}), note: problem.note) %>
|
|
|
|
<% if problem.category == "nesting" && @model.contains_other_models? %>
|
|
<ul>
|
|
<% @model.contained_models.each do |target| %>
|
|
<li><%= link_to target.name, model_path(target) %></li>
|
|
<% end %>
|
|
</ul>
|
|
<p>
|
|
<%= t("problems.model.nesting.warning") %>
|
|
</p>
|
|
<%= link_to t(".merge_all"), merge_model_path(@model, all: true), class: "btn btn-danger", method: :post %>
|
|
<% end %>
|
|
|
|
<% end %>
|
|
<% end %>
|