Fix rebase with master.

This commit is contained in:
taitus
2017-08-28 14:09:44 +02:00
parent 188d492f7a
commit 54cf210b07
8 changed files with 22 additions and 21 deletions

View File

@@ -249,7 +249,8 @@
.proposal-form,
.budget-investment-form,
.spending-proposal-form,
.document-form {
.document-form,
.topic-form {
.icon-debates,
.icon-proposals,
@@ -298,6 +299,7 @@
}
.proposal-form,
.topic-form,
.document-form {
.recommendations li::before {
@@ -630,7 +632,8 @@
.proposal,
.investment-project,
.budget-investment,
.legislation {
.legislation,
.communities-show {
margin: $line-height / 4 0;
.panel {
@@ -702,7 +705,8 @@
.debate-info,
.proposal-info,
.investment-project-info,
.budget-investment-info {
.budget-investment-info,
.topic-info {
color: $text-medium;
font-size: $small-font-size;
margin: rem-calc(6) 0 0;

View File

@@ -1,6 +1,6 @@
class CommunitiesController < ApplicationController
before_action :set_order, :set_community, :load_topics, only: :show
before_action :set_order, :set_community, :load_topics, :load_participants, only: :show
has_orders %w{newest most_commented oldest}, only: :show

View File

@@ -2,18 +2,17 @@
<%= render 'shared/errors', resource: @topic %>
<%= render 'shared/errors', resource: @topic %>
<div class="row">
<div class="small-12 column">
<%= f.label :title, t("community.topic.form.topic_title") %>
<%= f.text_field :title, label: false %>
<%= f.label :description, t("community.topic.form.topic_description") %>
<%= f.text_area :description, label: false %>
</div>
<div class="row">
<div class="small-12 column">
<%= f.label :title, t("community.topic.form.topic_title") %>
<%= f.text_field :title, label: false %>
<%= f.label :description, t("community.topic.form.topic_description") %>
<%= f.text_area :description, label: false %>
</div>
<div class="actions small-12 column">
<%= f.submit(class: "button", value: t("community.topic.form.#{action_name}.submit_button")) %>
</div>
</div>
<% end %>

View File

@@ -1,7 +1,7 @@
<div class="topic-form row">
<div class="small-12 medium-9 column">
<%= render "shared/back_link" %>
<%= back_link_to community_path(@community) %>
<h1><%= t("community.topic.edit") %></h1>
<%= render "form" %>
</div>

View File

@@ -1,6 +1,6 @@
<div class="topic-new row">
<div class="small-12 medium-9 column">
<%= render "shared/back_link" %>
<%= back_link_to community_path(@community) %>
<h1><%= t("community.topic.create") %></h1>
<%= render 'form' %>
</div>

View File

@@ -1,9 +1,9 @@
<div class="row topic-show">
<div class="small-12 medium-12 column">
<%= render "shared/back_link" %>
<%= back_link_to community_path(@community) %>
<br>
<p><%= t("community.topic.show.community_of_the_proposal") %> <strong><%= community_title(@community) %></strong></p>
<p><%= community_text(@community) %> <strong><%= community_title(@community) %></strong></p>
<h1><%= @topic.title %></h1>
<div class="topic-info">
<p><%= @topic.description %></p>

View File

@@ -1,8 +1,8 @@
en:
community:
sidebar:
title: Comunidad
description: Partecipa a la comunidad de usuarios, da tu opinión.
title: Community
description: Join the community of users, give your opinion.
button_to_access: Access the community
show:
title:
@@ -39,7 +39,6 @@ en:
update:
submit_button: Update topic
show:
community_of_the_proposal: Community of the proposal
tab:
comments_tab: Comments
sidebar:

View File

@@ -39,7 +39,6 @@ es:
update:
submit_button: Actualizar tema
show:
community_of_the_proposal: Comunidad de la propuesta
tab:
comments_tab: Comentarios
sidebar: