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

View File

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

View File

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

View File

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

View File

@@ -1,9 +1,9 @@
<div class="row topic-show"> <div class="row topic-show">
<div class="small-12 medium-12 column"> <div class="small-12 medium-12 column">
<%= render "shared/back_link" %> <%= back_link_to community_path(@community) %>
<br> <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> <h1><%= @topic.title %></h1>
<div class="topic-info"> <div class="topic-info">
<p><%= @topic.description %></p> <p><%= @topic.description %></p>

View File

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

View File

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