Extract partial to show "login to comment" message
This commit is contained in:
@@ -34,11 +34,7 @@
|
||||
<% end %>
|
||||
<% else %>
|
||||
<br>
|
||||
<div data-alert class="callout primary">
|
||||
<%= t("users.login_to_comment",
|
||||
signin: link_to(t("users.signin"), new_user_session_path),
|
||||
signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||
</div>
|
||||
<%= render "shared/login_to_comment" %>
|
||||
<% end %>
|
||||
|
||||
<% comment_tree.root_comments.each do |comment| %>
|
||||
|
||||
Reference in New Issue
Block a user