Fix rebase with master.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<%= form_for([@community, @topic]) do |f| %>
|
<%= form_for([@community, @topic]) do |f| %>
|
||||||
|
|
||||||
<%= render 'shared/errors', resource: @topic %>
|
|
||||||
|
|
||||||
<%= render 'shared/errors', resource: @topic %>
|
<%= render 'shared/errors', resource: @topic %>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -16,4 +14,5 @@
|
|||||||
<%= 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 %>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user