decidim-initiatives 0.28.3 → 0.29.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/app/cells/decidim/initiatives/initiative_g_cell.rb +6 -4
  4. data/app/cells/decidim/initiatives_votes/vote_cell.rb +1 -3
  5. data/app/commands/decidim/initiatives/admin/create_initiative_type.rb +9 -58
  6. data/app/commands/decidim/initiatives/admin/create_initiative_type_scope.rb +5 -43
  7. data/app/commands/decidim/initiatives/admin/update_initiative.rb +25 -42
  8. data/app/commands/decidim/initiatives/admin/update_initiative_answer.rb +3 -4
  9. data/app/commands/decidim/initiatives/admin/update_initiative_type.rb +11 -61
  10. data/app/commands/decidim/initiatives/admin/update_initiative_type_scope.rb +2 -33
  11. data/app/commands/decidim/initiatives/admin/update_initiatives_settings.rb +2 -35
  12. data/app/commands/decidim/initiatives/create_initiative.rb +5 -6
  13. data/app/commands/decidim/initiatives/spawn_committee_request.rb +3 -4
  14. data/app/commands/decidim/initiatives/update_initiative.rb +3 -3
  15. data/app/commands/decidim/initiatives/validate_sms_code.rb +3 -3
  16. data/app/controllers/concerns/decidim/initiatives/needs_initiative.rb +1 -1
  17. data/app/controllers/decidim/initiatives/admin/answers_controller.rb +1 -1
  18. data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +7 -1
  19. data/app/controllers/decidim/initiatives/admin/initiatives_settings_controller.rb +1 -1
  20. data/app/controllers/decidim/initiatives/admin/initiatives_type_scopes_controller.rb +2 -2
  21. data/app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb +2 -2
  22. data/app/controllers/decidim/initiatives/application_controller.rb +5 -2
  23. data/app/controllers/decidim/initiatives/committee_requests_controller.rb +1 -1
  24. data/app/controllers/decidim/initiatives/create_initiative_controller.rb +1 -1
  25. data/app/controllers/decidim/initiatives/initiatives_controller.rb +1 -1
  26. data/app/events/decidim/initiatives/approve_membership_request_event.rb +9 -29
  27. data/app/events/decidim/initiatives/create_initiative_event.rb +17 -36
  28. data/app/events/decidim/initiatives/revoke_membership_request_event.rb +10 -33
  29. data/app/events/decidim/initiatives/spawn_committee_request_event.rb +10 -33
  30. data/app/forms/decidim/initiatives/admin/initiative_form.rb +2 -2
  31. data/app/forms/decidim/initiatives/initiative_form.rb +11 -1
  32. data/app/forms/decidim/initiatives/vote_form.rb +2 -2
  33. data/app/helpers/decidim/initiatives/initiative_helper.rb +0 -74
  34. data/app/helpers/decidim/initiatives/initiatives_helper.rb +0 -7
  35. data/app/models/decidim/initiative.rb +1 -1
  36. data/app/packs/src/decidim/initiatives/admin/invite_users.js +1 -1
  37. data/app/serializers/decidim/initiatives/initiative_serializer.rb +1 -1
  38. data/app/views/decidim/initiatives/admin/answers/_info_initiative.html.erb +1 -1
  39. data/app/views/decidim/initiatives/admin/committee_requests/index.html.erb +1 -1
  40. data/app/views/decidim/initiatives/admin/exports/_dropdown.html.erb +6 -6
  41. data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +74 -68
  42. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/_form.html.erb +1 -1
  43. data/app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb +1 -1
  44. data/app/views/decidim/initiatives/admin/initiatives_types/index.html.erb +1 -1
  45. data/app/views/decidim/initiatives/committee_requests/new.html.erb +3 -4
  46. data/app/views/decidim/initiatives/initiative_signatures/fill_personal_data.html.erb +1 -1
  47. data/app/views/decidim/initiatives/initiatives/_interactions.html.erb +1 -1
  48. data/app/views/decidim/initiatives/initiatives/_new_initiative_button.html.erb +1 -1
  49. data/app/views/decidim/initiatives/initiatives/_vote_button.html.erb +1 -1
  50. data/app/views/decidim/initiatives/initiatives/print.html.erb +2 -2
  51. data/app/views/decidim/initiatives/initiatives/show.html.erb +2 -3
  52. data/app/views/layouts/decidim/_initiative_header.html.erb +6 -6
  53. data/app/views/layouts/decidim/initiative.html.erb +2 -2
  54. data/app/views/layouts/decidim/initiative_head.html.erb +1 -1
  55. data/config/initializers/wicked_pdf.rb +5 -5
  56. data/config/locales/ar.yml +0 -1
  57. data/config/locales/bg.yml +1 -3
  58. data/config/locales/ca.yml +5 -2
  59. data/config/locales/cs.yml +4 -2
  60. data/config/locales/de.yml +6 -3
  61. data/config/locales/el.yml +0 -1
  62. data/config/locales/en.yml +6 -3
  63. data/config/locales/es-MX.yml +5 -2
  64. data/config/locales/es-PY.yml +5 -2
  65. data/config/locales/es.yml +5 -2
  66. data/config/locales/eu.yml +6 -3
  67. data/config/locales/fi-plain.yml +5 -2
  68. data/config/locales/fi.yml +6 -3
  69. data/config/locales/fr-CA.yml +1 -3
  70. data/config/locales/fr.yml +1 -3
  71. data/config/locales/gl.yml +0 -1
  72. data/config/locales/he-IL.yml +0 -6
  73. data/config/locales/hu.yml +0 -3
  74. data/config/locales/id-ID.yml +0 -1
  75. data/config/locales/it.yml +0 -1
  76. data/config/locales/ja.yml +6 -3
  77. data/config/locales/lt.yml +0 -3
  78. data/config/locales/lv.yml +0 -1
  79. data/config/locales/nl.yml +0 -1
  80. data/config/locales/no.yml +0 -1
  81. data/config/locales/pl.yml +5 -2
  82. data/config/locales/pt-BR.yml +0 -2
  83. data/config/locales/pt.yml +0 -1
  84. data/config/locales/ro-RO.yml +0 -1
  85. data/config/locales/ru.yml +0 -1
  86. data/config/locales/sk.yml +0 -1
  87. data/config/locales/sv.yml +14 -41
  88. data/config/locales/tr-TR.yml +0 -1
  89. data/config/locales/uk.yml +0 -1
  90. data/config/locales/zh-CN.yml +0 -1
  91. data/config/locales/zh-TW.yml +0 -3
  92. data/decidim-initiatives.gemspec +1 -1
  93. data/lib/decidim/api/initiative_api_type.rb +2 -2
  94. data/lib/decidim/initiatives/engine.rb +1 -0
  95. data/lib/decidim/initiatives/menu.rb +12 -1
  96. data/lib/decidim/initiatives/seeds.rb +89 -64
  97. data/lib/decidim/initiatives/version.rb +1 -1
  98. data/lib/decidim/initiatives.rb +0 -12
  99. data/lib/tasks/decidim_initiatives.rake +3 -3
  100. data/lib/tasks/initiatives/upgrade/decidim_initiatives_upgrade_tasks.rake +9 -11
  101. metadata +18 -20
  102. data/app/forms/decidim/initiatives/previous_form.rb +0 -24
  103. data/app/queries/decidim/initiatives/similar_initiatives.rb +0 -54
@@ -10,79 +10,85 @@
10
10
  </h1>
11
11
  </div>
12
12
  <%= admin_filter_selector(:initiatives) %>
13
- <div class="table-scroll">
14
- <table class="table-list">
15
- <thead>
16
- <tr>
17
- <th><%= t("models.initiatives.fields.id", scope: "decidim.admin") %></th>
18
- <th class="!text-left"><%= t("models.initiatives.fields.title", scope: "decidim.admin") %></th>
19
- <th><%= t("models.initiatives.fields.state", scope: "decidim.admin") %></th>
20
- <th><%= sort_link(query, :supports_count, t("models.initiatives.fields.supports_count", scope: "decidim.admin"), default_order: :desc) %></th>
21
- <th><%= sort_link(query, :created_at, t("models.initiatives.fields.created_at", scope: "decidim.admin"), default_order: :desc) %></th>
22
- <th><%= sort_link(query, :published_at, t("models.initiatives.fields.published_at", scope: "decidim.admin"), default_order: :desc) %></th>
23
- <th class="actions"><%= t ".actions_title" %></th>
24
- </tr>
25
- </thead>
26
- <tbody>
27
- <% @initiatives.each do |initiative| %>
13
+
14
+ <% if show_initiative_type_callout? %>
15
+ <% link = link_to(t("button", scope:"decidim.initiatives.admin.index.initiatives_types"), new_initiatives_type_path, class: "button button__sm button__secondary mt-4") %>
16
+ <%= cell("decidim/announcement", t("alert_html", scope:"decidim.initiatives.admin.index.initiatives_types", link:), callout_class: "alert") %>
17
+ <% else %>
18
+ <div class="table-scroll">
19
+ <table class="table-list">
20
+ <thead>
28
21
  <tr>
29
- <td><%= initiative.id %></td>
30
- <td class="!text-left">
31
- <% if allowed_to? :edit, :initiative, initiative: initiative %>
32
- <%= link_to translated_attribute(initiative.title),
33
- decidim_admin_initiatives.edit_initiative_path(initiative.to_param) %>
34
- <% else %>
35
- <%= translated_attribute(initiative.title) %>
36
- <% end %>
37
- </td>
38
- <td><%= humanize_admin_state initiative.state %></td>
39
- <td><%= initiative.supports_count %>/<%= initiative.scoped_type.supports_required %></td>
40
- <td class="table-list__date"><%= l initiative.created_at, format: :short %></td>
41
- <td class="table-list__date"><%= initiative.published_at? ? l(initiative.published_at, format: :short) : "" %></td>
42
- <td class="table-list__actions">
43
- <% if allowed_to? :edit, :initiative, initiative: initiative %>
44
- <%= icon_link_to "pencil-line",
45
- decidim_admin_initiatives.edit_initiative_path(initiative.to_param),
46
- t("actions.configure", scope: "decidim.admin"),
47
- class: "action-icon--edit" %>
48
- <% else %>
49
- <span class="action-space icon"></span>
50
- <% end %>
22
+ <th><%= t("models.initiatives.fields.id", scope: "decidim.admin") %></th>
23
+ <th class="!text-left"><%= t("models.initiatives.fields.title", scope: "decidim.admin") %></th>
24
+ <th><%= t("models.initiatives.fields.state", scope: "decidim.admin") %></th>
25
+ <th><%= sort_link(query, :supports_count, t("models.initiatives.fields.supports_count", scope: "decidim.admin"), default_order: :desc) %></th>
26
+ <th><%= sort_link(query, :created_at, t("models.initiatives.fields.created_at", scope: "decidim.admin"), default_order: :desc) %></th>
27
+ <th><%= sort_link(query, :published_at, t("models.initiatives.fields.published_at", scope: "decidim.admin"), default_order: :desc) %></th>
28
+ <th><%= t ".actions_title" %></th>
29
+ </tr>
30
+ </thead>
31
+ <tbody>
32
+ <% @initiatives.each do |initiative| %>
33
+ <tr>
34
+ <td><%= initiative.id %></td>
35
+ <td class="!text-left">
36
+ <% if allowed_to? :edit, :initiative, initiative: initiative %>
37
+ <%= link_to translated_attribute(initiative.title),
38
+ decidim_admin_initiatives.edit_initiative_path(initiative.to_param) %>
39
+ <% else %>
40
+ <%= translated_attribute(initiative.title) %>
41
+ <% end %>
42
+ </td>
43
+ <td><%= humanize_admin_state initiative.state %></td>
44
+ <td><%= initiative.supports_count %>/<%= initiative.scoped_type.supports_required %></td>
45
+ <td class="table-list__date"><%= l initiative.created_at, format: :short %></td>
46
+ <td class="table-list__date"><%= initiative.published_at? ? l(initiative.published_at, format: :short) : "" %></td>
47
+ <td class="table-list__actions">
48
+ <% if allowed_to? :edit, :initiative, initiative: initiative %>
49
+ <%= icon_link_to "pencil-line",
50
+ decidim_admin_initiatives.edit_initiative_path(initiative.to_param),
51
+ t("actions.configure", scope: "decidim.admin"),
52
+ class: "action-icon--edit" %>
53
+ <% else %>
54
+ <span class="action-space icon"></span>
55
+ <% end %>
51
56
 
52
- <% if allowed_to?(:answer, :initiative, initiative: initiative) %>
53
- <%= icon_link_to "chat-1-line", edit_initiative_answer_path(initiative.slug), t("actions.answer", scope: "decidim.initiatives"), class: "action-icon action-icon--answer" %>
54
- <% else %>
55
- <%= icon "chat-1-line", scope: "decidim.admin", class: "action-icon action-icon--disabled", role: "img", "aria-hidden": true %>
56
- <% end %>
57
+ <% if allowed_to?(:answer, :initiative, initiative: initiative) %>
58
+ <%= icon_link_to "chat-1-line", edit_initiative_answer_path(initiative.slug), t("actions.answer", scope: "decidim.initiatives"), class: "action-icon action-icon--answer" %>
59
+ <% else %>
60
+ <%= icon "chat-1-line", scope: "decidim.admin", class: "action-icon action-icon--disabled", role: "img", "aria-hidden": true %>
61
+ <% end %>
57
62
 
58
- <% if allowed_to? :read, :initiative, initiative: initiative %>
59
- <%= icon_link_to "printer-line",
60
- decidim_initiatives.print_initiative_path(initiative),
61
- t(".print"),
62
- class: "action-icon--print",
63
- target: "_blank",
64
- data: { "external-link": false } %>
65
- <% else %>
66
- <span class="action-space icon"></span>
67
- <% end %>
63
+ <% if allowed_to? :read, :initiative, initiative: initiative %>
64
+ <%= icon_link_to "printer-line",
65
+ decidim_initiatives.print_initiative_path(initiative),
66
+ t(".print"),
67
+ class: "action-icon--print",
68
+ target: "_blank",
69
+ data: { "external-link": false } %>
70
+ <% else %>
71
+ <span class="action-space icon"></span>
72
+ <% end %>
68
73
 
69
- <% if allowed_to? :preview, :initiative, initiative: initiative %>
70
- <%= icon_link_to "eye-line",
71
- decidim_initiatives.initiative_path(initiative.to_param),
72
- t(".preview"),
73
- class: "action-icon--preview",
74
- target: "_blank",
75
- data: { "external-link": false } %>
76
- <% else %>
77
- <span class="action-space icon"></span>
78
- <% end %>
74
+ <% if allowed_to? :preview, :initiative, initiative: initiative %>
75
+ <%= icon_link_to "eye-line",
76
+ decidim_initiatives.initiative_path(initiative.to_param),
77
+ t(".preview"),
78
+ class: "action-icon--preview",
79
+ target: "_blank",
80
+ data: { "external-link": false } %>
81
+ <% else %>
82
+ <span class="action-space icon"></span>
83
+ <% end %>
79
84
 
80
- <%= free_resource_permissions_link(initiative) || content_tag(:span, nil, class: "action-space icon") %>
81
- </td>
82
- </tr>
83
- <% end %>
84
- </tbody>
85
- </table>
85
+ <%= free_resource_permissions_link(initiative) || content_tag(:span, nil, class: "action-space icon") %>
86
+ </td>
87
+ </tr>
88
+ <% end %>
89
+ </tbody>
90
+ </table>
91
+ <% end %>
86
92
  </div>
87
93
  </div>
88
94
  <%= decidim_paginate @initiatives %>
@@ -2,7 +2,7 @@
2
2
  <div class="card pt-4">
3
3
  <div class="card-section">
4
4
  <div class="row column">
5
- <%= scopes_select_field form, :decidim_scopes_id, root: nil %>
5
+ <%= scopes_select_field form, :decidim_scopes_id, root: nil, options: { include_blank: t("decidim.scopes.global") } %>
6
6
  </div>
7
7
  <div class="row column">
8
8
  <%= form.number_field :supports_required, min: 1, step: 1 %>
@@ -21,7 +21,7 @@
21
21
  <th class="text-right">
22
22
  <%= t("models.initiatives_type_scope.fields.supports_required", scope: "decidim.admin") %>
23
23
  </th>
24
- <th class="actions"></th>
24
+ <th></th>
25
25
  </tr>
26
26
  </thead>
27
27
  <tbody>
@@ -15,7 +15,7 @@
15
15
  <tr>
16
16
  <th><%= t("models.initiatives_types.fields.title", scope: "decidim.admin") %></th>
17
17
  <th><%= t("models.initiatives_types.fields.created_at", scope: "decidim.admin") %></th>
18
- <th class="actions"><%= t("initiatives_type.actions.title", scope: "decidim.resources") %></th>
18
+ <th><%= t("initiatives_type.actions.title", scope: "decidim.resources") %></th>
19
19
  </tr>
20
20
  </thead>
21
21
  <tbody>
@@ -1,13 +1,12 @@
1
1
  <% add_decidim_meta_tags({
2
- image_url: current_initiative.type.attached_uploader(:banner_image).url,
2
+ image_url: current_initiative.type.attached_uploader(:banner_image).path,
3
3
  description: translated_attribute(current_initiative.description),
4
4
  title: translated_attribute(current_initiative.title),
5
- url: initiative_url(current_initiative.id),
6
- twitter_handler: current_organization.twitter_handler
5
+ url: initiative_url(current_initiative.id)
7
6
  }) %>
8
7
 
9
8
  <% add_decidim_page_title(translated_attribute(current_initiative.title)) %>
10
- <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).url %>
9
+ <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).path %>
11
10
 
12
11
  <%= render layout: "layouts/decidim/shared/layout_center" do %>
13
12
  <div class="text-center py-10">
@@ -19,7 +19,7 @@
19
19
  <%= f.text_field :postal_code, required: true %>
20
20
  </div>
21
21
 
22
- <div class="pb-s">
22
+ <div>
23
23
  <small>
24
24
  <%= strip_tags(translated_attribute(extra_data_legal_information)) %>
25
25
  </small>
@@ -1,4 +1,4 @@
1
- <div class="row collapse buttons__row">
1
+ <div class="row collapse">
2
2
  <div class="column collapse">
3
3
  <%= link_to "#comments", class: "button small compact hollow button--nomargin expanded" do %>
4
4
  <%= icon "chat-1-line", class: "icon--small", role: "img", "aria-hidden": true %>
@@ -18,7 +18,7 @@
18
18
  <% end %>
19
19
  <% else %>
20
20
  <% content_for(:redirect_after_login) { create_initiative_url(:select_initiative_type) } %>
21
- <button type="button" class="title-action__action button button__xl button__secondary w-full" data-dialog-open="loginModal" aria-controls="loginModal" aria-haspopup="dialog" tabindex="0">
21
+ <button type="button" class="button button__xl button__secondary w-full" data-dialog-open="loginModal" aria-controls="loginModal" aria-haspopup="dialog" tabindex="0">
22
22
  <%= t("new_initiative", scope: "decidim.initiatives.initiatives.index_header") %>
23
23
  <%= icon "add-fill" %>
24
24
  </button>
@@ -28,7 +28,7 @@
28
28
  <%= unvote_label %>
29
29
  <% end %>
30
30
  <% else %>
31
- <button class='button button__xl w-full button__secondary success light' disabled>
31
+ <button class='button button__xl w-full button__secondary success' disabled>
32
32
  <%= icon "check-line" %>
33
33
  <%= unvote_label %>
34
34
  </button>
@@ -2,10 +2,10 @@
2
2
  <div class="pt-10">
3
3
  <div class="initiative-letterhead">
4
4
  <% if current_organization.logo.present? %>
5
- <%= image_tag current_organization.attached_uploader(:logo).variant_url(variant: :medium), title: current_organization.name %>
5
+ <%= image_tag current_organization.attached_uploader(:logo).path(variant: :medium), title: current_organization_name %>
6
6
  <% end %>
7
7
 
8
- <%= current_organization.name %>
8
+ <%= current_organization_name %>
9
9
  </div>
10
10
  <h3 class="print-section-title"><%= t "section", scope: "decidim.initiatives.initiatives.print" %></h3>
11
11
  <div class="initiative-print-title">
@@ -1,9 +1,8 @@
1
1
  <% add_decidim_meta_tags({
2
- image_url: current_initiative.type.attached_uploader(:banner_image).url,
2
+ image_url: current_initiative.type.attached_uploader(:banner_image).path,
3
3
  description: translated_attribute(current_initiative.description),
4
4
  title: translated_attribute(current_initiative.title),
5
- url: initiative_url(current_initiative.id),
6
- twitter_handler: current_organization.twitter_handler
5
+ url: initiative_url(current_initiative.id)
7
6
  }) %>
8
7
 
9
8
  <%
@@ -1,10 +1,10 @@
1
1
  <div class="process-header">
2
- <div class="process-header__inner">
3
- <div class="row column process-header__main"
4
- style="background-image:url('<%= current_participatory_space.type.attached_uploader(:banner_image).url %>');">
2
+ <div>
3
+ <div class="row column"
4
+ style="background-image:url('<%= current_participatory_space.type.attached_uploader(:banner_image).path %>');">
5
5
  </div>
6
- <div class="process-header__container row collapse column">
7
- <div class="columns mediumlarge-8 process-header__info">
6
+ <div class="row collapse column">
7
+ <div class="columns">
8
8
  <div>
9
9
  <h1>
10
10
  <%= participatory_space_helpers.translated_attribute(current_participatory_space.title) %>
@@ -13,7 +13,7 @@
13
13
  <div>
14
14
  <p>
15
15
  <% if current_participatory_space.hashtag.present? %>
16
- <span class="process-header__hashtag">
16
+ <span>
17
17
  <%= link_to "##{current_participatory_space.hashtag}", twitter_hashtag_url(current_participatory_space.hashtag), target: "_blank" %>
18
18
  </span>
19
19
  <% end %>
@@ -1,7 +1,7 @@
1
1
  <%= append_javascript_pack_tag "decidim_initiatives" %>
2
2
  <%= append_stylesheet_pack_tag "decidim_initiatives", media: "all" %>
3
3
 
4
- <% provide :meta_image_url, current_participatory_space.type.attached_uploader(:banner_image).url %>
4
+ <% provide :meta_image_url, current_participatory_space.type.attached_uploader(:banner_image).path %>
5
5
 
6
6
  <%= render "layouts/decidim/application" do %>
7
7
  <%= render layout: "layouts/decidim/shared/layout_center" do %>
@@ -10,7 +10,7 @@
10
10
  </main>
11
11
  <% if content_for? :expanded %>
12
12
  <div class="expanded">
13
- <div class="wrapper wrapper--inner">
13
+ <div class="wrapper">
14
14
  <div class="row">
15
15
  <%= yield :expanded %>
16
16
  </div>
@@ -1,7 +1,7 @@
1
1
  <%= append_javascript_pack_tag "decidim_initiatives" %>
2
2
  <%= append_stylesheet_pack_tag "decidim_initiatives", media: "all" %>
3
3
 
4
- <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).url %>
4
+ <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).path %>
5
5
 
6
6
  <%= render partial: "layouts/decidim/header/follow_space_menu_bar_button", locals: { participatory_space: current_participatory_space } %>
7
7
 
@@ -10,14 +10,14 @@
10
10
  #
11
11
  # https://github.com/mileszs/wicked_pdf/blob/master/README.md
12
12
 
13
- WickedPdf.config = {
13
+ WickedPdf.configure do |config|
14
14
  # Path to the wkhtmltopdf executable: This usually is not needed if using
15
15
  # one of the wkhtmltopdf-binary family of gems.
16
- # exe_path: '/usr/local/bin/wkhtmltopdf',
17
16
  # or
18
- exe_path: Gem.bin_path("wkhtmltopdf-binary", "wkhtmltopdf")
17
+ # config.exe_path = '/usr/local/bin/wkhtmltopdf',
18
+ config.exe_path = Gem.bin_path("wkhtmltopdf-binary", "wkhtmltopdf")
19
19
 
20
20
  # Layout file to be used for all PDFs
21
21
  # (but can be overridden in `render :pdf` calls)
22
- # layout: 'pdf.html',
23
- }
22
+ # config.layout = 'pdf.html'
23
+ end
@@ -325,7 +325,6 @@ ar:
325
325
  other: " التوقيعات"
326
326
  vote_cabin:
327
327
  already_voted: وقعت بالفعل
328
- supports_required: "%{total_supports} التوقيعات المطلوبة"
329
328
  verification_required: تحقق من حسابك لتوقيع المبادرة
330
329
  vote: إشارة
331
330
  votes_blocked: توقيع المعوقين
@@ -101,7 +101,7 @@ bg:
101
101
  title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Търсете в %{collection} по заглавие, описание, идент. № или име на автора.
102
102
  initiatives_settings:
103
103
  update:
104
- error: Възникна грешка!
104
+ error: Възникна грешка.
105
105
  success: Настройките на инициативите са актуализирани успешно.
106
106
  menu:
107
107
  attachments: Прикачени файлове
@@ -292,7 +292,6 @@ bg:
292
292
  initiatives_types:
293
293
  create:
294
294
  error: Възникна грешка.
295
- success: Успешно е създаден нов тип инициатива.
296
295
  destroy:
297
296
  success: Типът инициатива беше премахнат успешно.
298
297
  edit:
@@ -540,7 +539,6 @@ bg:
540
539
  other: " подписи"
541
540
  vote_cabin:
542
541
  already_voted: Вече подписани
543
- supports_required: "Необходими са %{total_supports} подписа"
544
542
  verification_required: Потвърдете профила си, за да подпишете инициативата
545
543
  vote: Подписване
546
544
  votes_blocked: Подписването е деактивирано
@@ -237,6 +237,10 @@ ca:
237
237
  most_recent: Més recents
238
238
  exports:
239
239
  initiatives: Iniciatives
240
+ index:
241
+ initiatives_types:
242
+ alert_html: "<p>Has de crear com a mínim un tipus d'iniciativa per tal que les participants puguin començar a crear les seves iniciatives.</p><p>%{link}</p>"
243
+ button: Nou tipus d'iniciativa
240
244
  initiatives:
241
245
  edit:
242
246
  accept: Accepta la iniciativa
@@ -292,7 +296,7 @@ ca:
292
296
  initiatives_types:
293
297
  create:
294
298
  error: S'ha produït un error.
295
- success: S'ha creat correctament un nou tipus d'iniciativa.
299
+ success: S'ha creat amb èxit un nou tipus d'iniciativa. Has de definir com a mínim un àmbit per aquest tipus d'iniciativa perquè es pugui fer servir.
296
300
  destroy:
297
301
  success: S'ha eliminat correctament el tipus d'iniciativa.
298
302
  edit:
@@ -540,7 +544,6 @@ ca:
540
544
  other: " signatures"
541
545
  vote_cabin:
542
546
  already_voted: Ja has signat
543
- supports_required: "Es requereixen %{total_supports} signatures"
544
547
  verification_required: Verifica el teu compte per a signar la iniciativa
545
548
  vote: Signar
546
549
  votes_blocked: S'ha desactivat la signatura
@@ -243,6 +243,9 @@ cs:
243
243
  most_recent: Nejnovější
244
244
  exports:
245
245
  initiatives: Iniciativy
246
+ index:
247
+ initiatives_types:
248
+ button: Nový typ iniciativy
246
249
  initiatives:
247
250
  edit:
248
251
  accept: Přijmout iniciativu
@@ -298,7 +301,7 @@ cs:
298
301
  initiatives_types:
299
302
  create:
300
303
  error: Došlo k chybě.
301
- success: Nový druh iniciativy byl úspěšně vytvořen
304
+ success: Byl úspěšně vytvořen nový typ iniciativy. Musíte definovat alespoň jeden rozsah pro tento typ iniciativy, aby mohl být použit.
302
305
  destroy:
303
306
  success: Druh iniciativy byl úspěšně odstraněn.
304
307
  edit:
@@ -554,7 +557,6 @@ cs:
554
557
  other: " podpisy"
555
558
  vote_cabin:
556
559
  already_voted: Již jste podepsal
557
- supports_required: "Vyžaduje %{total_supports} podpisů"
558
560
  verification_required: Ověřte svůj účet, abyste podepsali iniciativu
559
561
  vote: Podepsat
560
562
  votes_blocked: Podpis zakázán
@@ -101,7 +101,7 @@ de:
101
101
  title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Suche in %{collection} nach Titel, Beschreibung, ID oder Autoren.
102
102
  initiatives_settings:
103
103
  update:
104
- error: Ein Fehler ist aufgetreten.
104
+ error: Es ist ein Fehler aufgetreten.
105
105
  success: Die Einstellungen für Initiativen wurden erfolgreich aktualisiert.
106
106
  menu:
107
107
  attachments: Anhänge
@@ -237,6 +237,10 @@ de:
237
237
  most_recent: Neueste zuerst
238
238
  exports:
239
239
  initiatives: Initiativen
240
+ index:
241
+ initiatives_types:
242
+ alert_html: "<p>Sie müssen mindestens einen Initiativentyp erstellen, damit die Teilnehmenden Initiativen erstellen können.</p><p> %{link}</p>"
243
+ button: Neuer Initiativentyp
240
244
  initiatives:
241
245
  edit:
242
246
  accept: Initiative akzeptieren
@@ -292,7 +296,7 @@ de:
292
296
  initiatives_types:
293
297
  create:
294
298
  error: Ein Fehler ist aufgetreten.
295
- success: Ein neuer Initiativentyp wurde erfolgreich erstellt.
299
+ success: Ein neuer Initiativentyp wurde erfolgreich erstellt. Sie müssen mindestens einen Bereich für diese Initiative festlegen, damit er genutzt werden kann.
296
300
  destroy:
297
301
  success: Der Initiativentyp wurde erfolgreich entfernt.
298
302
  edit:
@@ -540,7 +544,6 @@ de:
540
544
  other: " Signaturen"
541
545
  vote_cabin:
542
546
  already_voted: Schon unterschrieben
543
- supports_required: "%{total_supports} Signaturen erforderlich"
544
547
  verification_required: Bestätigen Sie Ihr Konto, um die Initiative zu unterzeichnen
545
548
  vote: Signieren
546
549
  votes_blocked: Die Anmeldung ist deaktiviert
@@ -331,7 +331,6 @@ el:
331
331
  other: "υπογραφές"
332
332
  vote_cabin:
333
333
  already_voted: Έχει ήδη υπογραφεί
334
- supports_required: "Απαιτούνται %{total_supports} υπογραφές"
335
334
  verification_required: Επαληθεύστε τον λογαριασμό σας για να υπογράψετε την πρωτοβουλία
336
335
  vote: Υπογραφή
337
336
  votes_blocked: Η υπογραφή απενεργοποιήθηκε
@@ -101,7 +101,7 @@ en:
101
101
  title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Search %{collection} by title, description, ID or author name.
102
102
  initiatives_settings:
103
103
  update:
104
- error: An error has occured.
104
+ error: An error has occurred.
105
105
  success: The initiatives settings have been successfully updated.
106
106
  menu:
107
107
  attachments: Attachments
@@ -237,6 +237,10 @@ en:
237
237
  most_recent: Most recent
238
238
  exports:
239
239
  initiatives: Initiatives
240
+ index:
241
+ initiatives_types:
242
+ alert_html: "<p>You must create at least one initiative type so participants can start creating initiatives.</p><p> %{link}</p>"
243
+ button: New initiative type
240
244
  initiatives:
241
245
  edit:
242
246
  accept: Accept initiative
@@ -292,7 +296,7 @@ en:
292
296
  initiatives_types:
293
297
  create:
294
298
  error: An error has occurred.
295
- success: A new initiative type has been successfully created.
299
+ success: A new initiative type has been successfully created. You need to define at least one scope for this initiative type so it can be used.
296
300
  destroy:
297
301
  success: The initiative type has been successfully removed.
298
302
  edit:
@@ -540,7 +544,6 @@ en:
540
544
  other: " signatures"
541
545
  vote_cabin:
542
546
  already_voted: Already signed
543
- supports_required: "%{total_supports} signatures required"
544
547
  verification_required: Verify your account to sign the initiative
545
548
  vote: Sign
546
549
  votes_blocked: Signing disabled
@@ -237,6 +237,10 @@ es-MX:
237
237
  most_recent: Más recientes
238
238
  exports:
239
239
  initiatives: Iniciativas
240
+ index:
241
+ initiatives_types:
242
+ alert_html: "<p>Tienes que crear por lo menos un tipo de iniciativa para que las participantes puedan empezar a crear sus iniciativas.</p><p>%{link}</p>"
243
+ button: Nuevo tipo de iniciativa
240
244
  initiatives:
241
245
  edit:
242
246
  accept: Aceptar iniciativa
@@ -292,7 +296,7 @@ es-MX:
292
296
  initiatives_types:
293
297
  create:
294
298
  error: Se ha producido un error.
295
- success: Se ha creado correctamente un nuevo tipo de iniciativa.
299
+ success: Un nuevo tipo de iniciativa ha sido creado con éxito. Necesitas definir al menos un ámbito para este tipo de iniciativa para que se pueda utilizar.
296
300
  destroy:
297
301
  success: El tipo de iniciativa se ha eliminado correctamente.
298
302
  edit:
@@ -540,7 +544,6 @@ es-MX:
540
544
  other: " firmas"
541
545
  vote_cabin:
542
546
  already_voted: Ha sido firmado
543
- supports_required: "Se requieren %{total_supports} firmas"
544
547
  verification_required: Verifica tu cuenta para firmar la iniciativa.
545
548
  vote: Firmar
546
549
  votes_blocked: Firma desactivada
@@ -237,6 +237,10 @@ es-PY:
237
237
  most_recent: Más recientes
238
238
  exports:
239
239
  initiatives: Iniciativas
240
+ index:
241
+ initiatives_types:
242
+ alert_html: "<p>Tienes que crear por lo menos un tipo de iniciativa para que las participantes puedan empezar a crear sus iniciativas.</p><p>%{link}</p>"
243
+ button: Nuevo tipo de iniciativa
240
244
  initiatives:
241
245
  edit:
242
246
  accept: Aceptar iniciativa
@@ -292,7 +296,7 @@ es-PY:
292
296
  initiatives_types:
293
297
  create:
294
298
  error: Se ha producido un error.
295
- success: Se ha creado correctamente un nuevo tipo de iniciativa.
299
+ success: Un nuevo tipo de iniciativa ha sido creado con éxito. Necesitas definir al menos un ámbito para este tipo de iniciativa para que se pueda utilizar.
296
300
  destroy:
297
301
  success: El tipo de iniciativa se ha eliminado correctamente.
298
302
  edit:
@@ -540,7 +544,6 @@ es-PY:
540
544
  other: " firmas"
541
545
  vote_cabin:
542
546
  already_voted: Ha sido firmado
543
- supports_required: "Se requieren %{total_supports} firmas"
544
547
  verification_required: Verifica tu cuenta para firmar la iniciativa.
545
548
  vote: Firmar
546
549
  votes_blocked: Firma desactivada
@@ -237,6 +237,10 @@ es:
237
237
  most_recent: Más recientes
238
238
  exports:
239
239
  initiatives: Iniciativas
240
+ index:
241
+ initiatives_types:
242
+ alert_html: "<p>Tienes que crear por lo menos un tipo de iniciativa para que las participantes puedan empezar a crear sus iniciativas.</p><p>%{link}</p>"
243
+ button: Nuevo tipo de iniciativa
240
244
  initiatives:
241
245
  edit:
242
246
  accept: Aceptar iniciativa
@@ -292,7 +296,7 @@ es:
292
296
  initiatives_types:
293
297
  create:
294
298
  error: Se ha producido un error.
295
- success: Se ha creado correctamente un nuevo tipo de iniciativa.
299
+ success: Un nuevo tipo de iniciativa ha sido creado con éxito. Necesitas definir al menos un ámbito para este tipo de iniciativa para que se pueda utilizar.
296
300
  destroy:
297
301
  success: El tipo de iniciativa se ha eliminado correctamente.
298
302
  edit:
@@ -540,7 +544,6 @@ es:
540
544
  other: " firmas"
541
545
  vote_cabin:
542
546
  already_voted: Ya has firmado
543
- supports_required: "Se requieren %{total_supports} firmas"
544
547
  verification_required: Verifica tu cuenta para firmar la iniciativa
545
548
  vote: Firmar
546
549
  votes_blocked: Se ha desactivado la firma