decidim-admin 0.1.0 → 0.2.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.
- checksums.yaml +4 -4
- data/Rakefile +1 -0
- data/app/assets/stylesheets/decidim/admin/application.scss.erb +6 -0
- data/app/assets/stylesheets/decidim/admin/extra/_action-icon.scss +1 -0
- data/app/assets/stylesheets/decidim/admin/extra/_dropdown_inverted.scss +38 -0
- data/app/commands/decidim/admin/activate_participatory_process_step.rb +1 -0
- data/app/commands/decidim/admin/copy_participatory_process.rb +113 -0
- data/app/commands/decidim/admin/create_attachment.rb +1 -0
- data/app/commands/decidim/admin/create_category.rb +1 -0
- data/app/commands/decidim/admin/create_feature.rb +1 -0
- data/app/commands/decidim/admin/create_newsletter.rb +1 -0
- data/app/commands/decidim/admin/create_participatory_process.rb +1 -0
- data/app/commands/decidim/admin/create_participatory_process_admin.rb +1 -0
- data/app/commands/decidim/admin/create_participatory_process_group.rb +1 -0
- data/app/commands/decidim/admin/create_participatory_process_step.rb +1 -0
- data/app/commands/decidim/admin/create_scope.rb +1 -0
- data/app/commands/decidim/admin/create_static_page.rb +1 -0
- data/app/commands/decidim/admin/deactivate_participatory_process_step.rb +1 -0
- data/app/commands/decidim/admin/deliver_newsletter.rb +1 -0
- data/app/commands/decidim/admin/destroy_category.rb +1 -0
- data/app/commands/decidim/admin/destroy_feature.rb +1 -0
- data/app/commands/decidim/admin/destroy_participatory_process_step.rb +1 -0
- data/app/commands/decidim/admin/hide_resource.rb +1 -0
- data/app/commands/decidim/admin/publish_participatory_process.rb +1 -0
- data/app/commands/decidim/admin/reject_user_group.rb +33 -0
- data/app/commands/decidim/admin/reorder_participatory_process_steps.rb +1 -0
- data/app/commands/decidim/admin/unpublish_participatory_process.rb +1 -0
- data/app/commands/decidim/admin/unreport_resource.rb +1 -0
- data/app/commands/decidim/admin/update_attachment.rb +1 -0
- data/app/commands/decidim/admin/update_category.rb +1 -0
- data/app/commands/decidim/admin/update_feature.rb +1 -0
- data/app/commands/decidim/admin/update_feature_permissions.rb +1 -0
- data/app/commands/decidim/admin/update_newsletter.rb +1 -0
- data/app/commands/decidim/admin/update_organization.rb +1 -0
- data/app/commands/decidim/admin/update_participatory_process.rb +1 -0
- data/app/commands/decidim/admin/update_participatory_process_admin.rb +1 -0
- data/app/commands/decidim/admin/update_participatory_process_group.rb +1 -0
- data/app/commands/decidim/admin/update_participatory_process_step.rb +1 -0
- data/app/commands/decidim/admin/update_scope.rb +1 -0
- data/app/commands/decidim/admin/update_static_page.rb +1 -0
- data/app/commands/decidim/admin/update_user_groups.rb +44 -0
- data/app/commands/decidim/admin/verify_user_group.rb +32 -0
- data/app/constraints/decidim/admin/organization_dashboard_constraint.rb +1 -0
- data/app/controllers/decidim/admin/application_controller.rb +2 -2
- data/app/controllers/decidim/admin/categories_controller.rb +1 -0
- data/app/controllers/decidim/admin/concerns/has_attachments.rb +1 -0
- data/app/controllers/decidim/admin/concerns/participatory_process_admin.rb +1 -0
- data/app/controllers/decidim/admin/dashboard_controller.rb +1 -0
- data/app/controllers/decidim/admin/exports_controller.rb +39 -0
- data/app/controllers/decidim/admin/feature_permissions_controller.rb +1 -0
- data/app/controllers/decidim/admin/features/base_controller.rb +3 -0
- data/app/controllers/decidim/admin/features_controller.rb +1 -0
- data/app/controllers/decidim/admin/moderations_controller.rb +1 -0
- data/app/controllers/decidim/admin/organization_controller.rb +1 -0
- data/app/controllers/decidim/admin/participatory_process_attachments_controller.rb +1 -0
- data/app/controllers/decidim/admin/participatory_process_copies_controller.rb +47 -0
- data/app/controllers/decidim/admin/participatory_process_groups_controller.rb +1 -0
- data/app/controllers/decidim/admin/participatory_process_publications_controller.rb +1 -0
- data/app/controllers/decidim/admin/participatory_process_step_activations_controller.rb +1 -0
- data/app/controllers/decidim/admin/participatory_process_step_ordering_controller.rb +1 -0
- data/app/controllers/decidim/admin/participatory_process_steps_controller.rb +1 -0
- data/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +1 -0
- data/app/controllers/decidim/admin/participatory_processes_controller.rb +5 -0
- data/app/controllers/decidim/admin/scopes_controller.rb +1 -0
- data/app/controllers/decidim/admin/static_pages_controller.rb +1 -0
- data/app/controllers/decidim/admin/user_groups_controller.rb +32 -4
- data/app/controllers/decidim/admin/users_controller.rb +1 -0
- data/app/forms/decidim/admin/attachment_form.rb +1 -0
- data/app/forms/decidim/admin/category_form.rb +1 -0
- data/app/forms/decidim/admin/feature_form.rb +1 -0
- data/app/forms/decidim/admin/newsletter_form.rb +1 -0
- data/app/forms/decidim/admin/organization_form.rb +1 -0
- data/app/forms/decidim/admin/participatory_process_copy_form.rb +34 -0
- data/app/forms/decidim/admin/participatory_process_form.rb +1 -0
- data/app/forms/decidim/admin/participatory_process_group_form.rb +1 -0
- data/app/forms/decidim/admin/participatory_process_step_form.rb +1 -0
- data/app/forms/decidim/admin/participatory_process_user_role_form.rb +1 -0
- data/app/forms/decidim/admin/permission_form.rb +1 -0
- data/app/forms/decidim/admin/permissions_form.rb +1 -0
- data/app/forms/decidim/admin/scope_form.rb +1 -0
- data/app/forms/decidim/admin/static_page_form.rb +1 -0
- data/app/helpers/decidim/admin/application_helper.rb +1 -8
- data/app/helpers/decidim/admin/attributes_display_helper.rb +1 -0
- data/app/helpers/decidim/admin/exports_helper.rb +18 -0
- data/app/helpers/decidim/admin/feature_settings_helper.rb +1 -0
- data/app/helpers/decidim/admin/icon_link_helper.rb +1 -0
- data/app/helpers/decidim/admin/menu_helper.rb +18 -0
- data/app/helpers/decidim/admin/process_groups_for_select_helper.rb +1 -0
- data/app/helpers/decidim/admin/processes_for_select_helper.rb +1 -0
- data/app/jobs/decidim/admin/application_job.rb +1 -0
- data/app/jobs/decidim/admin/newsletter_delivery_job.rb +1 -0
- data/app/jobs/decidim/admin/newsletter_job.rb +1 -0
- data/app/mailers/decidim/admin/application_mailer.rb +1 -0
- data/app/models/decidim/admin/abilities/admin_user.rb +2 -1
- data/app/models/decidim/admin/abilities/base.rb +1 -0
- data/app/models/decidim/admin/abilities/collaborator_user.rb +1 -0
- data/app/models/decidim/admin/abilities/participatory_process_admin.rb +1 -0
- data/app/models/decidim/admin/application_record.rb +1 -0
- data/app/models/decidim/admin/participatory_process_user_role.rb +3 -2
- data/app/queries/decidim/admin/manageable_participatory_processes_for_user.rb +1 -0
- data/app/queries/decidim/admin/process_admin_roles_for_process.rb +1 -0
- data/app/queries/decidim/admin/process_admins.rb +1 -0
- data/app/queries/decidim/admin/user_groups_evaluation.rb +54 -0
- data/app/views/decidim/admin/exports/_dropdown.html.erb +10 -0
- data/app/views/decidim/admin/participatory_process_copies/_form.html.erb +38 -0
- data/app/views/decidim/admin/participatory_process_copies/new.html.erb +7 -0
- data/app/views/decidim/admin/participatory_processes/index.html.erb +2 -0
- data/app/views/decidim/admin/scopes/new.html.erb +0 -1
- data/app/views/decidim/admin/user_groups/index.html.erb +67 -5
- data/app/views/layouts/decidim/admin/_application.html.erb +1 -1
- data/app/views/layouts/decidim/admin/_title_bar.html.erb +1 -1
- data/config/i18n-tasks.yml +6 -6
- data/config/locales/ca.yml +36 -2
- data/config/locales/en.yml +36 -2
- data/config/locales/es.yml +37 -3
- data/config/locales/eu.yml +41 -3
- data/config/locales/fi.yml +0 -3
- data/config/locales/fr.yml +0 -3
- data/config/routes.rb +4 -0
- data/db/seeds.rb +1 -0
- data/lib/decidim/admin.rb +1 -0
- data/lib/decidim/admin/engine.rb +51 -0
- data/lib/decidim/admin/features.rb +1 -0
- data/lib/decidim/admin/test/factories.rb +1 -0
- data/lib/decidim/admin/test/manage_attachments_examples.rb +1 -0
- metadata +21 -24
- data/app/assets/stylesheets/decidim/admin/application.scss +0 -2
- data/app/assets/stylesheets/decidim/admin/extra/_sidebar.scss +0 -102
- data/app/views/layouts/decidim/admin/_language_chooser.html.erb +0 -14
- data/app/views/layouts/decidim/admin/_main_nav.html.erb +0 -11
data/config/locales/fi.yml
CHANGED
data/config/locales/fr.yml
CHANGED
@@ -468,9 +468,6 @@ fr:
|
|
468
468
|
static_pages: Pages
|
469
469
|
user_groups: Groupes d'utilisateurs
|
470
470
|
users: Utilisateurs
|
471
|
-
user_groups:
|
472
|
-
verify:
|
473
|
-
success: Le groupe d'utilisateurs a été vérifié avec succès.
|
474
471
|
users:
|
475
472
|
create:
|
476
473
|
error: Une erreur s'est produite lors de l'invitation de cet utilisateur.
|
data/config/routes.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
Decidim::Admin::Engine.routes.draw do
|
3
4
|
constraints(->(request) { Decidim::Admin::OrganizationDashboardConstraint.new(request).matches? }) do
|
4
5
|
resource :organization, only: [:edit, :update], controller: "organization"
|
5
6
|
resources :participatory_process_groups
|
6
7
|
resources :participatory_processes do
|
7
8
|
resource :publish, controller: "participatory_process_publications", only: [:create, :destroy]
|
9
|
+
resources :copies, controller: "participatory_process_copies", only: [:new, :create]
|
8
10
|
|
9
11
|
resources :categories
|
10
12
|
|
@@ -23,6 +25,7 @@ Decidim::Admin::Engine.routes.draw do
|
|
23
25
|
put :publish
|
24
26
|
put :unpublish
|
25
27
|
end
|
28
|
+
resources :exports, only: :create
|
26
29
|
end
|
27
30
|
|
28
31
|
resources :moderations do
|
@@ -63,6 +66,7 @@ Decidim::Admin::Engine.routes.draw do
|
|
63
66
|
resources :user_groups, only: [:index] do
|
64
67
|
member do
|
65
68
|
put :verify
|
69
|
+
put :reject
|
66
70
|
end
|
67
71
|
end
|
68
72
|
|
data/db/seeds.rb
CHANGED
data/lib/decidim/admin.rb
CHANGED
data/lib/decidim/admin/engine.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require "rails"
|
3
4
|
require "active_support/all"
|
4
5
|
|
@@ -37,6 +38,56 @@ module Decidim
|
|
37
38
|
config.abilities += ["Decidim::Admin::Abilities::CollaboratorUser"]
|
38
39
|
end
|
39
40
|
end
|
41
|
+
|
42
|
+
initializer "decidim_admin.menu" do
|
43
|
+
Decidim.menu :admin_menu do |menu|
|
44
|
+
menu.item I18n.t("menu.dashboard", scope: "decidim.admin"),
|
45
|
+
decidim_admin.root_path,
|
46
|
+
icon_name: "dashboard",
|
47
|
+
position: 1,
|
48
|
+
active: ["decidim/admin/dashboard" => :show]
|
49
|
+
|
50
|
+
menu.item I18n.t("menu.participatory_processes", scope: "decidim.admin"),
|
51
|
+
decidim_admin.participatory_processes_path,
|
52
|
+
icon_name: "target",
|
53
|
+
position: 2,
|
54
|
+
active: :inclusive
|
55
|
+
|
56
|
+
menu.item I18n.t("menu.participatory_process_groups", scope: "decidim.admin"),
|
57
|
+
decidim_admin.participatory_process_groups_path,
|
58
|
+
icon_name: "layers",
|
59
|
+
position: 3,
|
60
|
+
active: :inclusive
|
61
|
+
|
62
|
+
menu.item I18n.t("menu.static_pages", scope: "decidim.admin"),
|
63
|
+
decidim_admin.static_pages_path,
|
64
|
+
icon_name: "book",
|
65
|
+
position: 4,
|
66
|
+
active: :inclusive,
|
67
|
+
if: can?(:read, Decidim::StaticPage)
|
68
|
+
|
69
|
+
menu.item I18n.t("menu.users", scope: "decidim.admin"),
|
70
|
+
decidim_admin.users_path,
|
71
|
+
icon_name: "person",
|
72
|
+
position: 5,
|
73
|
+
active: [%w(decidim/admin/user_groups decidim/admin/users), []],
|
74
|
+
if: can?(:read, :admin_users)
|
75
|
+
|
76
|
+
menu.item I18n.t("menu.newsletters", scope: "decidim.admin"),
|
77
|
+
decidim_admin.newsletters_path,
|
78
|
+
icon_name: "envelope-closed",
|
79
|
+
position: 6,
|
80
|
+
active: :inclusive,
|
81
|
+
if: can?(:index, Decidim::Newsletter)
|
82
|
+
|
83
|
+
menu.item I18n.t("menu.settings", scope: "decidim.admin"),
|
84
|
+
decidim_admin.edit_organization_path,
|
85
|
+
icon_name: "wrench",
|
86
|
+
position: 7,
|
87
|
+
active: [%w(decidim/admin/organization decidim/admin/scopes), []],
|
88
|
+
if: can?(:read, current_organization)
|
89
|
+
end
|
90
|
+
end
|
40
91
|
end
|
41
92
|
end
|
42
93
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-06-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
28
|
+
version: 0.2.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rails
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,34 +152,20 @@ dependencies:
|
|
152
152
|
- - "~>"
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: 1.0.0
|
155
|
-
- !ruby/object:Gem::Dependency
|
156
|
-
name: carrierwave
|
157
|
-
requirement: !ruby/object:Gem::Requirement
|
158
|
-
requirements:
|
159
|
-
- - "~>"
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
version: 1.0.0.rc
|
162
|
-
type: :runtime
|
163
|
-
prerelease: false
|
164
|
-
version_requirements: !ruby/object:Gem::Requirement
|
165
|
-
requirements:
|
166
|
-
- - "~>"
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
version: 1.0.0.rc
|
169
155
|
- !ruby/object:Gem::Dependency
|
170
156
|
name: decidim-dev
|
171
157
|
requirement: !ruby/object:Gem::Requirement
|
172
158
|
requirements:
|
173
159
|
- - '='
|
174
160
|
- !ruby/object:Gem::Version
|
175
|
-
version: 0.
|
161
|
+
version: 0.2.0
|
176
162
|
type: :development
|
177
163
|
prerelease: false
|
178
164
|
version_requirements: !ruby/object:Gem::Requirement
|
179
165
|
requirements:
|
180
166
|
- - '='
|
181
167
|
- !ruby/object:Gem::Version
|
182
|
-
version: 0.
|
168
|
+
version: 0.2.0
|
183
169
|
description: Organization administration to manage a single organization.
|
184
170
|
email:
|
185
171
|
- josepjaume@gmail.com
|
@@ -198,15 +184,15 @@ files:
|
|
198
184
|
- app/assets/javascripts/decidim/admin/toggle_nav.js.es6
|
199
185
|
- app/assets/stylesheets/decidim/admin/_decidim.scss
|
200
186
|
- app/assets/stylesheets/decidim/admin/_variables.scss
|
201
|
-
- app/assets/stylesheets/decidim/admin/application.scss
|
187
|
+
- app/assets/stylesheets/decidim/admin/application.scss.erb
|
202
188
|
- app/assets/stylesheets/decidim/admin/extra/_action-icon.scss
|
203
189
|
- app/assets/stylesheets/decidim/admin/extra/_cards.scss
|
204
190
|
- app/assets/stylesheets/decidim/admin/extra/_categories.scss
|
191
|
+
- app/assets/stylesheets/decidim/admin/extra/_dropdown_inverted.scss
|
205
192
|
- app/assets/stylesheets/decidim/admin/extra/_editor.scss
|
206
193
|
- app/assets/stylesheets/decidim/admin/extra/_email_preview.scss
|
207
194
|
- app/assets/stylesheets/decidim/admin/extra/_login.scss
|
208
195
|
- app/assets/stylesheets/decidim/admin/extra/_select_multiple.scss
|
209
|
-
- app/assets/stylesheets/decidim/admin/extra/_sidebar.scss
|
210
196
|
- app/assets/stylesheets/decidim/admin/extra/_title_bar.scss
|
211
197
|
- app/assets/stylesheets/decidim/admin/modules/_action-icon.scss
|
212
198
|
- app/assets/stylesheets/decidim/admin/modules/_buttons.scss
|
@@ -257,6 +243,7 @@ files:
|
|
257
243
|
- app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss
|
258
244
|
- app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss
|
259
245
|
- app/commands/decidim/admin/activate_participatory_process_step.rb
|
246
|
+
- app/commands/decidim/admin/copy_participatory_process.rb
|
260
247
|
- app/commands/decidim/admin/create_attachment.rb
|
261
248
|
- app/commands/decidim/admin/create_category.rb
|
262
249
|
- app/commands/decidim/admin/create_feature.rb
|
@@ -274,6 +261,7 @@ files:
|
|
274
261
|
- app/commands/decidim/admin/destroy_participatory_process_step.rb
|
275
262
|
- app/commands/decidim/admin/hide_resource.rb
|
276
263
|
- app/commands/decidim/admin/publish_participatory_process.rb
|
264
|
+
- app/commands/decidim/admin/reject_user_group.rb
|
277
265
|
- app/commands/decidim/admin/reorder_participatory_process_steps.rb
|
278
266
|
- app/commands/decidim/admin/unpublish_participatory_process.rb
|
279
267
|
- app/commands/decidim/admin/unreport_resource.rb
|
@@ -289,12 +277,15 @@ files:
|
|
289
277
|
- app/commands/decidim/admin/update_participatory_process_step.rb
|
290
278
|
- app/commands/decidim/admin/update_scope.rb
|
291
279
|
- app/commands/decidim/admin/update_static_page.rb
|
280
|
+
- app/commands/decidim/admin/update_user_groups.rb
|
281
|
+
- app/commands/decidim/admin/verify_user_group.rb
|
292
282
|
- app/constraints/decidim/admin/organization_dashboard_constraint.rb
|
293
283
|
- app/controllers/decidim/admin/application_controller.rb
|
294
284
|
- app/controllers/decidim/admin/categories_controller.rb
|
295
285
|
- app/controllers/decidim/admin/concerns/has_attachments.rb
|
296
286
|
- app/controllers/decidim/admin/concerns/participatory_process_admin.rb
|
297
287
|
- app/controllers/decidim/admin/dashboard_controller.rb
|
288
|
+
- app/controllers/decidim/admin/exports_controller.rb
|
298
289
|
- app/controllers/decidim/admin/feature_permissions_controller.rb
|
299
290
|
- app/controllers/decidim/admin/features/base_controller.rb
|
300
291
|
- app/controllers/decidim/admin/features_controller.rb
|
@@ -302,6 +293,7 @@ files:
|
|
302
293
|
- app/controllers/decidim/admin/newsletters_controller.rb
|
303
294
|
- app/controllers/decidim/admin/organization_controller.rb
|
304
295
|
- app/controllers/decidim/admin/participatory_process_attachments_controller.rb
|
296
|
+
- app/controllers/decidim/admin/participatory_process_copies_controller.rb
|
305
297
|
- app/controllers/decidim/admin/participatory_process_groups_controller.rb
|
306
298
|
- app/controllers/decidim/admin/participatory_process_publications_controller.rb
|
307
299
|
- app/controllers/decidim/admin/participatory_process_step_activations_controller.rb
|
@@ -318,6 +310,7 @@ files:
|
|
318
310
|
- app/forms/decidim/admin/feature_form.rb
|
319
311
|
- app/forms/decidim/admin/newsletter_form.rb
|
320
312
|
- app/forms/decidim/admin/organization_form.rb
|
313
|
+
- app/forms/decidim/admin/participatory_process_copy_form.rb
|
321
314
|
- app/forms/decidim/admin/participatory_process_form.rb
|
322
315
|
- app/forms/decidim/admin/participatory_process_group_form.rb
|
323
316
|
- app/forms/decidim/admin/participatory_process_step_form.rb
|
@@ -328,8 +321,10 @@ files:
|
|
328
321
|
- app/forms/decidim/admin/static_page_form.rb
|
329
322
|
- app/helpers/decidim/admin/application_helper.rb
|
330
323
|
- app/helpers/decidim/admin/attributes_display_helper.rb
|
324
|
+
- app/helpers/decidim/admin/exports_helper.rb
|
331
325
|
- app/helpers/decidim/admin/feature_settings_helper.rb
|
332
326
|
- app/helpers/decidim/admin/icon_link_helper.rb
|
327
|
+
- app/helpers/decidim/admin/menu_helper.rb
|
333
328
|
- app/helpers/decidim/admin/process_groups_for_select_helper.rb
|
334
329
|
- app/helpers/decidim/admin/processes_for_select_helper.rb
|
335
330
|
- app/jobs/decidim/admin/application_job.rb
|
@@ -345,6 +340,7 @@ files:
|
|
345
340
|
- app/queries/decidim/admin/manageable_participatory_processes_for_user.rb
|
346
341
|
- app/queries/decidim/admin/process_admin_roles_for_process.rb
|
347
342
|
- app/queries/decidim/admin/process_admins.rb
|
343
|
+
- app/queries/decidim/admin/user_groups_evaluation.rb
|
348
344
|
- app/views/decidim/admin/attachments/_form.html.erb
|
349
345
|
- app/views/decidim/admin/attachments/edit.html.erb
|
350
346
|
- app/views/decidim/admin/attachments/index.html.erb
|
@@ -358,6 +354,7 @@ files:
|
|
358
354
|
- app/views/decidim/admin/dashboard/show.html.erb
|
359
355
|
- app/views/decidim/admin/devise/mailers/password_change.html.erb
|
360
356
|
- app/views/decidim/admin/devise/mailers/reset_password_instructions.html.erb
|
357
|
+
- app/views/decidim/admin/exports/_dropdown.html.erb
|
361
358
|
- app/views/decidim/admin/feature_permissions/edit.html.erb
|
362
359
|
- app/views/decidim/admin/features/_feature.html.erb
|
363
360
|
- app/views/decidim/admin/features/_form.html.erb
|
@@ -374,6 +371,8 @@ files:
|
|
374
371
|
- app/views/decidim/admin/newsletters/show.html.erb
|
375
372
|
- app/views/decidim/admin/organization/_form.html.erb
|
376
373
|
- app/views/decidim/admin/organization/edit.html.erb
|
374
|
+
- app/views/decidim/admin/participatory_process_copies/_form.html.erb
|
375
|
+
- app/views/decidim/admin/participatory_process_copies/new.html.erb
|
377
376
|
- app/views/decidim/admin/participatory_process_groups/_form.html.erb
|
378
377
|
- app/views/decidim/admin/participatory_process_groups/edit.html.erb
|
379
378
|
- app/views/decidim/admin/participatory_process_groups/index.html.erb
|
@@ -409,8 +408,6 @@ files:
|
|
409
408
|
- app/views/layouts/decidim/admin/_application.html.erb
|
410
409
|
- app/views/layouts/decidim/admin/_callouts_full.html.erb
|
411
410
|
- app/views/layouts/decidim/admin/_header.html.erb
|
412
|
-
- app/views/layouts/decidim/admin/_language_chooser.html.erb
|
413
|
-
- app/views/layouts/decidim/admin/_main_nav.html.erb
|
414
411
|
- app/views/layouts/decidim/admin/_template_bottom.html.erb
|
415
412
|
- app/views/layouts/decidim/admin/_template_top.html.erb
|
416
413
|
- app/views/layouts/decidim/admin/_title_bar.html.erb
|
@@ -1,102 +0,0 @@
|
|
1
|
-
@mixin menu-title{
|
2
|
-
text-transform: uppercase;
|
3
|
-
letter-spacing: 5px;
|
4
|
-
}
|
5
|
-
|
6
|
-
.title-bar-title{
|
7
|
-
@include menu-title;
|
8
|
-
}
|
9
|
-
|
10
|
-
.sidebar{
|
11
|
-
color: $light-gray;
|
12
|
-
|
13
|
-
.title{
|
14
|
-
background-color: black;
|
15
|
-
background-color: map-get($foundation-palette, primary);
|
16
|
-
|
17
|
-
h1{
|
18
|
-
margin: 0;
|
19
|
-
padding: 0;
|
20
|
-
font-size: rem-calc(18);
|
21
|
-
font-weight: bold;
|
22
|
-
}
|
23
|
-
|
24
|
-
a{
|
25
|
-
display: block;
|
26
|
-
color: inherit;
|
27
|
-
padding: rem-calc(20) $global-padding;
|
28
|
-
@include menu-title;
|
29
|
-
}
|
30
|
-
|
31
|
-
@include show-for(large);
|
32
|
-
}
|
33
|
-
|
34
|
-
.main-menu{
|
35
|
-
border-top: 1px solid black;
|
36
|
-
border-bottom: 1px solid black;
|
37
|
-
a{
|
38
|
-
padding: $global-padding;
|
39
|
-
display: block;
|
40
|
-
color: $light-gray;
|
41
|
-
text-transform: uppercase;
|
42
|
-
font-weight: bold;
|
43
|
-
font-size: 0.9em;
|
44
|
-
border-left: 2px solid transparent;
|
45
|
-
|
46
|
-
transition: all 0.3s;
|
47
|
-
|
48
|
-
&.active {
|
49
|
-
border-color: map-get($foundation-palette, primary);
|
50
|
-
&, &:hover{
|
51
|
-
background-color: #101010;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
&:hover {
|
56
|
-
background-color: #1a1a1a;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
.session-box {
|
62
|
-
padding: $global-padding 0;
|
63
|
-
border-bottom: 1px solid black;
|
64
|
-
|
65
|
-
@include grid-row;
|
66
|
-
|
67
|
-
.admin-email {
|
68
|
-
@include grid-column(8);
|
69
|
-
text-overflow: ellipsis;
|
70
|
-
overflow: hidden;
|
71
|
-
}
|
72
|
-
.sign-out{ @include grid-column(4); }
|
73
|
-
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
.dropdown > li > a{
|
78
|
-
padding-left: 0;
|
79
|
-
}
|
80
|
-
.dropdown{
|
81
|
-
display: inline-block;
|
82
|
-
vertical-align: middle;
|
83
|
-
}
|
84
|
-
|
85
|
-
.is-dropdown-submenu{
|
86
|
-
z-index: 2;
|
87
|
-
text-align: left;
|
88
|
-
background: lighten($black, 5) !important;
|
89
|
-
border: none !important;
|
90
|
-
box-shadow: 0 3px 5px rgba(0, 0, 0, .3) !important;;
|
91
|
-
min-width: 250px !important;
|
92
|
-
a{
|
93
|
-
color: $light-gray;
|
94
|
-
padding: .5rem;
|
95
|
-
}
|
96
|
-
a:hover{
|
97
|
-
color: lighten($light-gray, 20);
|
98
|
-
}
|
99
|
-
li:hover{
|
100
|
-
background: lighten($black, 10);
|
101
|
-
}
|
102
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<% if available_locales.length > 1 %>
|
2
|
-
<div class="session-box">
|
3
|
-
<ul class="dropdown menu" data-dropdown-menu data-close-on-click-inside="false">
|
4
|
-
<li class="is-dropdown-submenu-parent">
|
5
|
-
<%= link_to t("name", scope: "locale") %>
|
6
|
-
<ul class="menu is-dropdown-submenu">
|
7
|
-
<% (available_locales - [I18n.locale.to_s]).each do |locale| %>
|
8
|
-
<li><%= link_to locale_name(locale), decidim.locale_path(locale: locale), method: :post%></li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
</li>
|
12
|
-
</ul>
|
13
|
-
</div>
|
14
|
-
<% end %>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<div class="main-nav">
|
2
|
-
<ul>
|
3
|
-
<%= admin_menu_item_to "dashboard", decidim_admin.root_path, active: :exact %>
|
4
|
-
<%= admin_menu_item_to "participatory_processes", decidim_admin.participatory_processes_path, icon_name: "target", active: :inclusive %>
|
5
|
-
<%= admin_menu_item_to "participatory_process_groups", decidim_admin.participatory_process_groups_path, icon_name: "layers", active: :inclusive %>
|
6
|
-
<%= admin_menu_item_to "static_pages", decidim_admin.static_pages_path, icon_name: "book", active: :inclusive if can? :read, Decidim::StaticPage %>
|
7
|
-
<%= admin_menu_item_to "users", decidim_admin.users_path, icon_name: "person", active: :inclusive, active_class: is_active_link?(decidim_admin.users_path) || is_active_link?(decidim_admin.user_groups_path) ? "is-active" : "" if can? :read, :admin_users %>
|
8
|
-
<%= admin_menu_item_to "newsletters", decidim_admin.newsletters_path, icon_name: "envelope-closed", active: :inclusive if can? :index, Decidim::Newsletter %>
|
9
|
-
<%= admin_menu_item_to "settings", decidim_admin.edit_organization_path, icon_name: "wrench", active: :inclusive, active_class: is_active_link?(decidim_admin.edit_organization_path) || is_active_link?(decidim_admin.scopes_path) ? "is-active" : "" if can? :read, current_organization %>
|
10
|
-
</ul>
|
11
|
-
</div>
|