decidim-admin 0.11.2 → 0.12.0.pre

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim-admin might be problematic. Click here for more details.

Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim/admin/application.js.es6 +5 -1
  3. data/app/assets/javascripts/decidim/admin/bundle.js +47 -0
  4. data/app/assets/javascripts/decidim/admin/bundle.js.map +1 -0
  5. data/app/assets/javascripts/decidim/admin/component_permissions.js.es6 +13 -0
  6. data/app/assets/javascripts/decidim/admin/managed_users.js.es6 +2 -1
  7. data/app/assets/javascripts/decidim/admin/subform_toggler.component.js.es6 +14 -7
  8. data/app/assets/stylesheets/decidim/admin/_decidim.scss +2 -0
  9. data/app/assets/stylesheets/decidim/admin/bundle.scss +1 -0
  10. data/app/assets/stylesheets/decidim/admin/components/_autocomplete_select.component.scss +13 -0
  11. data/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +3 -2
  12. data/app/assets/stylesheets/decidim/admin/modules/_table-list.scss +7 -0
  13. data/app/commands/decidim/admin/create_static_page.rb +7 -1
  14. data/app/commands/decidim/admin/update_component_permissions.rb +9 -3
  15. data/app/commands/decidim/admin/update_organization_tos_version.rb +47 -0
  16. data/app/commands/decidim/admin/update_static_page.rb +5 -0
  17. data/app/constraints/decidim/admin/organization_dashboard_constraint.rb +6 -3
  18. data/app/controllers/concerns/decidim/admin/participatory_space_admin_context.rb +2 -2
  19. data/app/controllers/decidim/admin/application_controller.rb +14 -5
  20. data/app/controllers/decidim/admin/area_types_controller.rb +6 -6
  21. data/app/controllers/decidim/admin/areas_controller.rb +6 -6
  22. data/app/controllers/decidim/admin/authorization_workflows_controller.rb +1 -1
  23. data/app/controllers/decidim/admin/categories_controller.rb +7 -7
  24. data/app/controllers/decidim/admin/component_permissions_controller.rb +20 -8
  25. data/app/controllers/decidim/admin/components/base_controller.rb +19 -3
  26. data/app/controllers/decidim/admin/components_controller.rb +8 -8
  27. data/app/controllers/decidim/admin/concerns/has_attachment_collections.rb +8 -8
  28. data/app/controllers/decidim/admin/concerns/has_attachments.rb +11 -9
  29. data/app/controllers/decidim/admin/concerns/has_private_users.rb +5 -5
  30. data/app/controllers/decidim/admin/dashboard_controller.rb +4 -2
  31. data/app/controllers/decidim/admin/exports_controller.rb +1 -1
  32. data/app/controllers/decidim/admin/impersonatable_users_controller.rb +7 -1
  33. data/app/controllers/decidim/admin/impersonations_controller.rb +2 -4
  34. data/app/controllers/decidim/admin/logs_controller.rb +4 -2
  35. data/app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb +0 -2
  36. data/app/controllers/decidim/admin/managed_users/promotions_controller.rb +2 -2
  37. data/app/controllers/decidim/admin/moderations_controller.rb +4 -4
  38. data/app/controllers/decidim/admin/newsletters_controller.rb +9 -9
  39. data/app/controllers/decidim/admin/oauth_applications_controller.rb +7 -7
  40. data/app/controllers/decidim/admin/officializations_controller.rb +4 -5
  41. data/app/controllers/decidim/admin/organization_appearance_controller.rb +2 -2
  42. data/app/controllers/decidim/admin/organization_controller.rb +21 -2
  43. data/app/controllers/decidim/admin/scope_types_controller.rb +6 -6
  44. data/app/controllers/decidim/admin/scopes_controller.rb +7 -7
  45. data/app/controllers/decidim/admin/static_pages_controller.rb +16 -7
  46. data/app/controllers/decidim/admin/user_groups_controller.rb +3 -3
  47. data/app/controllers/decidim/admin/users_controller.rb +5 -5
  48. data/app/forms/decidim/admin/managed_user_promotion_form.rb +1 -1
  49. data/app/forms/decidim/admin/permission_form.rb +12 -15
  50. data/app/forms/decidim/admin/static_page_form.rb +1 -0
  51. data/app/frontend/components/autocomplete.component.test.tsx +19 -0
  52. data/app/frontend/components/autocomplete.component.tsx +169 -0
  53. data/app/frontend/entry.ts +17 -0
  54. data/app/frontend/entry_test.ts +4 -0
  55. data/app/helpers/decidim/admin/application_helper.rb +0 -4
  56. data/app/permissions/decidim/admin/permissions.rb +161 -0
  57. data/app/permissions/decidim/admin/user_manager_permissions.rb +66 -0
  58. data/app/views/decidim/admin/area_types/index.html.erb +8 -4
  59. data/app/views/decidim/admin/areas/index.html.erb +6 -3
  60. data/app/views/decidim/admin/attachment_collections/index.html.erb +3 -3
  61. data/app/views/decidim/admin/attachment_collections/show.html.erb +2 -2
  62. data/app/views/decidim/admin/attachments/index.html.erb +3 -3
  63. data/app/views/decidim/admin/attachments/show.html.erb +2 -2
  64. data/app/views/decidim/admin/categories/index.html.erb +5 -5
  65. data/app/views/decidim/admin/categories/show.html.erb +2 -2
  66. data/app/views/decidim/admin/component_permissions/_options_form.html.erb +14 -0
  67. data/app/views/decidim/admin/component_permissions/edit.html.erb +37 -16
  68. data/app/views/decidim/admin/components/_component.html.erb +6 -4
  69. data/app/views/decidim/admin/components/_form.html.erb +6 -6
  70. data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
  71. data/app/views/decidim/admin/impersonatable_users/index.html.erb +5 -3
  72. data/app/views/decidim/admin/moderations/index.html.erb +2 -2
  73. data/app/views/decidim/admin/newsletters/index.html.erb +5 -3
  74. data/app/views/decidim/admin/newsletters/show.html.erb +1 -1
  75. data/app/views/decidim/admin/oauth_applications/index.html.erb +5 -3
  76. data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +3 -3
  77. data/app/views/decidim/admin/scope_types/index.html.erb +5 -3
  78. data/app/views/decidim/admin/scopes/index.html.erb +4 -4
  79. data/app/views/decidim/admin/static_pages/_form.html.erb +3 -1
  80. data/app/views/decidim/admin/static_pages/_form_notable_changes.html.erb +9 -0
  81. data/app/views/decidim/admin/static_pages/index.html.erb +11 -3
  82. data/app/views/decidim/admin/static_pages/show.html.erb +2 -2
  83. data/app/views/decidim/admin/user_groups/index.html.erb +2 -2
  84. data/app/views/decidim/admin/users/index.html.erb +5 -3
  85. data/app/views/layouts/decidim/admin/_application.html.erb +0 -1
  86. data/app/views/layouts/decidim/admin/_template_top.html.erb +1 -0
  87. data/app/views/layouts/decidim/admin/users.html.erb +4 -4
  88. data/config/locales/ca.yml +8 -0
  89. data/config/locales/en.yml +8 -0
  90. data/config/locales/es.yml +8 -0
  91. data/config/locales/eu.yml +8 -0
  92. data/config/locales/fi.yml +8 -0
  93. data/config/locales/fr.yml +8 -0
  94. data/config/locales/gl.yml +8 -0
  95. data/config/locales/it.yml +8 -0
  96. data/config/locales/nl.yml +8 -0
  97. data/config/locales/pl.yml +8 -0
  98. data/config/locales/pt-BR.yml +8 -0
  99. data/config/locales/pt.yml +8 -0
  100. data/config/locales/ru.yml +11 -3
  101. data/config/locales/sv.yml +8 -0
  102. data/config/locales/uk.yml +8 -0
  103. data/config/routes.rb +5 -1
  104. data/lib/decidim/admin.rb +1 -0
  105. data/lib/decidim/admin/engine.rb +17 -20
  106. data/lib/decidim/admin/form_builder.rb +64 -0
  107. data/lib/decidim/admin/test/manage_component_permissions_examples.rb +92 -15
  108. data/lib/decidim/admin/version.rb +1 -1
  109. metadata +25 -17
  110. data/app/models/decidim/admin/abilities/admin_ability.rb +0 -76
  111. data/app/models/decidim/admin/abilities/base_ability.rb +0 -21
  112. data/app/models/decidim/admin/abilities/participatory_process_admin_ability.rb +0 -58
  113. data/app/models/decidim/admin/abilities/participatory_process_collaborator_ability.rb +0 -19
  114. data/app/models/decidim/admin/abilities/participatory_process_moderator_ability.rb +0 -23
  115. data/app/models/decidim/admin/abilities/user_manager_ability.rb +0 -34
  116. data/app/models/decidim/admin/application_record.rb +0 -11
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  </div>
15
15
  <div class="button--double form-general-submit">
16
- <% if can?(:update, @newsletter) && !@newsletter.sent? %>
16
+ <% if allowed_to?(:update, :newsletter, newsletter: @newsletter) && !@newsletter.sent? %>
17
17
  <%= link_to t("actions.edit", scope: "decidim.admin"), ["edit", @newsletter], class: "button" %>
18
18
  <% end %>
19
19
  <% unless @newsletter.sent? %>
@@ -2,7 +2,9 @@
2
2
  <div class="card-divider">
3
3
  <h2 class="card-title">
4
4
  <%= t ".title" %>
5
- <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.oauth_application.name", scope: "decidim.admin").downcase), ["new", "oauth_application"], class: "button tiny button--title new" %>
5
+ <% if allowed_to?(:create, :oauth_application) %>
6
+ <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.oauth_application.name", scope: "decidim.admin").downcase), ["new", "oauth_application"], class: "button tiny button--title new" %>
7
+ <% end %>
6
8
  </h2>
7
9
  </div>
8
10
  <div class="card-section">
@@ -21,11 +23,11 @@
21
23
  <td><%= link_to oauth_application.name, decidim_admin.oauth_application_path(oauth_application) %></td>
22
24
  <td><%= l oauth_application.created_at, format: :long %></td>
23
25
  <td class="table-list__actions">
24
- <% if can?(:update, oauth_application) %>
26
+ <% if allowed_to?(:update, :oauth_application, oauth_application: oauth_application) %>
25
27
  <%= icon_link_to "pencil", decidim_admin.edit_oauth_application_path(oauth_application), t("actions.edit", scope: "decidim.admin"), class: "edit" %>
26
28
  <% end %>
27
29
 
28
- <% if can?(:destroy, oauth_application) %>
30
+ <% if allowed_to?(:destroy, :oauth_application, oauth_application: oauth_application) %>
29
31
  <%= icon_link_to "circle-x", decidim_admin.oauth_application_path(oauth_application), t("actions.destroy", scope: "decidim.admin"), method: :delete, data: { confirm: t(".confirm_delete") }, class: "action-icon--remove" %>
30
32
  <% end %>
31
33
  </td>
@@ -2,7 +2,7 @@
2
2
  <div class="card-divider">
3
3
  <h2 class="card-title">
4
4
  <%= t(".title") %>
5
- <% if can? :create, authorization_object %>
5
+ <% if allowed_to? :create, :space_private_user %>
6
6
  <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_space_private_user.name", scope: "decidim.admin")), url_for(action: :new), class: "button tiny button--title new" %>
7
7
  <% end %>
8
8
  </h2>
@@ -41,11 +41,11 @@
41
41
  <% end %>
42
42
  </td>
43
43
  <td class="table-list__actions">
44
- <% if can?(:invite, private_user) && private_user.user.invited_to_sign_up? %>
44
+ <% if allowed_to?(:invite, :space_private_user, private_user: private_user) && private_user.user.invited_to_sign_up? %>
45
45
  <%= icon_link_to "reload", resend_invitation_participatory_space_private_user_path(current_participatory_space, private_user), t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %>
46
46
  <% end %>
47
47
 
48
- <% if can? :destroy, private_user %>
48
+ <% if allowed_to? :destroy, :space_private_user, private_user: private_user %>
49
49
  <%= icon_link_to "circle-x", participatory_space_private_user_path(current_participatory_space, private_user), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
50
50
  <% end %>
51
51
  </td>
@@ -1,6 +1,8 @@
1
1
  <div class="card">
2
2
  <div class="card-divider">
3
- <h2 class="card-title"><%= t "decidim.admin.titles.scope_types" %> <%= link_to t("actions.add", scope: "decidim.admin"), ["new", "scope_type"], class: "button tiny button--title" %></h2>
3
+ <% if allowed_to? :creste, :scope_type %>
4
+ <h2 class="card-title"><%= t "decidim.admin.titles.scope_types" %> <%= link_to t("actions.add", scope: "decidim.admin"), ["new", "scope_type"], class: "button tiny button--title" %></h2>
5
+ <% end %>
4
6
  </div>
5
7
  <div class="card-section">
6
8
  <div class="table-scroll">
@@ -23,11 +25,11 @@
23
25
  </td>
24
26
  <td class="table-list__actions">
25
27
 
26
- <% if can? :update, scope_type %>
28
+ <% if allowed_to? :update, :scope_type, scope_type: scope_type %>
27
29
  <%= icon_link_to "pencil", ["edit", scope_type], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
28
30
  <% end %>
29
31
 
30
- <% if can? :destroy, scope_type %>
32
+ <% if allowed_to? :destroy, :scope_type, scope_type: scope_type %>
31
33
  <%= icon_link_to "circle-x", scope_type, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
32
34
  <% end %>
33
35
  </td>
@@ -2,9 +2,9 @@
2
2
  <div class="card-divider">
3
3
  <h2 class="card-title">
4
4
  <% if parent_scope %>
5
- <%= scope_breadcrumbs(parent_scope).join(" - ").html_safe %> <%= link_to t("actions.add", scope: "decidim.admin"), new_scope_scope_path(parent_scope), class: "button tiny button--title" %><%= link_to t("actions.edit", scope: "decidim.admin"), edit_scope_path(parent_scope), class: "button tiny button--title" %>
5
+ <%= scope_breadcrumbs(parent_scope).join(" - ").html_safe %> <%= link_to t("actions.add", scope: "decidim.admin"), new_scope_scope_path(parent_scope), class: "button tiny button--title" if allowed_to? :create, :scope %><%= link_to t("actions.edit", scope: "decidim.admin"), edit_scope_path(parent_scope), class: "button tiny button--title" if allowed_to? :edit, :scope, scope: parent_scope %>
6
6
  <% else %>
7
- <%= t "decidim.admin.titles.scopes" %> <%= link_to t("actions.add", scope: "decidim.admin"), new_scope_path, class: "button tiny button--title" %>
7
+ <%= t "decidim.admin.titles.scopes" %> <%= link_to t("actions.add", scope: "decidim.admin"), new_scope_path, class: "button tiny button--title" if allowed_to? :create, :scope %>
8
8
  <% end %>
9
9
  </h2>
10
10
  </div>
@@ -31,11 +31,11 @@
31
31
  <td class="table-list__actions">
32
32
  <%= icon_link_to "zoom-in", scope_scopes_path(scope), t("actions.browse", scope: "decidim.admin"), class: "action-icon--browse", method: :get, data: {} %>
33
33
 
34
- <% if can? :update, scope %>
34
+ <% if allowed_to? :update, :scope, scope: scope %>
35
35
  <%= icon_link_to "pencil", ["edit", scope], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
36
36
  <% end %>
37
37
 
38
- <% if can? :destroy, scope %>
38
+ <% if allowed_to? :destroy, :scope, scope: scope %>
39
39
  <%= icon_link_to "circle-x", scope, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
40
40
  <% end %>
41
41
  </td>
@@ -2,7 +2,7 @@
2
2
  <%= form.translated :text_field, :title, autofocus: true %>
3
3
  </div>
4
4
 
5
- <% if can? :update_slug, form.object %>
5
+ <% if allowed_to? :update_slug, :static_page, static_page: form.object %>
6
6
  <div class="row column">
7
7
  <%= form.text_field :slug %>
8
8
  </div>
@@ -11,3 +11,5 @@
11
11
  <div class="row column">
12
12
  <%= form.translated :editor, :content, toolbar: :full, lines: 25 %>
13
13
  </div>
14
+
15
+ <%= render partial: "form_notable_changes", locals: { form: form } %>
@@ -0,0 +1,9 @@
1
+ <% if allowed_to? :update_notable_changes, :static_page, static_page: form.object %>
2
+ <div class="row column">
3
+ <%= form.check_box :changed_notably, value: false, help_text: t("changed_notably_help", scope: "decidim.admin.static_pages.edit") %>
4
+
5
+ <div class="callout secondary">
6
+ <%= t("last_notable_change", scope: "decidim.admin.static_pages.index") %>: <%= @tos_version_formatted %>
7
+ </div>
8
+ </div>
9
+ <% end %>
@@ -1,6 +1,8 @@
1
1
  <div class="card">
2
2
  <div class="card-divider">
3
- <h2 class="card-title"><%= t "decidim.admin.titles.static_pages" %> <%= link_to t("static_pages.new.create", scope: "decidim.admin"), ["new", "static_page"], class: "button tiny button--title new" %></h2>
3
+ <% if allowed_to? :create, :static_page %>
4
+ <h2 class="card-title"><%= t "decidim.admin.titles.static_pages" %> <%= link_to t("static_pages.new.create", scope: "decidim.admin"), ["new", "static_page"], class: "button tiny button--title new" %></h2>
5
+ <% end %>
4
6
  </div>
5
7
  <div class="card-section">
6
8
  <div class="table-scroll">
@@ -9,6 +11,7 @@
9
11
  <tr>
10
12
  <th><%= t("models.static_page.fields.title", scope: "decidim.admin") %></th>
11
13
  <th><%= t("models.static_page.fields.created_at", scope: "decidim.admin") %></th>
14
+ <th><%= t("last_notable_change", scope: "decidim.admin.static_pages.index") %></th>
12
15
  <th></th>
13
16
  </tr>
14
17
  </thead>
@@ -21,14 +24,19 @@
21
24
  <td>
22
25
  <%= l page.created_at, format: :short %>
23
26
  </td>
27
+ <td>
28
+ <% if allowed_to? :update_notable_changes, :static_page, static_page: page %>
29
+ <%= @tos_version_formatted %>
30
+ <% end %>
31
+ </td>
24
32
  <td class="table-list__actions">
25
- <% if can? :update, page %>
33
+ <% if allowed_to? :update, :static_page, static_page: page %>
26
34
  <%= icon_link_to "pencil", ["edit", page], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
27
35
  <% end %>
28
36
 
29
37
  <%= icon_link_to "eye", decidim.page_path(page), t("actions.view", scope: "decidim.admin.static_pages"), class: "action-icon--preview" %>
30
38
 
31
- <% if can? :destroy, page %>
39
+ <% if allowed_to? :destroy, :static_page, static_page: page %>
32
40
  <%= icon_link_to "circle-x", page, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
33
41
  <% end %>
34
42
  </td>
@@ -4,11 +4,11 @@
4
4
 
5
5
  <div class="actions">
6
6
  <hr />
7
- <% if can? :update, @page %>
7
+ <% if allowed_to? :update, :static_page, static_page: @page %>
8
8
  <%= link_to t("decidim.admin.actions.edit"), ["edit", @page] %>
9
9
  <% end %>
10
10
 
11
- <% if can? :destroy, @page %>
11
+ <% if allowed_to? :destroy, :static_page, static_page: @page %>
12
12
  <%= link_to t("decidim.admin.actions.destroy"), @page, method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } %>
13
13
  <% end %>
14
14
  </div>
@@ -74,7 +74,7 @@
74
74
  <% end %>
75
75
  </td>
76
76
  <td class="table-list__actions">
77
- <% if can?(:verify, user_group) %>
77
+ <% if allowed_to?(:verify, :user_group, user_group: user_group) %>
78
78
  <% if !user_group.verified? %>
79
79
  <%= icon_link_to "circle-check", decidim_admin.verify_user_group_path(user_group), t("actions.verify", scope: "decidim.admin"), method: :put, class: "action-icon--verify" %>
80
80
  <% else %>
@@ -82,7 +82,7 @@
82
82
  <% end %>
83
83
  <% end %>
84
84
 
85
- <% if can?(:reject, user_group) %>
85
+ <% if allowed_to?(:reject, :user_group, user_group: user_group) %>
86
86
  <% if !user_group.rejected? %>
87
87
  <%= icon_link_to "circle-x", decidim_admin.reject_user_group_path(user_group), t("actions.reject", scope: "decidim.admin"), method: :put, class: "action-icon--reject" %>
88
88
  <% else %>
@@ -2,7 +2,9 @@
2
2
  <div class="card-divider">
3
3
  <h2 class="card-title">
4
4
  <%= t "decidim.admin.titles.users" %>
5
- <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.user.name", scope: "decidim.admin")), ["new", "user"], class: "button tiny button--title" %>
5
+ <% if allowed_to? :create, :admin_user %>
6
+ <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.user.name", scope: "decidim.admin")), ["new", "user"], class: "button tiny button--title" %>
7
+ <% end %>
6
8
  </h2>
7
9
  </div>
8
10
  <div class="card-section">
@@ -43,11 +45,11 @@
43
45
  </td>
44
46
  <td><%= l user.created_at, format: :short %></td>
45
47
  <td class="table-list__actions">
46
- <% if can?(:invite, user) && user.invited_to_sign_up? %>
48
+ <% if allowed_to?(:invite, :admin_user, user: user) && user.invited_to_sign_up? %>
47
49
  <%= icon_link_to "reload", ["resend_invitation", user], t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %>
48
50
  <% end %>
49
51
 
50
- <% if can? :destroy, user %>
52
+ <% if allowed_to? :destroy, :admin_user, user: user %>
51
53
  <%= icon_link_to "circle-x", user, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
52
54
  <% end %>
53
55
  </td>
@@ -18,7 +18,6 @@
18
18
  <%= yield :secondary_nav if content_for? :secondary_nav %>
19
19
  </div>
20
20
  <div class="layout-content">
21
- <%= render partial: "layouts/decidim/admin/callouts_full" %>
22
21
  <div class="container">
23
22
  <%= yield %>
24
23
  </div>
@@ -1,3 +1,4 @@
1
1
  <%= render partial: "layouts/decidim/admin/title_bar" %>
2
+ <%= render partial: "layouts/decidim/admin/callouts_full" %>
2
3
  <main class="main">
3
4
  <div class="layout-wrapper">
@@ -4,22 +4,22 @@
4
4
  <%= t ".title" %>
5
5
  </div>
6
6
  <ul>
7
- <% if can? :index, Decidim::User %>
7
+ <% if allowed_to? :read, :admin_user %>
8
8
  <li <% if is_active_link?(decidim_admin.users_path) %> class="is-active" <% end %>>
9
9
  <%= link_to t("menu.admins", scope: "decidim.admin"), decidim_admin.users_path %>
10
10
  </li>
11
11
  <% end %>
12
- <% if can? :index, Decidim::UserGroup %>
12
+ <% if allowed_to? :index, :user_group %>
13
13
  <li <% if is_active_link?(decidim_admin.user_groups_path) %> class="is-active" <% end %>>
14
14
  <%= link_to t("menu.user_groups", scope: "decidim.admin"), decidim_admin.user_groups_path %>
15
15
  </li>
16
16
  <% end %>
17
- <% if can? :index, :officializations %>
17
+ <% if allowed_to? :index, :officialization %>
18
18
  <li <% if is_active_link?(decidim_admin.officializations_path) %> class="is-active" <% end %>>
19
19
  <%= link_to t("menu.officializations", scope: "decidim.admin"), decidim_admin.officializations_path %>
20
20
  </li>
21
21
  <% end %>
22
- <% if can? :index, :impersonatable_users %>
22
+ <% if allowed_to? :index, :impersonatable_user %>
23
23
  <li <% if is_active_link?(decidim_admin.impersonatable_users_path) %> class="is-active" <% end %>>
24
24
  <%= link_to t("menu.impersonations", scope: "decidim.admin"), decidim_admin.impersonatable_users_path %>
25
25
  </li>
@@ -64,6 +64,7 @@ ca:
64
64
  omnipresent_banner_url: URL
65
65
  reference_prefix: Prefix de referència
66
66
  show_statistics: Mostra estadístiques
67
+ tos_version: Versió del Termes de Servei
67
68
  twitter_handler: Nom d'usuari de Twitter
68
69
  welcome_text: Text de benvinguda
69
70
  youtube_handler: Nom d'usuari de YouTube
@@ -79,6 +80,7 @@ ca:
79
80
  organization: Organització
80
81
  plural: Plural
81
82
  static_page:
83
+ changed_notably: S'han produït canvis notables.
82
84
  content: Contingut
83
85
  organization: Organització
84
86
  slug: Nom curt d'URL
@@ -210,6 +212,9 @@ ca:
210
212
  update:
211
213
  error: S'ha produït un error en actualitzar aquest arxiu adjunt.
212
214
  success: Adjunt actualitzat correctament.
215
+ autocomplete:
216
+ no_results: No s'ha trobat resultats
217
+ search_prompt: Escriu com a mínim tres caràcters per cercar
213
218
  categories:
214
219
  create:
215
220
  error: S'ha produït un error en crear aquesta categoria.
@@ -571,8 +576,11 @@ ca:
571
576
  destroy:
572
577
  success: La pàgina s'ha eliminat correctament.
573
578
  edit:
579
+ changed_notably_help: Si està marcada, els usuaris seran notificats per acceptar els nous termes i condicions.
574
580
  title: Editar pàgina
575
581
  update: Actualitzar
582
+ index:
583
+ last_notable_change: Últims canvis notables
576
584
  new:
577
585
  create: Crea
578
586
  title: Nova pàgina
@@ -65,6 +65,7 @@ en:
65
65
  omnipresent_banner_url: URL
66
66
  reference_prefix: Reference prefix
67
67
  show_statistics: Show statistics
68
+ tos_version: Terms of service version
68
69
  twitter_handler: Twitter handler
69
70
  welcome_text: Welcome text
70
71
  youtube_handler: YouTube handler
@@ -80,6 +81,7 @@ en:
80
81
  organization: Organization
81
82
  plural: Plural
82
83
  static_page:
84
+ changed_notably: There have been noticeable changes.
83
85
  content: Content
84
86
  organization: Organization
85
87
  slug: URL slug
@@ -211,6 +213,9 @@ en:
211
213
  update:
212
214
  error: There was an error when updating this attachment.
213
215
  success: Attachment updated successfully.
216
+ autocomplete:
217
+ no_results: No results found
218
+ search_prompt: Type at least three characters to search
214
219
  categories:
215
220
  create:
216
221
  error: There was an error creating this category.
@@ -572,8 +577,11 @@ en:
572
577
  destroy:
573
578
  success: Page successfully destroyed
574
579
  edit:
580
+ changed_notably_help: If checked, users will be notified to accept the new terms and conditions.
575
581
  title: Edit page
576
582
  update: Update
583
+ index:
584
+ last_notable_change: Last notable change
577
585
  new:
578
586
  create: Create
579
587
  title: New page
@@ -64,6 +64,7 @@ es:
64
64
  omnipresent_banner_url: URL
65
65
  reference_prefix: Prefijo de la referencia
66
66
  show_statistics: Mostrar estadísticas
67
+ tos_version: Versión de los Términos de Servicio
67
68
  twitter_handler: Nombre de Twitter
68
69
  welcome_text: Texto de bienvenida
69
70
  youtube_handler: Nombre de YouTube
@@ -79,6 +80,7 @@ es:
79
80
  organization: Organización
80
81
  plural: Plural
81
82
  static_page:
83
+ changed_notably: Ha habido cambios notables.
82
84
  content: Contenido
83
85
  organization: Organización
84
86
  slug: Texto corto de URL
@@ -210,6 +212,9 @@ es:
210
212
  update:
211
213
  error: Se ha producido un error al actualizar este archivo adjunto.
212
214
  success: Adjunto actualizado correctamente.
215
+ autocomplete:
216
+ no_results: No se han encontrado resultados
217
+ search_prompt: Escriba al menos tres caracteres para buscar
213
218
  categories:
214
219
  create:
215
220
  error: Se ha producido un error al crear esta categoría.
@@ -571,8 +576,11 @@ es:
571
576
  destroy:
572
577
  success: La página se ha eliminado correctamente.
573
578
  edit:
579
+ changed_notably_help: Si se marca, se notificará a los usuarios que acepten los nuevos Términos y Condiciones.
574
580
  title: Editar página
575
581
  update: Actualizar
582
+ index:
583
+ last_notable_change: Último cambio notable
576
584
  new:
577
585
  create: Crear
578
586
  title: Nueva página
@@ -64,6 +64,7 @@ eu:
64
64
  omnipresent_banner_url: URL
65
65
  reference_prefix: Erreferentzia-aurrizkia
66
66
  show_statistics: Erakutsi estatistikak
67
+ tos_version: Zerbitzu-baldintzak bertsioa
67
68
  twitter_handler: Twitter kudeatzailea
68
69
  welcome_text: Ongietorri testua
69
70
  youtube_handler: YouTube kudeatzailea
@@ -79,6 +80,7 @@ eu:
79
80
  organization: Erakundea
80
81
  plural: Anitza
81
82
  static_page:
83
+ changed_notably: Aldaketa nabarmenak izan dira.
82
84
  content: Edukia
83
85
  organization: Erakundea
84
86
  slug: URL laburra
@@ -210,6 +212,9 @@ eu:
210
212
  update:
211
213
  error: Errorea gertatu da fitxategi erantsi bat eguneratzean.
212
214
  success: Fitxategi erantsia zuzen eguneratu da.
215
+ autocomplete:
216
+ no_results: Ez da emaitzarik aurkitu
217
+ search_prompt: Idatzi bilaketak gutxienez hiru karaktere
213
218
  categories:
214
219
  create:
215
220
  error: Errorea gertatu da kategoria hau sortzean.
@@ -571,8 +576,11 @@ eu:
571
576
  destroy:
572
577
  success: Orria zuzen ezabatu da.
573
578
  edit:
579
+ changed_notably_help: Egiaztatuta badago, erabiltzaileei jakinaraziko zaie baldintza eta baldintza berriak onartzeko.
574
580
  title: Editatu orria
575
581
  update: Eguneratu
582
+ index:
583
+ last_notable_change: Azken aldaketa nabaria
576
584
  new:
577
585
  create: Sortu
578
586
  title: Orri berria
@@ -64,6 +64,7 @@ fi:
64
64
  omnipresent_banner_url: URL-
65
65
  reference_prefix: Viitteen etuliite
66
66
  show_statistics: Näytä tilastot
67
+ tos_version: Käyttöehdot versio
67
68
  twitter_handler: Twitter käsittelijä
68
69
  welcome_text: Tervetulotoivotus
69
70
  youtube_handler: YouTube-käsittelijä
@@ -79,6 +80,7 @@ fi:
79
80
  organization: Organisaatio
80
81
  plural: Monikko
81
82
  static_page:
83
+ changed_notably: On tapahtunut huomattavia muutoksia.
82
84
  content: Sisältö
83
85
  organization: Organisaatio
84
86
  slug: URL-tunniste
@@ -210,6 +212,9 @@ fi:
210
212
  update:
211
213
  error: Tämän liitteen päivityksessä tapahtui virhe.
212
214
  success: Liite luotu onnistuneesti.
215
+ autocomplete:
216
+ no_results: Ei tuloksia
217
+ search_prompt: Kirjoita vähintään kolme merkkiä etsimään
213
218
  categories:
214
219
  create:
215
220
  error: Tämän aihepiirin luonnissa tapahtui virhe.
@@ -571,8 +576,11 @@ fi:
571
576
  destroy:
572
577
  success: Sivu tuhottu onnistuneesti
573
578
  edit:
579
+ changed_notably_help: Jos tarkistat, käyttäjät ilmoitetaan hyväksymään uudet ehdot.
574
580
  title: Muokkaa sivua
575
581
  update: Päivitä
582
+ index:
583
+ last_notable_change: Viimeinen huomattava muutos
576
584
  new:
577
585
  create: Luo
578
586
  title: Uusi sivu