Adds styles for associations comments

This commit is contained in:
Alberto Garcia Cabeza
2015-08-18 17:01:48 +02:00
committed by Juanjo Bazán
parent 87d921b3c7
commit 04db8112b4
8 changed files with 27 additions and 15 deletions

View File

@@ -16,18 +16,23 @@
<span class="label round level-1">
Cargo oficial
</span>
<!-- if user is a VERIFICATED association -->
&nbsp;&bullet;&nbsp;
<span class="label round is-association">
Puesto en la asociación
</span>
<!-- if user is debate's author -->
&nbsp;&bullet;&nbsp;
<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 -->

View File

@@ -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 %>