decidim-core 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/decidim_core_manifest.js +1 -0
  3. data/app/assets/javascripts/decidim/notifications.js.es6 +33 -0
  4. data/app/assets/stylesheets/decidim/extras/_meeting-registrations.scss +11 -0
  5. data/app/assets/stylesheets/decidim/modules/_extra.scss +4 -0
  6. data/app/assets/stylesheets/decidim/modules/_process-nav.scss +14 -0
  7. data/app/commands/decidim/create_follow.rb +40 -0
  8. data/app/commands/decidim/create_omniauth_registration.rb +0 -2
  9. data/app/commands/decidim/create_registration.rb +1 -3
  10. data/app/commands/decidim/create_report.rb +7 -7
  11. data/app/commands/decidim/delete_follow.rb +37 -0
  12. data/app/commands/decidim/invite_user.rb +1 -3
  13. data/app/commands/decidim/update_notifications_settings.rb +1 -2
  14. data/app/constraints/decidim/current_feature.rb +3 -4
  15. data/app/controllers/concerns/decidim/settings.rb +1 -1
  16. data/app/controllers/decidim/features/base_controller.rb +5 -6
  17. data/app/controllers/decidim/follows_controller.rb +45 -0
  18. data/app/controllers/decidim/notifications_controller.rb +39 -0
  19. data/app/controllers/decidim/pages_controller.rb +2 -2
  20. data/app/controllers/decidim/scopes_controller.rb +2 -0
  21. data/app/controllers/decidim/widgets_controller.rb +3 -3
  22. data/app/forms/decidim/follow_form.rb +20 -0
  23. data/app/forms/decidim/invite_user_form.rb +1 -1
  24. data/app/forms/decidim/notifications_settings_form.rb +2 -4
  25. data/app/helpers/decidim/action_authorization_helper.rb +2 -1
  26. data/app/helpers/decidim/decidim_form_helper.rb +4 -0
  27. data/app/helpers/decidim/feature_path_helper.rb +2 -13
  28. data/app/helpers/decidim/icon_helper.rb +26 -8
  29. data/app/helpers/decidim/paginate_helper.rb +1 -1
  30. data/app/helpers/decidim/scopes_helper.rb +1 -1
  31. data/app/jobs/decidim/email_notification_generator_job.rb +12 -0
  32. data/app/jobs/decidim/export_job.rb +1 -3
  33. data/app/jobs/decidim/notification_generator_for_recipient_job.rb +14 -0
  34. data/app/jobs/decidim/notification_generator_job.rb +12 -0
  35. data/app/mailers/decidim/export_mailer.rb +6 -7
  36. data/app/mailers/decidim/notification_mailer.rb +20 -0
  37. data/app/mailers/decidim/reported_mailer.rb +3 -3
  38. data/app/models/decidim/abilities/admin_ability.rb +0 -1
  39. data/app/models/decidim/abilities/base_ability.rb +8 -0
  40. data/app/models/decidim/abilities/everyone_ability.rb +0 -2
  41. data/app/models/decidim/abilities/participatory_process_admin_ability.rb +1 -1
  42. data/app/models/decidim/abilities/participatory_process_collaborator_ability.rb +1 -1
  43. data/app/models/decidim/category.rb +4 -4
  44. data/app/models/decidim/feature.rb +29 -4
  45. data/app/models/decidim/follow.rb +10 -0
  46. data/app/models/decidim/moderation.rb +1 -1
  47. data/app/models/decidim/notification.rb +12 -0
  48. data/app/models/decidim/scope.rb +8 -8
  49. data/app/models/decidim/user.rb +11 -1
  50. data/app/presenters/decidim/home_stats_presenter.rb +1 -1
  51. data/app/presenters/decidim/resource_locator_presenter.rb +3 -18
  52. data/app/queries/decidim/participatory_processes_with_user_role.rb +1 -1
  53. data/app/services/decidim/email_notification_generator.rb +63 -0
  54. data/app/services/decidim/events_manager.rb +41 -0
  55. data/app/services/decidim/notification_generator.rb +51 -0
  56. data/app/services/decidim/notification_generator_for_recipient.rb +50 -0
  57. data/app/uploaders/decidim/attachment_uploader.rb +1 -1
  58. data/app/views/decidim/authorizations/first_login.html.erb +2 -2
  59. data/app/views/decidim/follows/update_button.js.erb +3 -0
  60. data/app/views/decidim/notification_mailer/event_received.html.erb +9 -0
  61. data/app/views/decidim/notifications/_notification.html.erb +18 -0
  62. data/app/views/decidim/notifications/index.html.erb +32 -0
  63. data/app/views/decidim/notifications_settings/show.html.erb +3 -10
  64. data/app/views/decidim/shared/_follow_button.html.erb +19 -0
  65. data/app/views/layouts/decidim/_head.html.erb +1 -0
  66. data/app/views/layouts/decidim/_head_extra.html.erb +7 -0
  67. data/app/views/layouts/decidim/_user_menu.html.erb +1 -0
  68. data/app/views/layouts/decidim/_wrapper.html.erb +3 -0
  69. data/app/views/layouts/decidim/widget.html.erb +3 -3
  70. data/app/views/pages/home/_hero.html.erb +1 -1
  71. data/app/views/pages/home/_highlighted_processes.html.erb +3 -3
  72. data/config/locales/ca.yml +29 -74
  73. data/config/locales/en.yml +23 -71
  74. data/config/locales/es.yml +31 -78
  75. data/config/locales/eu.yml +61 -65
  76. data/config/locales/fi.yml +91 -51
  77. data/config/locales/fr.yml +40 -83
  78. data/config/locales/it.yml +129 -54
  79. data/config/locales/nl.yml +90 -51
  80. data/config/locales/pl.yml +319 -10
  81. data/config/locales/uk.yml +400 -0
  82. data/config/routes.rb +8 -14
  83. data/db/migrate/20170720120231_make_moderations_polymorphic.rb +29 -0
  84. data/db/migrate/20170726145242_make_categories_polymorphic.rb +27 -0
  85. data/db/migrate/20170807123535_create_decidim_follows.rb +20 -0
  86. data/db/migrate/20170808071019_create_decidim_notifications.rb +13 -0
  87. data/db/migrate/20170906091718_add_extra_to_notifications.rb +7 -0
  88. data/db/migrate/20170912082054_add_emails_on_notifications_flag_to_user.rb +7 -0
  89. data/db/migrate/20170913092351_add_header_snippets_to_organizations.rb +7 -0
  90. data/db/migrate/20170914075721_remove_followable_index_from_follows.rb +7 -0
  91. data/db/migrate/20170914092116_remove_comment_and_replies_notifications_from_users.rb +8 -0
  92. data/db/seeds.rb +2 -108
  93. data/lib/decidim/core.rb +46 -8
  94. data/lib/decidim/core/engine.rb +20 -6
  95. data/lib/decidim/core/test.rb +3 -0
  96. data/lib/decidim/core/test/factories.rb +37 -75
  97. data/lib/decidim/core/test/shared_examples/comments_examples.rb +0 -26
  98. data/lib/decidim/core/test/shared_examples/follows_examples.rb +37 -0
  99. data/lib/decidim/core/test/shared_examples/manage_moderations_examples.rb +1 -1
  100. data/lib/decidim/core/test/shared_examples/process_announcements_examples.rb +1 -1
  101. data/lib/decidim/core/test/shared_examples/reportable.rb +4 -4
  102. data/lib/decidim/core/test/shared_examples/reports_examples.rb +1 -1
  103. data/lib/decidim/core/test/shared_examples/scope_helper_examples.rb +41 -0
  104. data/lib/decidim/core/test/shared_examples/user_localised_email_examples.rb +25 -0
  105. data/lib/decidim/core/version.rb +1 -1
  106. data/lib/decidim/engine_router.rb +54 -0
  107. data/lib/decidim/events.rb +9 -0
  108. data/lib/decidim/events/base_event.rb +70 -0
  109. data/lib/decidim/events/email_event.rb +39 -0
  110. data/lib/decidim/events/notification_event.rb +32 -0
  111. data/lib/decidim/exporters.rb +7 -0
  112. data/lib/decidim/exporters/export_data.rb +14 -0
  113. data/lib/decidim/feature_manifest.rb +2 -2
  114. data/lib/decidim/features/namer.rb +1 -1
  115. data/lib/decidim/followable.rb +13 -0
  116. data/lib/decidim/form_builder.rb +1 -1
  117. data/lib/decidim/has_feature.rb +1 -1
  118. data/lib/decidim/has_settings.rb +19 -15
  119. data/lib/decidim/manifest_registry.rb +1 -3
  120. data/lib/decidim/participable.rb +80 -0
  121. data/lib/decidim/participatory_space_manifest.rb +40 -0
  122. data/lib/decidim/query_extensions.rb +1 -1
  123. data/lib/decidim/resource_manifest.rb +1 -1
  124. data/lib/decidim/settings_manifest.rb +0 -4
  125. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.uk.js +14 -0
  126. data/vendor/assets/javascripts/morphdom.js +14 -5
  127. metadata +70 -79
  128. data/app/assets/images/decidim/process.svg +0 -10
  129. data/app/constraints/decidim/current_participatory_process.rb +0 -35
  130. data/app/controllers/concerns/decidim/needs_participatory_process.rb +0 -46
  131. data/app/controllers/decidim/participatory_process_groups_controller.rb +0 -26
  132. data/app/controllers/decidim/participatory_process_steps_controller.rb +0 -18
  133. data/app/controllers/decidim/participatory_process_widgets_controller.rb +0 -19
  134. data/app/controllers/decidim/participatory_processes_controller.rb +0 -49
  135. data/app/helpers/decidim/participatory_process_helper.rb +0 -17
  136. data/app/helpers/decidim/participatory_process_steps_helper.rb +0 -18
  137. data/app/models/decidim/participatory_process.rb +0 -61
  138. data/app/models/decidim/participatory_process_group.rb +0 -15
  139. data/app/models/decidim/participatory_process_step.rb +0 -39
  140. data/app/presenters/decidim/participatory_process_stats_presenter.rb +0 -50
  141. data/app/queries/decidim/highlighted_participatory_processes.rb +0 -10
  142. data/app/queries/decidim/organization_participatory_process_groups.rb +0 -14
  143. data/app/queries/decidim/organization_participatory_processes.rb +0 -14
  144. data/app/queries/decidim/organization_prioritized_participatory_processes.rb +0 -18
  145. data/app/queries/decidim/organization_published_participatory_processes.rb +0 -17
  146. data/app/queries/decidim/prioritized_participatory_processes.rb +0 -11
  147. data/app/queries/decidim/promoted_participatory_processes.rb +0 -10
  148. data/app/queries/decidim/published_participatory_processes.rb +0 -10
  149. data/app/views/decidim/participatory_process_groups/_participatory_process_group.html.erb +0 -22
  150. data/app/views/decidim/participatory_process_groups/show.html.erb +0 -11
  151. data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +0 -16
  152. data/app/views/decidim/participatory_process_steps/_timeline.html.erb +0 -7
  153. data/app/views/decidim/participatory_process_steps/index.html.erb +0 -14
  154. data/app/views/decidim/participatory_process_widgets/show.html.erb +0 -17
  155. data/app/views/decidim/participatory_processes/_no_processes_yet.html.erb +0 -3
  156. data/app/views/decidim/participatory_processes/_order_by_processes.html.erb +0 -3
  157. data/app/views/decidim/participatory_processes/_participatory_process.html.erb +0 -28
  158. data/app/views/decidim/participatory_processes/_promoted_process.html.erb +0 -32
  159. data/app/views/decidim/participatory_processes/_statistics.html.erb +0 -10
  160. data/app/views/decidim/participatory_processes/index.html.erb +0 -17
  161. data/app/views/decidim/participatory_processes/show.html.erb +0 -85
  162. data/app/views/layouts/decidim/_process_header.html.erb +0 -65
  163. data/app/views/layouts/decidim/_process_header_steps.html.erb +0 -27
  164. data/app/views/layouts/decidim/participatory_process.html.erb +0 -30
  165. data/config/i18n-tasks.yml +0 -138
  166. data/db/migrate/20161005130108_add_participatory_processes.rb +0 -19
  167. data/db/migrate/20161010102356_translate_processes.rb +0 -17
  168. data/db/migrate/20161011125616_add_hero_image_to_processes.rb +0 -7
  169. data/db/migrate/20161011141033_add_banner_image_to_processes.rb +0 -7
  170. data/db/migrate/20161013134732_add_promoted_flag_to_processes.rb +0 -7
  171. data/db/migrate/20161017085822_add_participatory_process_steps.rb +0 -18
  172. data/db/migrate/20161019072016_add_active_flag_to_step.rb +0 -13
  173. data/db/migrate/20161020080756_add_position_to_steps.rb +0 -9
  174. data/db/migrate/20161025125300_add_published_at_to_processes.rb +0 -7
  175. data/db/migrate/20161107152228_remove_not_null_on_step_position.rb +0 -7
  176. data/db/migrate/20161110092735_add_index_for_process_slug_organization.rb +0 -10
  177. data/db/migrate/20161116115156_create_attachments.rb +0 -18
  178. data/db/migrate/20170116135237_loosen_step_requirements.rb +0 -8
  179. data/db/migrate/20170123134023_make_attachments_polymorphic.rb +0 -20
  180. data/db/migrate/20170125135937_rename_attachable_to_attached_to.rb +0 -13
  181. data/db/migrate/20170126151123_add_extra_info_to_processes.rb +0 -10
  182. data/db/migrate/20170206083118_rename_extra_info_on_processes.rb +0 -14
  183. data/db/migrate/20170220110740_remove_steps_short_description.rb +0 -23
  184. data/db/migrate/20170221094835_add_scopes_to_processes.rb +0 -8
  185. data/db/migrate/20170228142440_add_participatory_process_groups.rb +0 -17
  186. data/db/migrate/20170404132616_change_steps_end_and_start_date_to_date.rb +0 -8
  187. data/db/migrate/20170725085104_add_show_statistics_to_participatory_processes.rb +0 -7
  188. data/db/migrate/20170804125402_attachment_description_nullable.rb +0 -7
  189. data/db/migrate/20170808080905_add_announcement_to_participatory_processes.rb +0 -7
  190. data/db/migrate/20170809084005_add_scopes_enabled_to_participatory_processes.rb +0 -7
  191. data/db/seeds/Exampledocument.pdf +0 -0
  192. data/db/seeds/city.jpeg +0 -0
  193. data/db/seeds/city2.jpeg +0 -0
  194. data/lib/decidim/notifiable.rb +0 -22
@@ -1,17 +1,10 @@
1
1
  <div class="row">
2
2
  <%= form_for(@notifications_settings, url: notifications_settings_path, method: :put, class: "user-form") do |f| %>
3
- <div class="switch tiny switch-with-label comments_notifications">
3
+ <div class="switch tiny switch-with-label email_on_notification">
4
4
  <label>
5
- <%= f.check_box :comments_notifications, label: false, class: "switch-input" %>
5
+ <%= f.check_box :email_on_notification, label: false, class: "switch-input" %>
6
6
  <span class="switch-paddle"></span>
7
- <span class="switch-label"><%= t('.comments_notifications') %></span>
8
- </label>
9
- </div>
10
- <div class="switch tiny switch-with-label replies_notifications">
11
- <label>
12
- <%= f.check_box :replies_notifications, label: false, class: "switch-input" %>
13
- <span class="switch-paddle"></span>
14
- <span class="switch-label"><%= t('.replies_notifications') %></span>
7
+ <span class="switch-label"><%= t('.email_on_notification') %></span>
15
8
  </label>
16
9
  </div>
17
10
  <div class="switch tiny switch-with-label newsletter_notifications">
@@ -0,0 +1,19 @@
1
+ <% if current_user %>
2
+ <div id="follow-resource">
3
+ <% if current_user.follows?(followable) %>
4
+ <%= button_to decidim.follow_path, class: "button secondary hollow expanded small button--icon follow-button", params: { follow: { followable_gid: followable.to_sgid.to_s }}, data: { disable: true }, method: :delete, remote: true do %>
5
+ <%= icon "bell" %>
6
+ <span>
7
+ <%= t("follows.destroy.button", scope: "decidim") %>
8
+ </span>
9
+ <% end %>
10
+ <% else %>
11
+ <%= button_to decidim.follow_path, class: "button secondary hollow expanded small button--icon follow-button", params: { follow: { followable_gid: followable.to_sgid.to_s }}, data: { disable: true }, remote: true do %>
12
+ <%= icon "bell" %>
13
+ <span>
14
+ <%= t("follows.create.button", scope: "decidim") %>
15
+ </span>
16
+ <% end %>
17
+ <% end %>
18
+ </div>
19
+ <% end %>
@@ -22,3 +22,4 @@
22
22
  <%= javascript_include_tag 'application' %>
23
23
 
24
24
  <%= render partial: 'layouts/decidim/head_extra' %>
25
+ <%== current_organization.header_snippets %>
@@ -2,6 +2,13 @@
2
2
  This file is meant to be overriden by the app developers in order to
3
3
  include extra headers like tracking, error handling and such.
4
4
 
5
+ Note that thie code you add here will be run for all organizations in
6
+ your instance of Decidim. If you want to add code for a specific
7
+ organization, add it to the organization's `header_snippets` field,
8
+ which can be modified at the organization admin section.
9
+
10
+ The `header_snippets` organization field will render *after* this file.
11
+
5
12
  Just copy your own version of the file under:
6
13
  `app/views/layouts/decidim/_head_extra.html.erb`
7
14
  %>
@@ -1,4 +1,5 @@
1
1
  <li><%= link_to t(".profile"), decidim.account_path %></li>
2
+ <li><%= link_to t(".notifications"), decidim.notifications_path %></li>
2
3
  <% if can? :read, :admin_dashboard %>
3
4
  <li><%= link_to t(".admin_dashboard"), decidim_admin.root_path %></li>
4
5
  <% end %>
@@ -36,6 +36,9 @@
36
36
  </div>
37
37
  <% if current_user %>
38
38
  <div class="topbar__dropmenu topbar__user__logged">
39
+ <%= link_to decidim.notifications_path, class: "topbar__notifications #{current_user.notifications.any? ? "is-active" : ""}" do %>
40
+ <%= icon "bell" %>
41
+ <% end %>
39
42
  <ul class="dropdown menu" data-dropdown-menu>
40
43
  <li class="is-dropdown-submenu-parent show-for-medium">
41
44
  <%= link_to current_user.name, decidim.account_path %>
@@ -13,15 +13,15 @@
13
13
  <%= content_for(:header) %>
14
14
  <% else %>
15
15
  <div class="participatory-process">
16
- <%= link_to translated_attribute(current_participatory_process.title), decidim.participatory_process_path(current_participatory_process), target: "_blank" %>
16
+ <%= link_to translated_attribute(current_participatory_space.title), polymorphic_path(current_participatory_space), target: "_blank" %>
17
17
  </div>
18
18
  <% end %>
19
19
  <div class="row collapse">
20
20
  <div class="column">
21
21
 
22
22
  <article class="card">
23
- <% if current_participatory_process.banner_image %>
24
- <div class="card__image-top" style="background-image: url(<%= current_participatory_process.banner_image.url %>)"></div>
23
+ <% if current_participatory_space.banner_image %>
24
+ <div class="card__image-top" style="background-image: url(<%= current_participatory_space.banner_image.url %>)"></div>
25
25
  <% end %>
26
26
 
27
27
  <div class="card__content">
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  <div class="row">
15
15
  <div class="columns small-centered small-6 medium-4 mediumlarge-3">
16
- <%= link_to t('.participate'), participatory_processes_path, class: "hero-cta button expanded large button--sc" %>
16
+ <%= link_to t('.participate'), decidim_participatory_processes.participatory_processes_path, class: "hero-cta button expanded large button--sc" %>
17
17
  </div>
18
18
  </div>
19
19
  </div>
@@ -7,12 +7,12 @@
7
7
  <% highlighted_participatory_processes.each do |process| %>
8
8
  <div class="column">
9
9
  <article class="card card--process card--mini">
10
- <%= link_to participatory_process_path(process), class: "card__link" do %>
10
+ <%= link_to decidim_participatory_processes.participatory_process_path(process), class: "card__link" do %>
11
11
  <div class="card__image-top"
12
12
  style="background-image:url(<%= process.hero_image.url %>)"></div>
13
13
  <% end %>
14
14
  <div class="card__content">
15
- <%= link_to participatory_process_path(process), class: "card__link" do %>
15
+ <%= link_to decidim_participatory_processes.participatory_process_path(process), class: "card__link" do %>
16
16
  <h4 class="card__title"><%= translated_attribute process.title %></h4>
17
17
  <% end %>
18
18
  <% if process.active_step %>
@@ -31,7 +31,7 @@
31
31
  <div class="row">
32
32
  <div class="columns small-centered small-12
33
33
  smallmedium-8 medium-6 large-4">
34
- <%= link_to t(".see_all_processes"), participatory_processes_path, class: "button expanded hollow button--sc home-section__cta" %>
34
+ <%= link_to t(".see_all_processes"), decidim_participatory_processes.participatory_processes_path, class: "button expanded hollow button--sc home-section__cta" %>
35
35
  </div>
36
36
  </div>
37
37
  </section>
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ca:
2
3
  activemodel:
3
4
  attributes:
@@ -28,7 +29,7 @@ ca:
28
29
  user_group_phone: Telèfon de l'organització
29
30
  booleans:
30
31
  'false': 'No'
31
- 'true': ''
32
+ 'true': Sí
32
33
  carrierwave:
33
34
  errors:
34
35
  image_too_big: La imatge és massa gran
@@ -126,6 +127,14 @@ ca:
126
127
  back_home: Tornar a l'inici
127
128
  content_doesnt_exist: Aquesta adreça és incorrecta o ha estat eliminada.
128
129
  title: No s'ha trobat la pàgina que busques
130
+ events:
131
+ email_event:
132
+ email_greeting: Hola %{user_name},
133
+ email_intro: 'Hi ha hagut una actualització a "%{resource_title}". Es pot veure en aquesta pàgina:'
134
+ email_outro: Has rebut aquesta notificació perquè que segueixes "%{resource_title}". El pots deixar de seguir al link anterior.
135
+ email_subject: Una actualització a %{resource_title}
136
+ notification_event:
137
+ notification_title: S'ha produït un esdeveniment a <a href="%{resource_path}">%{resource_title}</a>.
129
138
  export_mailer:
130
139
  export:
131
140
  ready: S'adjunta una versió comprimida de l'exportació.
@@ -152,26 +161,32 @@ ca:
152
161
  project: Projectes
153
162
  proposal: propostes
154
163
  result: Resultats
164
+ follows:
165
+ create:
166
+ button: Seguir
167
+ error: Hi ha hagut un error seguint aquest recurs.
168
+ destroy:
169
+ button: Deixar de seguir
170
+ error: Hi ha hagut un error deixar seguint aquest recurs.
155
171
  forms:
156
172
  current_file: Fitxer actual
157
173
  current_image: Imatge actual
158
174
  default_image: Imatge predeterminada
159
175
  errors:
160
176
  error: Hi ha un error en aquest camp.
177
+ remove_this_file: Eliminar aquest arxiu
161
178
  managed_users:
162
179
  expired_session: La sessió de suplantació actual ha caducat.
163
180
  menu:
164
181
  home: Inici
165
182
  more_information: Més informació
166
- processes: Processos
167
183
  newsletter_mailer:
168
184
  newsletter:
169
185
  note: Has rebut aquest missatge perquè estàs subscrit a butlletins de notícies a %{organization_name}. Pots canviar la configuració a la teva <a href="%{link}">pàgina de notificacions</a>.
170
186
  notifications_settings:
171
187
  show:
172
- comments_notifications: Vull rebre notificacions quan algú comenta a les meves publicacions.
188
+ email_on_notification: Vull rebre un correu electrònic cada vegada que rebi una notificació.
173
189
  newsletter_notifications: Vull rebre informació sobre activitat rellevant
174
- replies_notifications: Vull rebre notificacions per correu electrònic quan algú respon als meus comentaris.
175
190
  update_notifications_settings: Guardar canvis
176
191
  update:
177
192
  error: Hi ha hagut un error en actualitzar la configuració de les notificacions.
@@ -184,43 +199,6 @@ ca:
184
199
  pages:
185
200
  index:
186
201
  title: Més informació
187
- participatory_process_groups:
188
- show:
189
- group_participatory_processes: Processos per a %{group}
190
- title: Grup de processos participatius
191
- participatory_process_steps:
192
- index:
193
- process_steps: Fases del procés
194
- title: Fases del procés participatiu
195
- participatory_processes:
196
- index:
197
- title: Processos participatius
198
- participatory_process_groups:
199
- none: cap
200
- scopes:
201
- global: Àmbit global
202
- show:
203
- developer_group: Grup promotor
204
- end_date: Data de finalització
205
- local_area: Àrees municipals
206
- participatory_scope: Àmbit participatiu
207
- participatory_structure: Estructura participativa
208
- scope: Àmbit
209
- target: A qui va dirigit?
210
- statistics:
211
- answers_count: Respostes
212
- comments_count: Comentaris
213
- headline: Activitat
214
- meetings_count: Trobades
215
- orders_count: Vots
216
- pages_count: Pàgines
217
- processes_count: Processos
218
- projects_count: Projectes
219
- proposals_count: Propostes
220
- results_count: Resultats
221
- surveys_count: Enquestes
222
- users_count: Participants
223
- votes_count: Suports
224
202
  reported_mailer:
225
203
  hide:
226
204
  hello: Hola %{name},
@@ -236,8 +214,6 @@ ca:
236
214
  create:
237
215
  error: S'ha produït un error en denunciar. Torna-ho a intentar.
238
216
  success: La denúncia s'ha creat amb èxit i serà revisada per un administrador.
239
- scopes:
240
- global: Àmbit global
241
217
  shared:
242
218
  action_authorization_modal:
243
219
  incomplete:
@@ -293,6 +269,7 @@ ca:
293
269
  El teu compte no es crearà fins que no accedeixis a l'enllaç de sota i triïs la teva contrasenya.
294
270
  invited_you_as_admin: "%{invited_by} t'ha convidat com un administrador de %{application}, pots acceptar-ho mitjançant el següent enllaç."
295
271
  someone_invited_you: Algú t'ha convidat a %{application}, pots acceptar la invitació amb l'enllaç a continuació.
272
+ you_are_now_admin: Ara ets administrador
296
273
  invite_admin:
297
274
  subject: Has estat convidat a gestionar %{organization}
298
275
  invite_collaborator:
@@ -324,11 +301,13 @@ ca:
324
301
  layouts:
325
302
  decidim:
326
303
  cookie_warning:
327
- description_html: "Aquest lloc web fa servir cookies pròpies i de tercers per millorar l’experiència de navegació, i oferir continguts i serveis d’interès.\nEn continuar la navegació entenem que s’accepta la nostra política de cookies. Per a més informació consulta %{link}."
304
+ description_html: |-
305
+ Aquest lloc web fa servir cookies pròpies i de tercers per millorar l’experiència de navegació, i oferir continguts i serveis d’interès.
306
+ En continuar la navegació entenem que s’accepta la nostra política de cookies. Per a més informació consulta %{link}.
328
307
  link_label: aquí
329
308
  ok: Hi estic d'acord
330
309
  footer:
331
- made_with_open_source: 'Web feta amb <a target="_blank" href="https://github.com/decidim/decidim">programari lliure</a>.'
310
+ made_with_open_source: Web feta amb <a target="_blank" href="https://github.com/decidim/decidim">programari lliure</a>.
332
311
  header:
333
312
  close_menu: Tancar menú
334
313
  navigation: Navegació
@@ -338,37 +317,13 @@ ca:
338
317
  close_session: Tanca la sessió
339
318
  description_html: Esteu suplantant l'usuari <b>%{user_name}</b>.
340
319
  expire_time_html: La vostra sessió caducarà en <b><span class="minutes">%{minutes}</span> minutes</b>.
341
- participatory_process_groups:
342
- participatory_process_group:
343
- browse: Explorar
344
- participatory_process_widgets:
345
- show:
346
- active_step: Fase activa
347
- take_part: Participa
348
- participatory_processes:
349
- index:
350
- promoted_processes: Processos destacats
351
- no_processes_yet:
352
- no_processes_yet: Encara no hi ha cap procés participatiu!
353
- order_by_processes:
354
- processes:
355
- one: "%{count} procés"
356
- other: "%{count} processos"
357
- participatory_process:
358
- active_step: 'Fase actual:'
359
- take_part: Participa
360
- promoted_process:
361
- active_step: 'Fase actual:'
362
- more_info: Més informació
363
- take_part: Participa
364
- process_header:
365
- process_menu_item: El procés
366
- unfold: Desplegar
367
- process_header_steps:
368
- step: Fase %{current} de %{total}
369
- view_steps: Veure les fases
320
+ notifications_dashboard:
321
+ mark_all_as_read: Marca tots com a llegits
322
+ no_notifications: Encara no hi ha notificacions.
323
+ title: Notificacions
370
324
  user_menu:
371
325
  admin_dashboard: Tauler d'administració
326
+ notifications: Notificacions
372
327
  profile: El meu compte
373
328
  sign_out: Surt
374
329
  user_profile:
@@ -127,6 +127,14 @@ en:
127
127
  back_home: Back home
128
128
  content_doesnt_exist: This address is incorrect or has been removed.
129
129
  title: The page you're looking for can't be found
130
+ events:
131
+ email_event:
132
+ email_greeting: Hello %{user_name},
133
+ email_intro: 'There has been an update to "%{resource_title}". You can see it from this page:'
134
+ email_outro: You have received this notification because you are following "%{resource_title}". You can unfollow it from the previous link.
135
+ email_subject: An update to %{resource_title}
136
+ notification_event:
137
+ notification_title: An event occured to <a href="%{resource_path}">%{resource_title}</a>.
130
138
  export_mailer:
131
139
  export:
132
140
  ready: Please find attached a zipped version of your export.
@@ -153,26 +161,32 @@ en:
153
161
  project: Projects
154
162
  proposal: Proposals
155
163
  result: Results
164
+ follows:
165
+ create:
166
+ button: Follow
167
+ error: There has been an error following this resource.
168
+ destroy:
169
+ button: Stop following
170
+ error: There has been an error unfollowing this resource.
156
171
  forms:
157
172
  current_file: Current file
158
173
  current_image: Current image
159
174
  default_image: Default image
160
175
  errors:
161
176
  error: There's an error in this field.
177
+ remove_this_file: Remove this file
162
178
  managed_users:
163
179
  expired_session: The current impersonation session has expired.
164
180
  menu:
165
181
  home: Home
166
182
  more_information: More information
167
- processes: Processes
168
183
  newsletter_mailer:
169
184
  newsletter:
170
185
  note: You received this email because you're subscribed to newsletters on %{organization_name}. You can change your settings on your <a href="%{link}">notifications page</a>.
171
186
  notifications_settings:
172
187
  show:
173
- comments_notifications: I want to receive email notifications when someone comments in my publications.
188
+ email_on_notification: I want to receive an email every time I receive a notification.
174
189
  newsletter_notifications: I want to receive information about relevant activity
175
- replies_notifications: I want to receive email notifications when someone replies my comments.
176
190
  update_notifications_settings: Save changes
177
191
  update:
178
192
  error: There's been an error updating your notifications settings.
@@ -185,43 +199,6 @@ en:
185
199
  pages:
186
200
  index:
187
201
  title: More information
188
- participatory_process_groups:
189
- show:
190
- group_participatory_processes: Processes for %{group}
191
- title: Title
192
- participatory_process_steps:
193
- index:
194
- process_steps: Process steps
195
- title: Participatory process steps
196
- participatory_processes:
197
- index:
198
- title: Participatory processes
199
- participatory_process_groups:
200
- none: None
201
- scopes:
202
- global: Global scope
203
- show:
204
- developer_group: Developer group
205
- end_date: End date
206
- local_area: Local area
207
- participatory_scope: Participatory scope
208
- participatory_structure: Participatory structure
209
- scope: Scope
210
- target: Target
211
- statistics:
212
- answers_count: Answers
213
- comments_count: Comments
214
- headline: Activity
215
- meetings_count: Meetings
216
- orders_count: Orders
217
- pages_count: Pages
218
- processes_count: Processes
219
- projects_count: Projects
220
- proposals_count: Proposals
221
- results_count: Results
222
- surveys_count: Surveys
223
- users_count: Participants
224
- votes_count: Votes
225
202
  reported_mailer:
226
203
  hide:
227
204
  hello: Hello %{name},
@@ -237,8 +214,6 @@ en:
237
214
  create:
238
215
  error: An error ocurred while creating the report. Please, try it again.
239
216
  success: The report has been created successfully and it will be reviewed by an admin.
240
- scopes:
241
- global: Global scope
242
217
  shared:
243
218
  action_authorization_modal:
244
219
  incomplete:
@@ -294,6 +269,7 @@ en:
294
269
  Your account won't be created until you access the link above and set your password.
295
270
  invited_you_as_admin: "%{invited_by} has invited you as an admin of %{application}, you can accept it through the link below."
296
271
  someone_invited_you: Someone has invited you to %{application}, you can accept it through the link below.
272
+ you_are_now_admin: You are now an admin
297
273
  invite_admin:
298
274
  subject: You've been invited to manage %{organization}
299
275
  invite_collaborator:
@@ -339,37 +315,13 @@ en:
339
315
  close_session: Close session
340
316
  description_html: You are impersonating the user <b>%{user_name}</b>.
341
317
  expire_time_html: Your session will expire in <b><span class="minutes">%{minutes}</span> minutes</b>.
342
- participatory_process_groups:
343
- participatory_process_group:
344
- browse: Browse
345
- participatory_process_widgets:
346
- show:
347
- active_step: Active step
348
- take_part: Take part
349
- participatory_processes:
350
- index:
351
- promoted_processes: Highlighted processes
352
- no_processes_yet:
353
- no_processes_yet: No participatory processes yet!
354
- order_by_processes:
355
- processes:
356
- one: "%{count} process"
357
- other: "%{count} processes"
358
- participatory_process:
359
- active_step: 'Current step:'
360
- take_part: Take part
361
- promoted_process:
362
- active_step: 'Current step:'
363
- more_info: More info
364
- take_part: Take part
365
- process_header:
366
- process_menu_item: The process
367
- unfold: Unfold
368
- process_header_steps:
369
- step: Step %{current} of %{total}
370
- view_steps: View steps
318
+ notifications_dashboard:
319
+ mark_all_as_read: Mark all as read
320
+ no_notifications: No notifications yet.
321
+ title: Notifications
371
322
  user_menu:
372
323
  admin_dashboard: Admin dashboard
324
+ notifications: Notifications
373
325
  profile: My account
374
326
  sign_out: Sign out
375
327
  user_profile: