Renaming class. Topic show: Added author_info.

This commit is contained in:
Alessandro Cuoghi
2017-08-08 17:01:58 +02:00
committed by taitus
parent 11f6515e84
commit e5fb90f954
5 changed files with 34 additions and 11 deletions

View File

@@ -33,15 +33,25 @@
}
}
.communities-participantes{
.communities-participants{
.comment-body{
display: inline-block;
float: left;
margin-right: $line-height;
margin-bottom: $line-height;
}
}
.topic-show{
p{
margin-bottom: 0;
}
ul li {
margin-bottom:0;
}
.comments{
.first-comment{
margin-top: $line-height;
margin-bottom: $line-height;
}
}
}

View File

@@ -316,7 +316,9 @@
.debate-quiz,
.budget-investment-show,
.draft-panels,
.debate-questions {
.debate-questions,
.communities-show,
.topic-show {
p {
word-wrap: break-word;
@@ -350,7 +352,8 @@
.debate-info,
.proposal-info,
.investment-project-info,
.budget-investment-show {
.budget-investment-show,
.topic-info {
clear: both;
color: $text-medium;
font-size: $small-font-size;

View File

@@ -22,7 +22,7 @@
</div>
</div>
<div class="row column communities-participantes">
<div class="row column communities-participants">
<ul class="tabs" data-tabs id="communities-show-tabs">
<li class="tabs-title is-active">
<%= link_to "#tab-participantes" do %>

View File

@@ -1,13 +1,20 @@
<% cache [locale_and_user_status, @current_order, commentable_cache_key(@topic), @comment_tree.comments, @comment_tree.comment_authors, @topic.comments_count, @comment_flags] do %>
<div class="row comments">
<div id="comments" class="small-12 column">
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %>
<!-- <p class="first-comment"><%= @topic.description_as_comment %></p> -->
<% @comment_tree.root_comments.each do |comment| %>
<%= render 'comments/comment', comment: comment %>
<% end %>
<%= paginate @comment_tree.root_comments %>
<% if user_signed_in? %>
<%= render 'comments/form', {commentable: @topic, parent_id: nil, toggeable: false} %>
<% else %>
<br>
<div data-alert class="callout primary">
<%= t("topics.show.login_to_comment",
signin: link_to(t("votes.signin"), new_user_session_path),
@@ -15,10 +22,6 @@
</div>
<% end %>
<% @comment_tree.root_comments.each do |comment| %>
<%= render 'comments/comment', comment: comment %>
<% end %>
<%= paginate @comment_tree.root_comments %>
</div>
</div>
<% end %>

View File

@@ -2,12 +2,19 @@
<div class="small-12 medium-12 column">
<%= render "shared/back_link" %>
<br>
<p>Comunidad: <strong><%= @community.proposal.title %></strong></p>
<p>Comunidad de la propuesta: <strong><%= @community.proposal.title %></strong></p>
<h1><%= @topic.title %></h1>
<div class="topic-info">
<%= render '/shared/author_info', resource: @topic %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l @topic.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="icon-comments"></span>&nbsp;
</div>
<div class="tabs-content" data-tabs-content="proposals-tabs" role="tablist">
<%= render "topics/filter_subnav" %>
<div class="tabs-panel is-active" id="tab-comments">
<%= render "topics/comments" %>
</div>