Skip to content

Commit 1949fd2

Browse files
committed
Update _workflow.html.erb
1 parent 8388b7b commit 1949fd2

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

app/views/names/_workflow.html.erb

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,15 @@
5353
<h5 class="mt-2 text-info">Next step:</h5>
5454
<ul>
5555
<li>
56-
This name has not been claimed yet. You can
57-
<%= link_to(
58-
'claim it now', claim_name_url(@name),
59-
method: :post,
60-
data: { confirm: 'Are you sure? This action cannot be undone' }
61-
) %>.
56+
This name has not been claimed yet.
57+
<% if user_signed_in? %>
58+
You can
59+
<%= link_to(
60+
'claim it now', claim_name_url(@name),
61+
method: :post,
62+
data: { confirm: 'Are you sure? This action cannot be undone' }
63+
) %>.
64+
<% end %>
6265
</li>
6366
</ul>
6467
<% end %>

0 commit comments

Comments
 (0)