decidim-admin 0.5.1 → 0.6.0

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 (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -7
  3. data/app/assets/javascripts/decidim/admin/application.js.es6 +0 -1
  4. data/app/assets/stylesheets/decidim/admin/extra/_quill.scss +5 -0
  5. data/app/commands/decidim/admin/create_category.rb +4 -4
  6. data/app/commands/decidim/admin/create_feature.rb +7 -7
  7. data/app/commands/decidim/admin/create_managed_user.rb +0 -2
  8. data/app/commands/decidim/admin/update_organization.rb +1 -0
  9. data/app/controllers/decidim/admin/application_controller.rb +0 -2
  10. data/app/controllers/decidim/admin/categories_controller.rb +10 -10
  11. data/app/controllers/decidim/admin/exports_controller.rb +1 -2
  12. data/app/controllers/decidim/admin/feature_permissions_controller.rb +2 -3
  13. data/app/controllers/decidim/admin/features/base_controller.rb +9 -3
  14. data/app/controllers/decidim/admin/features_controller.rb +5 -7
  15. data/app/controllers/decidim/admin/moderations_controller.rb +5 -7
  16. data/app/controllers/decidim/admin/scopes_controller.rb +12 -10
  17. data/app/controllers/decidim/admin/users_controller.rb +1 -3
  18. data/app/forms/decidim/admin/category_form.rb +2 -2
  19. data/app/forms/decidim/admin/feature_form.rb +1 -18
  20. data/app/forms/decidim/admin/organization_form.rb +1 -0
  21. data/app/helpers/decidim/admin/exports_helper.rb +10 -0
  22. data/app/models/decidim/admin/abilities/admin_ability.rb +0 -3
  23. data/app/models/decidim/admin/abilities/participatory_process_admin_ability.rb +3 -3
  24. data/app/views/decidim/admin/attachments/edit.html.erb +1 -1
  25. data/app/views/decidim/admin/attachments/new.html.erb +1 -1
  26. data/app/views/decidim/admin/categories/edit.html.erb +2 -2
  27. data/app/views/decidim/admin/categories/index.html.erb +11 -11
  28. data/app/views/decidim/admin/categories/new.html.erb +3 -3
  29. data/app/views/decidim/admin/categories/show.html.erb +2 -2
  30. data/app/views/decidim/admin/exports/_dropdown.html.erb +1 -1
  31. data/app/views/decidim/admin/features/_form.html.erb +15 -15
  32. data/app/views/decidim/admin/features/edit.html.erb +1 -1
  33. data/app/views/decidim/admin/features/new.html.erb +1 -1
  34. data/app/views/decidim/admin/moderations/index.html.erb +2 -2
  35. data/app/views/decidim/admin/organization/_form.html.erb +5 -0
  36. data/app/views/decidim/admin/users/index.html.erb +1 -1
  37. data/config/locales/ca.yml +8 -195
  38. data/config/locales/en.yml +6 -197
  39. data/config/locales/es.yml +11 -198
  40. data/config/locales/eu.yml +95 -208
  41. data/config/locales/fi.yml +168 -123
  42. data/config/locales/fr.yml +114 -191
  43. data/config/locales/it.yml +150 -168
  44. data/config/locales/nl.yml +443 -0
  45. data/config/locales/pl.yml +444 -0
  46. data/config/locales/uk.yml +451 -0
  47. data/config/routes.rb +2 -46
  48. data/lib/decidim/admin/engine.rb +0 -14
  49. data/lib/decidim/admin/test/commands/create_category_examples.rb +62 -0
  50. data/lib/decidim/admin/test/commands/destroy_category_examples.rb +46 -0
  51. data/lib/decidim/admin/test/commands/update_category_examples.rb +65 -0
  52. data/lib/decidim/admin/test/forms/category_form_examples.rb +90 -0
  53. data/lib/decidim/admin/test/manage_attachments_examples.rb +2 -2
  54. data/lib/decidim/admin/test/manage_feature_permissions_examples.rb +41 -0
  55. metadata +27 -64
  56. data/app/assets/javascripts/decidim/admin/participatory_processes.js.es6 +0 -12
  57. data/app/commands/decidim/admin/activate_participatory_process_step.rb +0 -44
  58. data/app/commands/decidim/admin/copy_participatory_process.rb +0 -113
  59. data/app/commands/decidim/admin/create_participatory_process.rb +0 -78
  60. data/app/commands/decidim/admin/create_participatory_process_admin.rb +0 -93
  61. data/app/commands/decidim/admin/create_participatory_process_group.rb +0 -55
  62. data/app/commands/decidim/admin/create_participatory_process_step.rb +0 -47
  63. data/app/commands/decidim/admin/deactivate_participatory_process_step.rb +0 -36
  64. data/app/commands/decidim/admin/destroy_participatory_process_step.rb +0 -44
  65. data/app/commands/decidim/admin/publish_participatory_process.rb +0 -32
  66. data/app/commands/decidim/admin/reorder_participatory_process_steps.rb +0 -52
  67. data/app/commands/decidim/admin/unpublish_participatory_process.rb +0 -32
  68. data/app/commands/decidim/admin/update_participatory_process.rb +0 -74
  69. data/app/commands/decidim/admin/update_participatory_process_admin.rb +0 -41
  70. data/app/commands/decidim/admin/update_participatory_process_group.rb +0 -58
  71. data/app/commands/decidim/admin/update_participatory_process_step.rb +0 -49
  72. data/app/controllers/decidim/admin/concerns/participatory_process_admin.rb +0 -20
  73. data/app/controllers/decidim/admin/participatory_process_attachments_controller.rb +0 -25
  74. data/app/controllers/decidim/admin/participatory_process_copies_controller.rb +0 -33
  75. data/app/controllers/decidim/admin/participatory_process_groups_controller.rb +0 -86
  76. data/app/controllers/decidim/admin/participatory_process_publications_controller.rb +0 -43
  77. data/app/controllers/decidim/admin/participatory_process_step_activations_controller.rb +0 -37
  78. data/app/controllers/decidim/admin/participatory_process_step_ordering_controller.rb +0 -27
  79. data/app/controllers/decidim/admin/participatory_process_steps_controller.rb +0 -89
  80. data/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +0 -97
  81. data/app/controllers/decidim/admin/participatory_processes_controller.rb +0 -96
  82. data/app/forms/decidim/admin/participatory_process_copy_form.rb +0 -33
  83. data/app/forms/decidim/admin/participatory_process_form.rb +0 -69
  84. data/app/forms/decidim/admin/participatory_process_group_form.rb +0 -24
  85. data/app/forms/decidim/admin/participatory_process_step_form.rb +0 -35
  86. data/app/forms/decidim/admin/participatory_process_user_role_form.rb +0 -29
  87. data/app/helpers/decidim/admin/process_groups_for_select_helper.rb +0 -21
  88. data/app/helpers/decidim/admin/processes_for_select_helper.rb +0 -23
  89. data/app/queries/decidim/admin/process_admins.rb +0 -44
  90. data/app/views/decidim/admin/participatory_process_copies/_form.html.erb +0 -38
  91. data/app/views/decidim/admin/participatory_process_copies/new.html.erb +0 -7
  92. data/app/views/decidim/admin/participatory_process_groups/_form.html.erb +0 -17
  93. data/app/views/decidim/admin/participatory_process_groups/edit.html.erb +0 -19
  94. data/app/views/decidim/admin/participatory_process_groups/index.html.erb +0 -44
  95. data/app/views/decidim/admin/participatory_process_groups/new.html.erb +0 -13
  96. data/app/views/decidim/admin/participatory_process_groups/show.html.erb +0 -23
  97. data/app/views/decidim/admin/participatory_process_steps/_form.html.erb +0 -25
  98. data/app/views/decidim/admin/participatory_process_steps/edit.html.erb +0 -8
  99. data/app/views/decidim/admin/participatory_process_steps/index.html.erb +0 -63
  100. data/app/views/decidim/admin/participatory_process_steps/new.html.erb +0 -7
  101. data/app/views/decidim/admin/participatory_process_steps/show.html.erb +0 -18
  102. data/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +0 -22
  103. data/app/views/decidim/admin/participatory_process_user_roles/edit.html.erb +0 -7
  104. data/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +0 -65
  105. data/app/views/decidim/admin/participatory_process_user_roles/new.html.erb +0 -7
  106. data/app/views/decidim/admin/participatory_processes/_form.html.erb +0 -101
  107. data/app/views/decidim/admin/participatory_processes/edit.html.erb +0 -19
  108. data/app/views/decidim/admin/participatory_processes/index.html.erb +0 -66
  109. data/app/views/decidim/admin/participatory_processes/new.html.erb +0 -11
  110. data/app/views/layouts/decidim/admin/participatory_process.html.erb +0 -64
  111. data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +0 -14
  112. data/app/views/layouts/decidim/admin/participatory_processes.html.erb +0 -14
  113. data/config/i18n-tasks.yml +0 -132
@@ -1,14 +0,0 @@
1
- <% content_for :secondary_nav do %>
2
- <div class="secondary-nav">
3
- <div class="secondary-nav__title">
4
- <%= t "decidim.admin.titles.participatory_process_groups" %>
5
- </div>
6
- <div class="secondary-nav__actions">
7
- <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process_group.name", scope: "decidim.admin")), ['new', 'participatory_process_group'], class: 'button expanded small new' if can? :create, Decidim::ParticipatoryProcessGroup %>
8
- </div>
9
- </div>
10
- <% end %>
11
-
12
- <%= render "layouts/decidim/admin/application" do %>
13
- <%= yield %>
14
- <% end %>
@@ -1,14 +0,0 @@
1
- <% content_for :secondary_nav do %>
2
- <div class="secondary-nav">
3
- <div class="secondary-nav__title">
4
- <%= t "decidim.admin.titles.participatory_processes" %>
5
- </div>
6
- <div class="secondary-nav__actions">
7
- <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process.name", scope: "decidim.admin")), ['new', 'participatory_process'], class: 'button expanded small' if can? :create, Decidim::ParticipatoryProcess %>
8
- </div>
9
- </div>
10
- <% end %>
11
-
12
- <%= render "layouts/decidim/admin/application" do %>
13
- <%= yield %>
14
- <% end %>
@@ -1,132 +0,0 @@
1
- # i18n-tasks finds and manages missing and unused translations: https://github.com/glebm/i18n-tasks
2
-
3
- # The "main" locale.
4
- base_locale: en
5
-
6
- ## Reporting locale, default: en. Available: en, ru.
7
- # internal_locale: en
8
-
9
- # Read and write translations.
10
- data:
11
- ## Translations are read from the file system. Supported format: YAML, JSON.
12
- ## Provide a custom adapter:
13
- # adapter: I18n::Tasks::Data::FileSystem
14
-
15
- # Locale files or `File.find` patterns where translations are read from:
16
- read:
17
- ## Default:
18
- # - config/locales/%{locale}.yml
19
- ## More files:
20
- # - config/locales/**/*.%{locale}.yml
21
- ## Another gem (replace %#= with %=):
22
- # - "<%#= %x[bundle show vagrant].chomp %>/templates/locales/%{locale}.yml"
23
-
24
- # Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
25
- # `i18n-tasks normalize -p` will force move the keys according to these rules
26
- write:
27
- ## For example, write devise and simple form keys to their respective files:
28
- # - ['{devise, simple_form}.*', 'config/locales/\1.%{locale}.yml']
29
- ## Catch-all default:
30
- # - config/locales/%{locale}.yml
31
-
32
- ## Specify the router (see Readme for details). Valid values: conservative_router, pattern_router, or a custom class.
33
- # router: convervative_router
34
-
35
- yaml:
36
- write:
37
- # do not wrap lines at 80 characters
38
- line_width: -1
39
-
40
- ## Pretty-print JSON:
41
- # json:
42
- # write:
43
- # indent: ' '
44
- # space: ' '
45
- # object_nl: "\n"
46
- # array_nl: "\n"
47
-
48
- # Find translate calls
49
- search:
50
- # Paths or `File.find` patterns to search in:
51
- paths:
52
- - app/
53
- - lib/
54
-
55
- ## Root directories for relative keys resolution.
56
- # relative_roots:
57
- # - app/controllers
58
- # - app/helpers
59
- # - app/mailers
60
- # - app/presenters
61
- # - app/views
62
-
63
- ## Files or `File.fnmatch` patterns to exclude from search. Some files are always excluded regardless of this setting:
64
- ## %w(*.jpg *.png *.gif *.svg *.ico *.eot *.otf *.ttf *.woff *.woff2 *.pdf *.css *.sass *.scss *.less *.yml *.json)
65
- exclude:
66
- - app/assets/images
67
- - app/assets/fonts
68
-
69
- ## Alternatively, the only files or `File.fnmatch patterns` to search in `paths`:
70
- ## If specified, this settings takes priority over `exclude`, but `exclude` still applies.
71
- # only: ["*.rb", "*.html.slim"]
72
-
73
- ## If `strict` is `false`, guess usages such as t("categories.#{category}.title"). The default is `true`.
74
- strict: false
75
-
76
- ## Multiple scanners can be used. Their results are merged.
77
- ## The options specified above are passed down to each scanner. Per-scanner options can be specified as well.
78
- ## See this example of a custom scanner: https://github.com/glebm/i18n-tasks/wiki/A-custom-scanner-example
79
-
80
- ## Google Translate
81
- # translation:
82
- # # Get an API key and set billing info at https://code.google.com/apis/console to use Google Translate
83
- # api_key: "AbC-dEf5"
84
-
85
- ## Do not consider these keys missing:
86
- ignore_missing:
87
- # - 'errors.messages.{accepted,blank,invalid,too_short,too_long}'
88
- # - '{devise,simple_form}.*'
89
- - decidim.scopes.global
90
- - locale.name
91
- - forms.required
92
-
93
- ## Consider these keys used:
94
- ignore_unused:
95
- - activerecord.attributes.*
96
- - activemodel.attributes.*
97
- - decidim.admin.participatory_process_steps.default_title
98
- - decidim.admin.models.user.fields.roles.*
99
- - activemodel.errors.messages.*
100
- - actions.confirm_destroy
101
- - time.formats.*
102
- - date.formats.*
103
- - forms.*
104
-
105
- # - '{devise,kaminari,will_paginate}.*'
106
- # - 'simple_form.{yes,no}'
107
- # - 'simple_form.{placeholders,hints,labels}.*'
108
- # - 'simple_form.{error_notification,required}.:'
109
-
110
- ## Exclude these keys from the `i18n-tasks eq-base' report:
111
- # ignore_eq_base:
112
- # all:
113
- # - common.ok
114
- # fr,es:
115
- # - common.brand
116
-
117
- ## Ignore these keys completely:
118
- # ignore:
119
- # - kaminari.*
120
-
121
- ## Sometimes, it isn't possible for i18n-tasks to match the key correctly,
122
- ## e.g. in case of a relative key defined in a helper method.
123
- ## In these cases you can use the built-in PatternMapper to map patterns to keys, e.g.:
124
- #
125
- # <%#= I18n::Tasks.add_scanner 'I18n::Tasks::Scanners::PatternMapper',
126
- # only: %w(*.html.haml *.html.slim),
127
- # patterns: [['= title\b', '.page_title']] %>
128
- #
129
- # The PatternMapper can also match key literals via a special %{key} interpolation, e.g.:
130
- #
131
- # <%#= I18n::Tasks.add_scanner 'I18n::Tasks::Scanners::PatternMapper',
132
- # patterns: [['\bSpree\.t[( ]\s*%{key}', 'spree.%{key}']] %>