Show login to comment message in annotations
This way it's consistent with what we get when there are no comments. It only appears once on the page so it isn't overwhelming.
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
initialize: function() {
|
||||
App.Votes.hoverize("div.votes");
|
||||
App.Votes.hoverize("div.supports");
|
||||
App.Votes.hoverize("div.comment-footer");
|
||||
}
|
||||
};
|
||||
}).call(this);
|
||||
|
||||
@@ -630,21 +630,6 @@
|
||||
|
||||
.comments-wrapper {
|
||||
position: relative;
|
||||
|
||||
.participation-not-allowed {
|
||||
padding: rem-calc(20) rem-calc(8);
|
||||
}
|
||||
}
|
||||
|
||||
.comment-footer {
|
||||
position: relative;
|
||||
|
||||
.participation-not-allowed {
|
||||
font-size: rem-calc(14);
|
||||
height: rem-calc(50);
|
||||
padding: $line-height / 2;
|
||||
top: -18px;
|
||||
}
|
||||
}
|
||||
|
||||
.comment-input {
|
||||
|
||||
@@ -15,13 +15,10 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% if @process.allegations_phase.open? %>
|
||||
<a class="button publish-comment" href="#"><strong><%= t("legislation.annotations.comments.publish_comment") %></strong></a>
|
||||
|
||||
<% end %>
|
||||
|
||||
<% if @process.allegations_phase.open? %>
|
||||
<% if user_signed_in? %>
|
||||
<a class="button publish-comment" href="#"><strong><%= t("legislation.annotations.comments.publish_comment") %></strong></a>
|
||||
|
||||
<% css_id = parent_or_commentable_dom_id(nil, annotation) %>
|
||||
<div id="js-comment-form-annotation-<%= annotation.id %>" style="display:none" class="comment-form js-comment-form-annotation">
|
||||
<%= form_for @comment, url: legislation_process_draft_version_annotation_new_comment_path(annotation.draft_version.process, annotation.draft_version, annotation), remote: true do |f| %>
|
||||
@@ -34,14 +31,7 @@
|
||||
<% end %>
|
||||
</div>
|
||||
<% else %>
|
||||
|
||||
<div>
|
||||
<div class="participation-not-allowed" style="display: none;" aria-hidden="false">
|
||||
<%= sanitize(t("users.login_to_comment",
|
||||
signin: link_to_signin, signup: link_to_signup)) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "shared/login_to_comment" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user