Adds styles for associations comments
This commit is contained in:
committed by
Juanjo Bazán
parent
87d921b3c7
commit
04db8112b4
@@ -16,18 +16,23 @@
|
||||
<span class="label round level-1">
|
||||
Cargo oficial
|
||||
</span>
|
||||
<!-- if user is a VERIFICATED association -->
|
||||
•
|
||||
<span class="label round is-association">
|
||||
Puesto en la asociación
|
||||
</span>
|
||||
<!-- if user is debate's author -->
|
||||
•
|
||||
<span class="label round author-debate">
|
||||
<span class="label round is-author">
|
||||
<%= t("debates.comment.author") %>
|
||||
</span>
|
||||
<!-- end -->
|
||||
</div>
|
||||
|
||||
<!-- if user is official -->
|
||||
<p class="comment-user official"><%= comment.body %></p>
|
||||
<p class="comment-user is-official"><%= comment.body %></p>
|
||||
<!-- elsif user is author -->
|
||||
<p class="comment-user author"><%= comment.body %></p>
|
||||
<p class="comment-user is-author"><%= comment.body %></p>
|
||||
<!-- else -->
|
||||
<p class="comment-user"><%= comment.body %></p>
|
||||
<!-- end -->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div id="js-comment-form-<%= dom_id(parent) %>" <%= "style='display:none'".html_safe if toggeable %>>
|
||||
<%= form_for [@debate, Comment.new], remote: true do |f| %>
|
||||
<%= f.text_area :body %>
|
||||
<%= f.text_area :body, label: t("comments.form.leave_comment") %>
|
||||
<%= f.hidden_field :commentable_type, value: parent.class %>
|
||||
<%= f.hidden_field :commentable_id, value: parent.id %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user