decidim-consultations 0.11.2 → 0.12.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/decidim_consultations_manifest.css +4 -0
- data/app/assets/stylesheets/decidim/consultations/consultations.scss +0 -1
- data/app/cells/decidim/consultations/consultation_cell.rb +19 -0
- data/app/cells/decidim/consultations/consultation_m/data.erb +21 -0
- data/app/cells/decidim/consultations/consultation_m/footer.erb +5 -0
- data/app/cells/decidim/consultations/consultation_m_cell.rb +94 -0
- data/app/commands/decidim/consultations/admin/update_consultation.rb +2 -1
- data/app/controllers/concerns/decidim/consultations/action_authorization.rb +2 -2
- data/app/controllers/concerns/decidim/consultations/admin/consultation_admin.rb +7 -0
- data/app/controllers/concerns/decidim/consultations/admin/question_admin.rb +7 -0
- data/app/controllers/concerns/decidim/consultations/needs_consultation.rb +0 -4
- data/app/controllers/concerns/decidim/consultations/needs_question.rb +0 -7
- data/app/controllers/decidim/consultations/admin/application_controller.rb +15 -0
- data/app/controllers/decidim/consultations/admin/consultation_publications_controller.rb +3 -3
- data/app/controllers/decidim/consultations/admin/consultation_results_publications_controller.rb +3 -3
- data/app/controllers/decidim/consultations/admin/consultations_controller.rb +6 -10
- data/app/controllers/decidim/consultations/admin/question_attachments_controller.rb +1 -1
- data/app/controllers/decidim/consultations/admin/question_publications_controller.rb +3 -3
- data/app/controllers/decidim/consultations/admin/questions_controller.rb +6 -10
- data/app/controllers/decidim/consultations/admin/responses_controller.rb +7 -7
- data/app/controllers/decidim/consultations/application_controller.rb +25 -0
- data/app/controllers/decidim/consultations/consultations_controller.rb +3 -17
- data/app/controllers/decidim/consultations/question_votes_controller.rb +3 -3
- data/app/controllers/decidim/consultations/questions_controller.rb +2 -2
- data/app/forms/decidim/consultations/admin/consultation_form.rb +1 -0
- data/app/models/decidim/consultation.rb +4 -3
- data/app/models/decidim/consultations/question.rb +22 -1
- data/app/permissions/decidim/consultations/admin/permissions.rb +108 -0
- data/app/permissions/decidim/consultations/permissions.rb +55 -0
- data/app/views/decidim/consultations/admin/consultations/edit.html.erb +4 -4
- data/app/views/decidim/consultations/admin/consultations/index.html.erb +5 -5
- data/app/views/decidim/consultations/admin/questions/edit.html.erb +2 -2
- data/app/views/decidim/consultations/admin/questions/index.html.erb +5 -5
- data/app/views/decidim/consultations/admin/responses/edit.html.erb +1 -1
- data/app/views/decidim/consultations/admin/responses/index.html.erb +3 -3
- data/app/views/decidim/consultations/consultation_widgets/show.html.erb +0 -2
- data/app/views/decidim/consultations/consultations/_consultations.html.erb +1 -1
- data/app/views/decidim/consultations/consultations/_regular_questions.html.erb +2 -2
- data/app/views/decidim/consultations/consultations/show.html.erb +0 -8
- data/app/views/decidim/consultations/question_votes/update_vote_button.js.erb +3 -0
- data/app/views/decidim/consultations/questions/_vote_button.html.erb +15 -28
- data/app/views/decidim/consultations/questions/_vote_modal.html.erb +1 -1
- data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +1 -1
- data/app/views/layouts/decidim/_question_components.html.erb +3 -2
- data/app/views/layouts/decidim/admin/consultation.html.erb +7 -4
- data/app/views/layouts/decidim/admin/consultations.html.erb +16 -10
- data/app/views/layouts/decidim/admin/question.html.erb +11 -8
- data/app/views/layouts/decidim/consultation.html.erb +0 -2
- data/app/views/layouts/decidim/consultation_choose.html.erb +0 -2
- data/app/views/layouts/decidim/question.html.erb +0 -1
- data/config/locales/ca.yml +33 -11
- data/config/locales/en.yml +33 -11
- data/config/locales/es.yml +33 -11
- data/config/locales/eu.yml +33 -11
- data/config/locales/fi.yml +33 -11
- data/config/locales/fr.yml +33 -11
- data/config/locales/gl.yml +33 -11
- data/config/locales/it.yml +33 -11
- data/config/locales/nl.yml +33 -11
- data/config/locales/pl.yml +41 -11
- data/config/locales/pt-BR.yml +33 -11
- data/config/locales/pt.yml +33 -11
- data/config/locales/ru.yml +1 -3
- data/config/locales/sv.yml +33 -11
- data/config/locales/uk.yml +41 -11
- data/lib/decidim/consultations/admin_engine.rb +1 -11
- data/lib/decidim/consultations/engine.rb +6 -11
- data/lib/decidim/consultations/participatory_space.rb +64 -105
- data/lib/decidim/consultations/version.rb +1 -1
- metadata +20 -19
- data/app/assets/config/decidim_consultations_manifest.scss +0 -3
- data/app/models/decidim/consultations/abilities/admin/consultation_admin_ability.rb +0 -34
- data/app/models/decidim/consultations/abilities/admin/question_admin_ability.rb +0 -30
- data/app/models/decidim/consultations/abilities/admin/response_admin_ability.rb +0 -26
- data/app/models/decidim/consultations/abilities/current_user_ability.rb +0 -45
- data/app/models/decidim/consultations/abilities/everyone_ability.rb +0 -23
- data/app/views/decidim/consultations/consultations/finished.html.erb +0 -15
@@ -7,7 +7,7 @@
|
|
7
7
|
class: "button",
|
8
8
|
data: { disable_with: true } %>
|
9
9
|
|
10
|
-
<% if
|
10
|
+
<% if allowed_to? :publish, :question, question: current_question %>
|
11
11
|
<% if current_question.published? %>
|
12
12
|
<%= link_to t("actions.unpublish", scope: "decidim.admin"),
|
13
13
|
question_publish_path(current_question),
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<% end %>
|
22
22
|
<% end %>
|
23
23
|
|
24
|
-
<% if
|
24
|
+
<% if allowed_to? :destroy, :question, question: current_question %>
|
25
25
|
<%= link_to t("decidim.admin.actions.destroy"),
|
26
26
|
question_path(current_question),
|
27
27
|
method: :delete,
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= t "decidim.admin.titles.questions" %>
|
5
5
|
<%= link_to t("actions.new", scope: "decidim.admin", name: t("models.question.name", scope: "decidim.admin")),
|
6
6
|
new_consultation_question_path(current_consultation),
|
7
|
-
class: "button tiny button--title" if
|
7
|
+
class: "button tiny button--title" if allowed_to? :create, :question %>
|
8
8
|
</h2>
|
9
9
|
</div>
|
10
10
|
<div class="card-section">
|
@@ -22,11 +22,11 @@
|
|
22
22
|
<% @questions.each do |question| %>
|
23
23
|
<tr>
|
24
24
|
<td>
|
25
|
-
<% if
|
25
|
+
<% if allowed_to? :update, :question, question: question %>
|
26
26
|
<%= link_to decidim_sanitize(translated_attribute(question.title)),
|
27
27
|
edit_question_path(question) %>
|
28
28
|
<br />
|
29
|
-
<% elsif
|
29
|
+
<% elsif allowed_to? :preview, :question, question: question %>
|
30
30
|
<%= link_to translated_attribute(question.title),
|
31
31
|
decidim_consultations.question_path(question),
|
32
32
|
target: "_blank" %>
|
@@ -50,14 +50,14 @@
|
|
50
50
|
<% end %>
|
51
51
|
</td>
|
52
52
|
<td class="table-list__actions">
|
53
|
-
<% if
|
53
|
+
<% if allowed_to? :update, :question, question: question %>
|
54
54
|
<%= icon_link_to "pencil",
|
55
55
|
edit_question_path(question),
|
56
56
|
t("actions.configure", scope: "decidim.admin"),
|
57
57
|
class: "action-icon--edit" %>
|
58
58
|
<% end %>
|
59
59
|
|
60
|
-
<% if
|
60
|
+
<% if allowed_to? :preview, :question, question: question %>
|
61
61
|
<%= icon_link_to "eye",
|
62
62
|
decidim_consultations.question_path(question),
|
63
63
|
t("actions.preview", scope: "decidim.admin"),
|
@@ -7,7 +7,7 @@
|
|
7
7
|
class: "button",
|
8
8
|
data: { disable_with: true } %>
|
9
9
|
|
10
|
-
<% if
|
10
|
+
<% if allowed_to? :destroy, :response, response: current_response %>
|
11
11
|
<%= link_to t("decidim.admin.actions.destroy"),
|
12
12
|
response_path(current_question, current_response),
|
13
13
|
method: :delete,
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= t "decidim.admin.titles.responses" %>
|
5
5
|
<%= link_to t("actions.new", scope: "decidim.admin", name: t("models.response.name", scope: "decidim.admin")),
|
6
6
|
new_response_path(current_question),
|
7
|
-
class: "button tiny button--title" if
|
7
|
+
class: "button tiny button--title" if allowed_to? :create, :response %>
|
8
8
|
</h2>
|
9
9
|
</div>
|
10
10
|
<div class="card-section">
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<% current_question.responses.each do |response| %>
|
22
22
|
<tr>
|
23
23
|
<td>
|
24
|
-
<% if
|
24
|
+
<% if allowed_to? :update, :response, response: response %>
|
25
25
|
<%= link_to translated_attribute(response.title),
|
26
26
|
edit_response_path(current_question, response) %>
|
27
27
|
<% else %>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<%= l response.created_at, format: :short %>
|
33
33
|
</td>
|
34
34
|
<td class="table-list__actions">
|
35
|
-
<% if
|
35
|
+
<% if allowed_to? :update, :response, response: response %>
|
36
36
|
<%= icon_link_to "pencil",
|
37
37
|
edit_response_path(current_question, response),
|
38
38
|
t("actions.configure", scope: "decidim.admin"),
|
@@ -1,5 +1,3 @@
|
|
1
1
|
<%= render partial: "decidim/consultations/consultations/consultation_details", locals: { consultation: model } %>
|
2
2
|
<%= render partial: "decidim/consultations/consultations/highlighted_questions", locals: { consultation: model } %>
|
3
3
|
<%= render partial: "decidim/consultations/consultations/regular_questions", locals: { consultation: model } %>
|
4
|
-
|
5
|
-
<%= stylesheet_link_tag "decidim/consultations/consultations", media: :all %>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<div class="row small-up-1 medium-up-2 card-grid">
|
12
12
|
<% consultations.each do |consultation| %>
|
13
|
-
<%=
|
13
|
+
<%= card_for consultation %>
|
14
14
|
<% end %>
|
15
15
|
</div>
|
16
16
|
<%= decidim_paginate consultations, random_seed: random_seed %>
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<% if consultation.
|
1
|
+
<% if consultation.questions.any? %>
|
2
2
|
<section id="regular-questions" class="row section">
|
3
3
|
<h2 class=section-heading>
|
4
4
|
<%= t "consultations.regular_questions.title", scope: "decidim" %>
|
5
5
|
</h2>
|
6
6
|
|
7
|
-
<% consultation.
|
7
|
+
<% consultation.questions_by_scope.each do |scope_id, questions| %>
|
8
8
|
<h3 class="heading6"><%= translated_attribute questions.first.scope.name %></h3>
|
9
9
|
<% questions.each do |question| %>
|
10
10
|
<%= render partial: "decidim/consultations/consultations/question", locals: { question: question } %>
|
@@ -1,11 +1,3 @@
|
|
1
1
|
<%= render partial: "consultation_details", locals: { consultation: current_consultation } %>
|
2
2
|
<%= render partial: "highlighted_questions", locals: { consultation: current_consultation } %>
|
3
3
|
<%= render partial: "regular_questions", locals: { consultation: current_consultation } %>
|
4
|
-
|
5
|
-
<% if finished_consultations.any? %>
|
6
|
-
<div class="text-center">
|
7
|
-
<%= link_to t("consultations.show.see_finished_consultations", scope: "decidim"),
|
8
|
-
finished_consultations_path,
|
9
|
-
class: "button hollow button--sc" %>
|
10
|
-
</div>
|
11
|
-
<% end %>
|
@@ -1,6 +1,9 @@
|
|
1
1
|
(function () {
|
2
2
|
'use strict';
|
3
3
|
|
4
|
+
$('#question-vote-modal').foundation("close");
|
5
|
+
$('#question-vote-confirm-modal').foundation("close");
|
6
|
+
$('#question-vote-modal, #question-vote-confirm-modal').remove()
|
4
7
|
var voteButton = $('#question-<%= current_question.id %>-vote-button');
|
5
8
|
voteButton.html('<%= j(render partial: "decidim/consultations/questions/vote_button", locals: { question: current_question }) %>');
|
6
9
|
|
@@ -1,22 +1,15 @@
|
|
1
1
|
<div class="row question-vote-cabin">
|
2
2
|
<div class="columns mediumlarge-4 mediumlarge-push-4">
|
3
3
|
<% if question.consultation.upcoming? %>
|
4
|
-
|
5
|
-
decidim_consultations.question_question_votes_path(question),
|
6
|
-
remote: true,
|
7
|
-
data: { disable: true },
|
8
|
-
class: "card__button button expanded disabled",
|
9
|
-
id: "vote_button" do %>
|
4
|
+
<div class="card__button button expanded disabled">
|
10
5
|
<div class="vote-button-caption"><%= t("questions.vote_button.vote", scope: "decidim") %></div>
|
11
6
|
<div>
|
12
7
|
<%= t "questions.vote_button.starting_from",
|
13
8
|
scope: "decidim",
|
14
9
|
date: l(question.start_voting_date) %>
|
15
10
|
</div>
|
16
|
-
|
17
|
-
<%
|
18
|
-
|
19
|
-
<% if question.consultation.finished? && signed_in? && question.voted_by?(current_user) %>
|
11
|
+
</div>
|
12
|
+
<% elsif question.consultation.finished? && signed_in? && question.voted_by?(current_user) %>
|
20
13
|
<%= action_authorized_button_to :unvote,
|
21
14
|
decidim_consultations.question_question_votes_path(question),
|
22
15
|
method: :delete,
|
@@ -28,10 +21,8 @@
|
|
28
21
|
<%= t("questions.vote_button.already_voted", scope: "decidim") %>
|
29
22
|
</div>
|
30
23
|
<% end %>
|
31
|
-
<%
|
32
|
-
|
33
|
-
<% if signed_in? && question.consultation.active? %>
|
34
|
-
<% if can? :unvote, question %>
|
24
|
+
<% elsif signed_in? && question.consultation.active? %>
|
25
|
+
<% if allowed_to? :unvote, :question, question: question %>
|
35
26
|
<%= action_authorized_button_to :unvote,
|
36
27
|
decidim_consultations.question_question_votes_path(question),
|
37
28
|
method: :delete,
|
@@ -47,24 +38,20 @@
|
|
47
38
|
<%= t("questions.vote_button.already_voted", scope: "decidim") %>
|
48
39
|
</div>
|
49
40
|
<% end %>
|
50
|
-
<%
|
51
|
-
|
52
|
-
<% if can? :vote, question %>
|
41
|
+
<% elsif allowed_to? :vote, :question, question: question %>
|
53
42
|
<%= link_to "#", class: "card__button button expanded", id: "vote_button" do %>
|
54
43
|
<div class="vote-button-caption"><%= t "questions.vote_button.vote", scope: "decidim" %></div>
|
55
44
|
<% end %>
|
56
45
|
<% end %>
|
57
|
-
<%
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</div>
|
67
|
-
<% end %>
|
46
|
+
<% elsif question.consultation.active? %>
|
47
|
+
<%= action_authorized_button_to :vote,
|
48
|
+
decidim_consultations.question_question_votes_path(question),
|
49
|
+
class: "card__button button expanded",
|
50
|
+
data: { disable: true },
|
51
|
+
id: "vote_button" do %>
|
52
|
+
<div class="vote-button-caption">
|
53
|
+
<%= t("questions.vote_button.vote", scope: "decidim") %>
|
54
|
+
</div>
|
68
55
|
<% end %>
|
69
56
|
<% end %>
|
70
57
|
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<p><%= t "questions.vote_modal.contextual_help", scope: "decidim" %></p>
|
11
11
|
<div class="card card--secondary">
|
12
12
|
<div class="card__content">
|
13
|
-
<h4 class="heading5 text-center"><%= translated_attribute
|
13
|
+
<h4 class="heading5 text-center"><%= translated_attribute(question.title).html_safe %></h4>
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<p><%= t "questions.vote_modal_confirm.contextual_help", scope: "decidim" %></p>
|
11
11
|
<div class="card card--secondary">
|
12
12
|
<div class="card__content">
|
13
|
-
<h4 class="heading5 text-center"><%= translated_attribute
|
13
|
+
<h4 class="heading5 text-center"><%= translated_attribute(question.title).html_safe %></h4>
|
14
14
|
<h5 class="heading6 text-center" id="question-vote-confirm-modal-question-title"></h5>
|
15
15
|
</div>
|
16
16
|
</div>
|
@@ -14,14 +14,15 @@
|
|
14
14
|
</button>
|
15
15
|
<div class="row column process-nav__content is-active" id="process-nav-content" data-toggler=".is-active">
|
16
16
|
<ul>
|
17
|
-
<li class="<%= "is-active" if is_active_link?(decidim_consultations.question_path(question), :exclusive) %>"
|
17
|
+
<li class="<%= "is-active" if is_active_link?(decidim_consultations.question_path(question), :exclusive) %>">
|
18
18
|
<%= active_link_to decidim_consultations.question_path(question),
|
19
19
|
active: :exclusive,
|
20
20
|
class: "process-nav__link",
|
21
21
|
class_active: "is-active" do %>
|
22
22
|
<%= external_icon "decidim/pages/icon.svg" %>
|
23
23
|
<%= t ".question_menu_item" %>
|
24
|
-
<% end
|
24
|
+
<% end %>
|
25
|
+
</li>
|
25
26
|
<% question.components.each do |component| %>
|
26
27
|
<% if component.published? || component == self.try(:current_component) %>
|
27
28
|
<li class="<%= "is-active" if is_active_link?(main_component_path(component), :inclusive) %>">
|
@@ -1,14 +1,14 @@
|
|
1
1
|
<% content_for :secondary_nav do %>
|
2
2
|
<div class="secondary-nav secondary-nav--subnav">
|
3
3
|
<ul>
|
4
|
-
<% if
|
4
|
+
<% if allowed_to? :update, :consultation, consultation: current_consultation %>
|
5
5
|
<li <% if is_active_link?(decidim_admin_consultations.edit_consultation_path(current_consultation)) %> class="is-active" <% end %>>
|
6
6
|
<%= aria_selected_link_to t("info", scope: "decidim.admin.menu.consultations_submenu"),
|
7
7
|
decidim_admin_consultations.edit_consultation_path(current_consultation) %>
|
8
8
|
</li>
|
9
9
|
<% end %>
|
10
10
|
|
11
|
-
<% if
|
11
|
+
<% if allowed_to? :read, :question %>
|
12
12
|
<li <% if is_active_link?(decidim_admin_consultations.consultation_questions_path(current_consultation)) %> class="is-active" <% end %>>
|
13
13
|
<%= aria_selected_link_to t("questions", scope: "decidim.admin.menu.consultations_submenu"),
|
14
14
|
decidim_admin_consultations.consultation_questions_path(current_consultation) %>
|
@@ -21,8 +21,11 @@
|
|
21
21
|
<%= render "layouts/decidim/admin/application" do %>
|
22
22
|
<div class="process-title">
|
23
23
|
<div class="process-title-content">
|
24
|
-
<%= translated_attribute(current_consultation.title) %>
|
24
|
+
<%= link_to translated_attribute(current_consultation.title), decidim_consultations.consultation_path(current_consultation), target: "_blank" %>
|
25
25
|
</div>
|
26
26
|
</div>
|
27
|
-
|
27
|
+
|
28
|
+
<div class="process-content">
|
29
|
+
<%= yield %>
|
30
|
+
</div>
|
28
31
|
<% end %>
|
@@ -1,16 +1,22 @@
|
|
1
1
|
<% content_for :secondary_nav do %>
|
2
|
-
<div class="secondary-nav
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
2
|
+
<div class="secondary-nav">
|
3
|
+
<div class="secondary-nav__title">
|
4
|
+
<%= t "decidim.admin.titles.consultations" %>
|
5
|
+
</div>
|
6
|
+
<div class="secondary-nav__actions">
|
7
|
+
<%= link_to t("actions.new", scope: "decidim.admin", name: t("models.consultation.name", scope: "decidim.admin")), ["new", "consultation"], class: "button expanded small" if allowed_to? :create, :consultation %>
|
8
|
+
</div>
|
11
9
|
</div>
|
12
10
|
<% end %>
|
13
11
|
|
14
12
|
<%= render "layouts/decidim/admin/application" do %>
|
15
|
-
|
13
|
+
<div class="process-title">
|
14
|
+
<div class="process-title-content">
|
15
|
+
<%= link_to t("decidim.admin.titles.consultations"), decidim_consultations.consultations_path, target: "_blank" %>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="process-content">
|
20
|
+
<%= yield %>
|
21
|
+
</div>
|
16
22
|
<% end %>
|
@@ -1,28 +1,28 @@
|
|
1
1
|
<% content_for :secondary_nav do %>
|
2
2
|
<div class="secondary-nav secondary-nav--subnav">
|
3
3
|
<ul>
|
4
|
-
<% if
|
4
|
+
<% if allowed_to?(:update, :consultation, consultation: current_participatory_space.consultation) %>
|
5
5
|
<li <% if is_active_link?(decidim_admin_consultations.edit_consultation_path(current_participatory_space.consultation)) %> class="is-active" <% end %>>
|
6
6
|
<%= aria_selected_link_to t("consultation", scope: "decidim.admin.menu.questions_submenu"),
|
7
7
|
decidim_admin_consultations.edit_consultation_path(current_participatory_space.consultation) %>
|
8
8
|
</li>
|
9
9
|
<% end %>
|
10
10
|
|
11
|
-
<% if
|
11
|
+
<% if allowed_to?(:update, :question, question: current_participatory_space) %>
|
12
12
|
<li <% if is_active_link?(decidim_admin_consultations.edit_question_path(current_participatory_space)) %> class="is-active" <% end %>>
|
13
13
|
<%= aria_selected_link_to t("info", scope: "decidim.admin.menu.questions_submenu"),
|
14
14
|
decidim_admin_consultations.edit_question_path(current_participatory_space) %>
|
15
15
|
</li>
|
16
16
|
<% end %>
|
17
17
|
|
18
|
-
<% if
|
18
|
+
<% if allowed_to? :read, :response %>
|
19
19
|
<li <% if is_active_link?(decidim_admin_consultations.responses_path(current_participatory_space)) %> class="is-active" <% end %>>
|
20
20
|
<%= aria_selected_link_to t("responses", scope: "decidim.admin.menu.questions_submenu"),
|
21
21
|
decidim_admin_consultations.responses_path(current_participatory_space) %>
|
22
22
|
</li>
|
23
23
|
<% end %>
|
24
24
|
|
25
|
-
<% if
|
25
|
+
<% if allowed_to? :read, :component %>
|
26
26
|
<li <% if is_active_link?(decidim_admin_consultations.components_path(current_participatory_space)) %> class="is-active" <% end %>>
|
27
27
|
<%= aria_selected_link_to t("components", scope: "decidim.admin.menu.questions_submenu"),
|
28
28
|
decidim_admin_consultations.components_path(current_participatory_space) %>
|
@@ -45,14 +45,14 @@
|
|
45
45
|
</li>
|
46
46
|
<% end %>
|
47
47
|
|
48
|
-
<% if
|
48
|
+
<% if allowed_to? :read, :category %>
|
49
49
|
<li <% if is_active_link?(decidim_admin_consultations.categories_path(current_participatory_space)) %> class="is-active" <% end %>>
|
50
50
|
<%= aria_selected_link_to t(".categories"),
|
51
51
|
decidim_admin_consultations.categories_path(current_participatory_space) %>
|
52
52
|
</li>
|
53
53
|
<% end %>
|
54
54
|
|
55
|
-
<% if
|
55
|
+
<% if allowed_to? :read, :attachment %>
|
56
56
|
<li <% if is_active_link?(decidim_admin_consultations.question_attachments_path(current_participatory_space)) %> class="is-active" <% end %>>
|
57
57
|
<%= aria_selected_link_to t(".attachments"),
|
58
58
|
decidim_admin_consultations.question_attachments_path(current_participatory_space) %>
|
@@ -65,8 +65,11 @@
|
|
65
65
|
<%= render "layouts/decidim/admin/application" do %>
|
66
66
|
<div class="process-title">
|
67
67
|
<div class="process-title-content">
|
68
|
-
<%= translated_attribute(current_participatory_space.consultation.title) %>
|
68
|
+
<%= link_to translated_attribute(current_participatory_space.consultation.title), decidim_consultations.consultation_path(current_participatory_space.consultation), target: "_blank" %>
|
69
69
|
</div>
|
70
70
|
</div>
|
71
|
-
|
71
|
+
|
72
|
+
<div class="process-content">
|
73
|
+
<%= yield %>
|
74
|
+
</div>
|
72
75
|
<% end %>
|
data/config/locales/ca.yml
CHANGED
@@ -8,6 +8,7 @@ ca:
|
|
8
8
|
end_voting_date: Data de finalització
|
9
9
|
introductory_image: Imatge introductòria
|
10
10
|
introductory_video_url: URL de vídeo introductori
|
11
|
+
questions: Preguntes
|
11
12
|
slug: Nom curt d'URL
|
12
13
|
start_voting_date: Data d'inici
|
13
14
|
subtitle: Subtítol
|
@@ -35,6 +36,20 @@ ca:
|
|
35
36
|
vote:
|
36
37
|
decidim_consultations_response_id:
|
37
38
|
not_found: La resposta no s'ha trobat.
|
39
|
+
activerecord:
|
40
|
+
models:
|
41
|
+
decidim/consultations:
|
42
|
+
one: Consulta
|
43
|
+
other: Consultes
|
44
|
+
decidim/consultations/question:
|
45
|
+
one: Pregunta
|
46
|
+
other: Preguntes
|
47
|
+
decidim/consultations/response:
|
48
|
+
one: Resposta
|
49
|
+
other: Respostes
|
50
|
+
decidim/consultations/vote:
|
51
|
+
one: Vot
|
52
|
+
other: Vots
|
38
53
|
decidim:
|
39
54
|
admin:
|
40
55
|
actions:
|
@@ -182,11 +197,8 @@ ca:
|
|
182
197
|
filter: Filtre
|
183
198
|
filter_by: Filtra per
|
184
199
|
unfold: Desplegar
|
185
|
-
finished:
|
186
|
-
active_consultations: Consultes actives
|
187
|
-
past_consultations: Consultes passades
|
188
200
|
highlighted_questions:
|
189
|
-
title:
|
201
|
+
title: Preguntes de %{scope_name}
|
190
202
|
index:
|
191
203
|
title: Consultes
|
192
204
|
question:
|
@@ -199,11 +211,25 @@ ca:
|
|
199
211
|
create:
|
200
212
|
error: Hi ha hagut errors en votar la pregunta
|
201
213
|
regular_questions:
|
202
|
-
title:
|
214
|
+
title: Preguntes per a aquesta consulta
|
203
215
|
show:
|
204
|
-
|
216
|
+
badge_name:
|
217
|
+
finished: Acabada
|
218
|
+
open: Oberta
|
219
|
+
open_votes: Obre els vots
|
220
|
+
published_results: Resultats publicats
|
221
|
+
footer_button_text:
|
222
|
+
debate: Debat
|
223
|
+
view: Veure
|
224
|
+
view_results: Veure resultats
|
225
|
+
vote: Votació
|
226
|
+
unspecified: Sense especificar
|
205
227
|
menu:
|
206
228
|
consultations: Consultes
|
229
|
+
pages:
|
230
|
+
home:
|
231
|
+
statistics:
|
232
|
+
consultations_count: Consultes
|
207
233
|
questions:
|
208
234
|
results:
|
209
235
|
title: Resultats
|
@@ -222,7 +248,7 @@ ca:
|
|
222
248
|
starting_from: A partir de %{date}
|
223
249
|
vote: Votació
|
224
250
|
vote_modal:
|
225
|
-
contextual_help:
|
251
|
+
contextual_help: Selecciona una opció.
|
226
252
|
title: 'Consulta: suport a la pregunta'
|
227
253
|
vote_modal_confirm:
|
228
254
|
change: Canvia
|
@@ -242,7 +268,3 @@ ca:
|
|
242
268
|
unfold: Desplegar
|
243
269
|
question_header:
|
244
270
|
back_to_consultation: Veure totes les consultes
|
245
|
-
pages:
|
246
|
-
home:
|
247
|
-
statistics:
|
248
|
-
consultations_count: Consultes
|