decidim-admin 0.4.0 → 0.4.1

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/decidim/admin/_variables.scss +2 -0
  3. data/app/assets/stylesheets/decidim/admin/extra/_cards.scss +6 -0
  4. data/app/assets/stylesheets/decidim/admin/modules/_typography.scss +4 -0
  5. data/app/commands/decidim/admin/create_participatory_process_admin.rb +3 -5
  6. data/app/constraints/decidim/admin/organization_dashboard_constraint.rb +1 -1
  7. data/app/controllers/decidim/admin/application_controller.rb +1 -1
  8. data/app/controllers/decidim/admin/categories_controller.rb +9 -9
  9. data/app/controllers/decidim/admin/concerns/participatory_process_admin.rb +1 -8
  10. data/app/controllers/decidim/admin/exports_controller.rb +2 -2
  11. data/app/controllers/decidim/admin/feature_permissions_controller.rb +2 -2
  12. data/app/controllers/decidim/admin/features/base_controller.rb +0 -5
  13. data/app/controllers/decidim/admin/features_controller.rb +4 -4
  14. data/app/controllers/decidim/admin/moderations_controller.rb +1 -1
  15. data/app/controllers/decidim/admin/participatory_process_attachments_controller.rb +2 -2
  16. data/app/controllers/decidim/admin/participatory_process_copies_controller.rb +3 -9
  17. data/app/controllers/decidim/admin/participatory_process_publications_controller.rb +4 -4
  18. data/app/controllers/decidim/admin/participatory_process_step_activations_controller.rb +2 -2
  19. data/app/controllers/decidim/admin/participatory_process_step_ordering_controller.rb +2 -2
  20. data/app/controllers/decidim/admin/participatory_process_steps_controller.rb +6 -6
  21. data/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +13 -15
  22. data/app/controllers/decidim/admin/participatory_processes_controller.rb +16 -18
  23. data/app/controllers/decidim/admin/users_controller.rb +4 -4
  24. data/app/forms/decidim/admin/participatory_process_user_role_form.rb +2 -2
  25. data/app/models/decidim/admin/abilities/{admin_user.rb → admin_ability.rb} +3 -6
  26. data/app/models/decidim/admin/abilities/{base.rb → base_ability.rb} +1 -4
  27. data/app/models/decidim/admin/abilities/{participatory_process_admin.rb → participatory_process_admin_ability.rb} +18 -28
  28. data/app/models/decidim/admin/abilities/participatory_process_collaborator_ability.rb +19 -0
  29. data/app/models/decidim/admin/abilities/participatory_process_moderator_ability.rb +23 -0
  30. data/app/queries/decidim/admin/process_admins.rb +1 -1
  31. data/app/views/decidim/admin/categories/index.html.erb +9 -9
  32. data/app/views/decidim/admin/categories/new.html.erb +1 -1
  33. data/app/views/decidim/admin/features/_form.html.erb +1 -1
  34. data/app/views/decidim/admin/features/edit.html.erb +1 -1
  35. data/app/views/decidim/admin/features/new.html.erb +1 -1
  36. data/app/views/decidim/admin/participatory_process_copies/new.html.erb +1 -1
  37. data/app/views/decidim/admin/participatory_process_groups/index.html.erb +5 -1
  38. data/app/views/decidim/admin/participatory_process_steps/index.html.erb +9 -9
  39. data/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +6 -6
  40. data/app/views/decidim/admin/participatory_processes/edit.html.erb +6 -6
  41. data/app/views/decidim/admin/participatory_processes/index.html.erb +11 -1
  42. data/app/views/layouts/decidim/admin/participatory_process.html.erb +18 -18
  43. data/config/locales/ca.yml +4 -3
  44. data/config/locales/en.yml +1 -0
  45. data/config/locales/es.yml +1 -2
  46. data/db/migrate/20170714083651_rename_participatory_process_user_roles_table.rb +7 -0
  47. data/lib/decidim/admin/engine.rb +8 -6
  48. data/lib/decidim/admin/test/factories.rb +1 -1
  49. metadata +12 -14
  50. data/app/models/decidim/admin/abilities/collaborator_user.rb +0 -20
  51. data/app/models/decidim/admin/participatory_process_user_role.rb +0 -15
  52. data/app/queries/decidim/admin/manageable_participatory_processes_for_user.rb +0 -42
  53. data/app/queries/decidim/admin/process_admin_roles_for_process.rb +0 -36
  54. data/db/seeds.rb +0 -24
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- if !Rails.env.production? || ENV["SEED"]
4
- staging_organization = Decidim::Organization.order(id: :asc).first
5
-
6
- process_admin = Decidim::User.create!(
7
- name: "Process Admin",
8
- email: "process_admin@example.org",
9
- password: "decidim123456",
10
- password_confirmation: "decidim123456",
11
- confirmed_at: Time.current,
12
- locale: I18n.default_locale,
13
- organization: staging_organization,
14
- tos_agreement: true,
15
- comments_notifications: true,
16
- replies_notifications: true
17
- )
18
-
19
- Decidim::Admin::ParticipatoryProcessUserRole.create!(
20
- user: process_admin,
21
- participatory_process: Decidim::ParticipatoryProcess.order(id: :asc).first,
22
- role: "admin"
23
- )
24
- end