Skip to content

Commit 99f4742

Browse files
committed
Update _check.html.erb
1 parent bb08e90 commit 99f4742

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/views/checks/_check.html.erb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
</div>
4343
<% end %>
4444

45+
<% editable_check = true %>
4546
<% if warn.check %>
47+
<% editable_check = false %>
4648
<div class="text-muted">
4749
<% if warn.check.pass? %>
4850
Bypassed by <%= link_to_user(warn.check.user) %>
@@ -53,6 +55,8 @@
5355
<%= fa_icon('exclamation-circle') %> reinstate as failed check
5456
<% end %>
5557
<% else %>
58+
<% editable_check = true if
59+
warn.checklist.present? && warn.checklist == :register %>
5660
<% if warn.check.user.present? %>
5761
Identified by <%= link_to_user(warn.check.user) %>
5862
<% else %>
@@ -61,7 +65,8 @@
6165
<%= time_ago_in_words(warn.check.updated_at) %> ago
6266
<% end %>
6367
</div>
64-
<% elsif current_curator? %>
68+
<% end %>
69+
<% if editable_check && current_curator? %>
6570
<div class="text-muted">
6671
<b>Curator action</b>:
6772
<%= link_to(

0 commit comments

Comments
 (0)