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.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/decidim/admin/_variables.scss +2 -0
- data/app/assets/stylesheets/decidim/admin/extra/_cards.scss +6 -0
- data/app/assets/stylesheets/decidim/admin/modules/_typography.scss +4 -0
- data/app/commands/decidim/admin/create_participatory_process_admin.rb +3 -5
- data/app/constraints/decidim/admin/organization_dashboard_constraint.rb +1 -1
- data/app/controllers/decidim/admin/application_controller.rb +1 -1
- data/app/controllers/decidim/admin/categories_controller.rb +9 -9
- data/app/controllers/decidim/admin/concerns/participatory_process_admin.rb +1 -8
- data/app/controllers/decidim/admin/exports_controller.rb +2 -2
- data/app/controllers/decidim/admin/feature_permissions_controller.rb +2 -2
- data/app/controllers/decidim/admin/features/base_controller.rb +0 -5
- data/app/controllers/decidim/admin/features_controller.rb +4 -4
- data/app/controllers/decidim/admin/moderations_controller.rb +1 -1
- data/app/controllers/decidim/admin/participatory_process_attachments_controller.rb +2 -2
- data/app/controllers/decidim/admin/participatory_process_copies_controller.rb +3 -9
- data/app/controllers/decidim/admin/participatory_process_publications_controller.rb +4 -4
- data/app/controllers/decidim/admin/participatory_process_step_activations_controller.rb +2 -2
- data/app/controllers/decidim/admin/participatory_process_step_ordering_controller.rb +2 -2
- data/app/controllers/decidim/admin/participatory_process_steps_controller.rb +6 -6
- data/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +13 -15
- data/app/controllers/decidim/admin/participatory_processes_controller.rb +16 -18
- data/app/controllers/decidim/admin/users_controller.rb +4 -4
- data/app/forms/decidim/admin/participatory_process_user_role_form.rb +2 -2
- data/app/models/decidim/admin/abilities/{admin_user.rb → admin_ability.rb} +3 -6
- data/app/models/decidim/admin/abilities/{base.rb → base_ability.rb} +1 -4
- data/app/models/decidim/admin/abilities/{participatory_process_admin.rb → participatory_process_admin_ability.rb} +18 -28
- data/app/models/decidim/admin/abilities/participatory_process_collaborator_ability.rb +19 -0
- data/app/models/decidim/admin/abilities/participatory_process_moderator_ability.rb +23 -0
- data/app/queries/decidim/admin/process_admins.rb +1 -1
- data/app/views/decidim/admin/categories/index.html.erb +9 -9
- data/app/views/decidim/admin/categories/new.html.erb +1 -1
- data/app/views/decidim/admin/features/_form.html.erb +1 -1
- data/app/views/decidim/admin/features/edit.html.erb +1 -1
- data/app/views/decidim/admin/features/new.html.erb +1 -1
- data/app/views/decidim/admin/participatory_process_copies/new.html.erb +1 -1
- data/app/views/decidim/admin/participatory_process_groups/index.html.erb +5 -1
- data/app/views/decidim/admin/participatory_process_steps/index.html.erb +9 -9
- data/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +6 -6
- data/app/views/decidim/admin/participatory_processes/edit.html.erb +6 -6
- data/app/views/decidim/admin/participatory_processes/index.html.erb +11 -1
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +18 -18
- data/config/locales/ca.yml +4 -3
- data/config/locales/en.yml +1 -0
- data/config/locales/es.yml +1 -2
- data/db/migrate/20170714083651_rename_participatory_process_user_roles_table.rb +7 -0
- data/lib/decidim/admin/engine.rb +8 -6
- data/lib/decidim/admin/test/factories.rb +1 -1
- metadata +12 -14
- data/app/models/decidim/admin/abilities/collaborator_user.rb +0 -20
- data/app/models/decidim/admin/participatory_process_user_role.rb +0 -15
- data/app/queries/decidim/admin/manageable_participatory_processes_for_user.rb +0 -42
- data/app/queries/decidim/admin/process_admin_roles_for_process.rb +0 -36
- data/db/seeds.rb +0 -24
data/db/seeds.rb
DELETED
@@ -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
|