Fix comment boxes login warning display

This commit is contained in:
Martín González
2017-03-10 19:12:39 +01:00
parent 04d5611a9d
commit ea9d9728d8
3 changed files with 25 additions and 1 deletions

View File

@@ -14,4 +14,5 @@ App.Votes =
App.Votes.hoverize "div.votes" App.Votes.hoverize "div.votes"
App.Votes.hoverize "div.supports" App.Votes.hoverize "div.supports"
App.Votes.hoverize "div.debate-questions" App.Votes.hoverize "div.debate-questions"
App.Votes.hoverize "div.comment-footer"
false false

View File

@@ -870,6 +870,25 @@ $epigraph-line-height: rem-calc(22);
float: right; float: right;
} }
} }
.comments-wrapper {
position: relative;
.participation-not-allowed {
padding: 1.25rem 0.5rem;
}
}
.comment-footer {
position: relative;
.participation-not-allowed {
font-size: 0.875rem;
height: 50px;
padding: .85rem 0.75rem;
top: -18px;
}
}
.comment-input { .comment-input {
padding-bottom: 4rem; padding-bottom: 4rem;

View File

@@ -61,11 +61,15 @@
<% end %> <% end %>
</div> </div>
<% else %> <% else %>
<div data-alert class="callout primary">
<div>
<div class="participation-not-allowed" style="display: none;" aria-hidden="false">
<%= t("legislation.annotations.form.login_to_comment", <%= t("legislation.annotations.form.login_to_comment",
signin: link_to(t("legislation.annotations.form.signin"), new_user_session_path), signin: link_to(t("legislation.annotations.form.signin"), new_user_session_path),
signup: link_to(t("legislation.annotations.form.signup"), new_user_registration_path)).html_safe %> signup: link_to(t("legislation.annotations.form.signup"), new_user_registration_path)).html_safe %>
</div> </div>
</div>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>