decidim-admin 0.23.0 → 0.24.0.rc1
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/config/decidim_admin_manifest.js +1 -0
- data/app/assets/javascripts/decidim/admin/application.js.es6 +2 -0
- data/app/assets/javascripts/decidim/admin/budget_rule_toggler.component.js.es6 +23 -20
- data/app/assets/javascripts/decidim/admin/bundle.js +10 -17
- data/app/assets/javascripts/decidim/admin/bundle.js.map +1 -1
- data/app/assets/javascripts/decidim/admin/form.js.es6 +1 -0
- data/app/assets/javascripts/decidim/admin/import_guidance.js.es6 +29 -0
- data/app/assets/javascripts/decidim/admin/moderations.js.es6 +24 -0
- data/app/assets/javascripts/decidim/admin/proposal_infinite_edit.js.es6 +20 -0
- data/app/assets/javascripts/decidim/admin/subform_multi_toggler.component.js.es6 +2 -2
- data/app/assets/javascripts/decidim/admin/subform_toggler.component.js.es6 +2 -2
- data/app/assets/javascripts/decidim/admin/user_moderations.js +2 -0
- data/app/assets/stylesheets/decidim/admin/_variables.scss +9 -0
- data/app/assets/stylesheets/decidim/admin/components/_dropdown-menu.scss +3 -0
- data/app/assets/stylesheets/decidim/admin/extra/_action-icon.scss +13 -0
- data/app/assets/stylesheets/decidim/admin/extra/_block_user.scss +5 -0
- data/app/assets/stylesheets/decidim/admin/extra/_title_bar.scss +1 -0
- data/app/assets/stylesheets/decidim/admin/modules/_buttons.scss +1 -0
- data/app/assets/stylesheets/decidim/admin/modules/_moderations.scss +39 -0
- data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +2 -0
- data/app/assets/stylesheets/decidim/admin/modules/_reveal.scss +5 -0
- data/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +6 -3
- data/app/assets/stylesheets/decidim/admin/modules/_user-login.scss +2 -2
- data/app/assets/stylesheets/decidim/admin/user_moderations.scss +3 -0
- data/app/assets/stylesheets/decidim/admin/utils/_settings.scss +1 -0
- data/app/cells/decidim/admin/content_block/show.erb +1 -1
- data/app/cells/decidim/admin/content_block_cell.rb +4 -0
- data/app/commands/decidim/admin/block_user.rb +70 -0
- data/app/commands/decidim/admin/create_import.rb +29 -0
- data/app/commands/decidim/admin/create_participatory_space_admin_user_actions.rb +98 -0
- data/app/commands/decidim/admin/create_participatory_space_private_user.rb +1 -1
- data/app/commands/decidim/admin/create_static_page.rb +2 -1
- data/app/commands/decidim/admin/hide_resource.rb +21 -0
- data/app/commands/decidim/admin/impersonate_user.rb +17 -1
- data/app/commands/decidim/admin/promote_managed_user.rb +10 -0
- data/app/commands/decidim/admin/reorder_content_blocks.rb +6 -3
- data/app/commands/decidim/admin/transfer_user.rb +78 -0
- data/app/commands/decidim/admin/unblock_user.rb +48 -0
- data/app/commands/decidim/admin/unreport_user.rb +46 -0
- data/app/commands/decidim/admin/update_organization_appearance.rb +12 -4
- data/app/commands/decidim/admin/update_static_page.rb +2 -1
- data/app/commands/decidim/admin/verify_user_group.rb +1 -1
- data/app/controllers/concerns/decidim/admin/filterable.rb +1 -1
- data/app/controllers/concerns/decidim/admin/global_moderation_context.rb +51 -0
- data/app/controllers/concerns/decidim/admin/landing_page.rb +105 -0
- data/app/controllers/concerns/decidim/admin/landing_page_content_blocks.rb +118 -0
- data/app/controllers/concerns/decidim/moderations/admin/filterable.rb +54 -0
- data/app/controllers/decidim/admin/block_user_controller.rb +60 -0
- data/app/controllers/decidim/admin/components/base_controller.rb +1 -0
- data/app/controllers/decidim/admin/conflicts_controller.rb +46 -0
- data/app/controllers/decidim/admin/exports_controller.rb +1 -2
- data/app/controllers/decidim/admin/global_moderations/reports_controller.rb +18 -0
- data/app/controllers/decidim/admin/global_moderations_controller.rb +32 -0
- data/app/controllers/decidim/admin/impersonations_controller.rb +1 -1
- data/app/controllers/decidim/admin/imports_controller.rb +52 -0
- data/app/controllers/decidim/admin/moderated_users_controller.rb +44 -0
- data/app/controllers/decidim/admin/moderations/reports_controller.rb +39 -0
- data/app/controllers/decidim/admin/moderations_controller.rb +31 -7
- data/app/controllers/decidim/admin/officializations_controller.rb +3 -3
- data/app/controllers/decidim/admin/organization_homepage_controller.rb +6 -2
- data/app/controllers/decidim/admin/static_pages_controller.rb +7 -0
- data/app/events/decidim/resource_hidden_event.rb +37 -0
- data/app/forms/decidim/admin/block_user_form.rb +25 -0
- data/app/forms/decidim/admin/import_form.rb +85 -0
- data/app/forms/decidim/admin/organization_appearance_form.rb +1 -2
- data/app/forms/decidim/admin/participatory_space_private_user_csv_import_form.rb +4 -5
- data/app/forms/decidim/admin/participatory_space_private_user_form.rb +0 -5
- data/app/forms/decidim/admin/selective_newsletter_form.rb +6 -0
- data/app/forms/decidim/admin/static_page_form.rb +6 -1
- data/app/forms/decidim/admin/transfer_user_form.rb +19 -0
- data/app/helpers/decidim/admin/application_helper.rb +5 -4
- data/app/helpers/decidim/admin/exports_helper.rb +2 -2
- data/app/helpers/decidim/admin/filterable_helper.rb +3 -2
- data/app/helpers/decidim/admin/imports_helper.rb +43 -0
- data/app/helpers/decidim/admin/menu_helper.rb +10 -0
- data/app/helpers/decidim/admin/moderations/reports_helper.rb +40 -0
- data/app/helpers/decidim/admin/moderations_helper.rb +36 -0
- data/app/helpers/decidim/admin/newsletters_helper.rb +4 -10
- data/app/helpers/decidim/admin/settings_helper.rb +2 -1
- data/app/helpers/decidim/admin/sidebar_menu_helper.rb +13 -0
- data/app/helpers/decidim/admin/user_moderations_helper.rb +6 -0
- data/app/jobs/decidim/admin/import_participatory_space_private_user_csv_job.rb +1 -1
- data/app/jobs/decidim/admin/verify_user_group_from_csv_job.rb +1 -1
- data/app/permissions/decidim/admin/permissions.rb +7 -6
- data/app/presenters/decidim/admin/dashboard_metric_charts_presenter.rb +1 -1
- data/app/presenters/decidim/admin/secondary_menu_presenter.rb +26 -0
- data/app/queries/decidim/admin/active_users_counter.rb +1 -2
- data/app/queries/decidim/admin/newsletter_recipients.rb +0 -7
- data/app/queries/decidim/admin/user_filter.rb +1 -2
- data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
- data/app/views/decidim/admin/attachments/index.html.erb +1 -1
- data/app/views/decidim/admin/block_user/new.html.erb +22 -0
- data/app/views/decidim/admin/categories/index.html.erb +1 -1
- data/app/views/decidim/admin/components/_component.html.erb +12 -0
- data/app/views/decidim/admin/conflicts/edit.html.erb +46 -0
- data/app/views/decidim/admin/conflicts/index.html.erb +34 -0
- data/app/views/decidim/admin/dashboard/show.html.erb +1 -0
- data/app/views/decidim/admin/exports/_dropdown.html.erb +1 -1
- data/app/views/decidim/admin/imports/_dropdown.html.erb +9 -0
- data/app/views/decidim/admin/imports/new.html.erb +57 -0
- data/app/views/decidim/admin/moderated_users/_report.html.erb +10 -0
- data/app/views/decidim/admin/moderated_users/index.html.erb +78 -0
- data/app/views/decidim/admin/moderations/_report.html.erb +1 -1
- data/app/views/decidim/admin/moderations/index.html.erb +27 -9
- data/app/views/decidim/admin/moderations/reports/index.html.erb +102 -0
- data/app/views/decidim/admin/moderations/reports/show.html.erb +62 -0
- data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +2 -2
- data/app/views/decidim/admin/officializations/index.html.erb +13 -4
- data/app/views/decidim/admin/organization_appearance/_form.html.erb +0 -4
- data/app/views/decidim/admin/organization_appearance/form/_colors.html.erb +1 -1
- data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +4 -4
- data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +1 -1
- data/app/views/decidim/admin/shared/_gallery.html.erb +1 -1
- data/app/views/decidim/admin/shared/landing_page/edit.html.erb +47 -0
- data/app/views/decidim/admin/shared/landing_page_content_blocks/edit.html.erb +15 -0
- data/app/views/decidim/admin/static_pages/_form.html.erb +6 -0
- data/app/views/decidim/admin/users/index.html.erb +1 -1
- data/app/views/layouts/decidim/admin/_application.html.erb +5 -1
- data/app/views/layouts/decidim/admin/_title_bar.html.erb +2 -2
- data/app/views/layouts/decidim/admin/global_moderations.html.erb +7 -0
- data/app/views/layouts/decidim/admin/newsletters.erb +1 -1
- data/app/views/layouts/decidim/admin/settings.html.erb +2 -33
- data/app/views/layouts/decidim/admin/users.html.erb +11 -0
- data/config/locales/ar.yml +0 -9
- data/config/locales/bg.yml +0 -5
- data/config/locales/ca.yml +33 -9
- data/config/locales/cs.yml +193 -50
- data/config/locales/de.yml +172 -28
- data/config/locales/el.yml +62 -9
- data/config/locales/en.yml +152 -9
- data/config/locales/es-MX.yml +42 -9
- data/config/locales/es-PY.yml +42 -9
- data/config/locales/es.yml +42 -9
- data/config/locales/eu.yml +18 -21
- data/config/locales/fi-plain.yml +150 -7
- data/config/locales/fi.yml +150 -7
- data/config/locales/fr-CA.yml +141 -8
- data/config/locales/fr.yml +148 -15
- data/config/locales/gl.yml +225 -4
- data/config/locales/hu.yml +13 -9
- data/config/locales/id-ID.yml +0 -3
- data/config/locales/is-IS.yml +36 -6
- data/config/locales/it.yml +74 -9
- data/config/locales/ja.yml +43 -12
- data/config/locales/lv.yml +0 -9
- data/config/locales/nl.yml +120 -11
- data/config/locales/no.yml +16 -9
- data/config/locales/pl.yml +159 -15
- data/config/locales/pt-BR.yml +0 -3
- data/config/locales/pt.yml +0 -9
- data/config/locales/ro-RO.yml +8 -9
- data/config/locales/ru.yml +0 -7
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +0 -9
- data/config/locales/sl.yml +0 -5
- data/config/locales/sr-CS.yml +0 -7
- data/config/locales/sv.yml +59 -9
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/tr-TR.yml +206 -11
- data/config/locales/uk.yml +0 -3
- data/config/locales/zh-CN.yml +0 -9
- data/config/routes.rb +21 -1
- data/lib/decidim/admin.rb +6 -0
- data/lib/decidim/admin/engine.rb +76 -1
- data/lib/decidim/admin/import.rb +12 -0
- data/lib/decidim/admin/import/creator.rb +82 -0
- data/lib/decidim/admin/import/importer.rb +82 -0
- data/lib/decidim/admin/import/importer_factory.rb +17 -0
- data/lib/decidim/admin/import/readers.rb +39 -0
- data/lib/decidim/admin/import/readers/base.rb +31 -0
- data/lib/decidim/admin/import/readers/csv.rb +23 -0
- data/lib/decidim/admin/import/readers/json.rb +25 -0
- data/lib/decidim/admin/import/readers/xls.rb +25 -0
- data/lib/decidim/admin/test/commands/create_attachment_collection_examples.rb +6 -6
- data/lib/decidim/admin/test/commands/create_category_examples.rb +6 -6
- data/lib/decidim/admin/test/filterable_examples.rb +1 -8
- data/lib/decidim/admin/test/manage_moderations_examples.rb +49 -4
- data/lib/decidim/admin/version.rb +1 -1
- metadata +78 -19
@@ -8,11 +8,12 @@
|
|
8
8
|
<table class="table-list">
|
9
9
|
<thead>
|
10
10
|
<tr>
|
11
|
-
<th><%= t(".name") %></th>
|
12
|
-
<th><%= t(".nickname") %></th>
|
13
|
-
<th><%= t(".created_at") %></th>
|
14
|
-
<th><%= t(".status") %></th>
|
11
|
+
<th><%= sort_link(query, :name, t(".name"), default_order: :desc) %></th>
|
12
|
+
<th><%= sort_link(query, :nickname, t(".nickname"), default_order: :desc) %></th>
|
13
|
+
<th><%= sort_link(query, :created_at, t(".created_at"), default_order: :desc) %></th>
|
14
|
+
<th><%= sort_link(query, :officialized_at, t(".status"), default_order: :desc) %></th>
|
15
15
|
<th><%= t(".badge") %></th>
|
16
|
+
<th><%= sort_link(query, :user_moderation_report_count, t(".reports"), default_order: :desc) %></th>
|
16
17
|
<th><%= t(".actions") %></th>
|
17
18
|
</tr>
|
18
19
|
</thead>
|
@@ -29,8 +30,16 @@
|
|
29
30
|
<td><%= l user.created_at, format: :short %></td>
|
30
31
|
<td><%= user.officialized? ? t(".officialized") : t(".not_officialized") %></td>
|
31
32
|
<td><%= translated_attribute(user.officialized_as) %></td>
|
33
|
+
<td><%= user.report_count %></td>
|
32
34
|
|
33
35
|
<td class="table-list__actions">
|
36
|
+
<% if allowed_to?(:block, :admin_user) %>
|
37
|
+
<% if user.blocked? %>
|
38
|
+
<%= icon_link_to "ban", user_block_path(user_id: user.id), t(".unblock"), class: "action-icon action-icon--disabled", method: :delete %>
|
39
|
+
<% else %>
|
40
|
+
<%= icon_link_to "ban", new_user_block_path(user_id: user.id), t(".block"), class: "action-icon action-icon" %>
|
41
|
+
<% end %>
|
42
|
+
<% end %>
|
34
43
|
<% if allowed_to? :show_email, :user, user: user %>
|
35
44
|
<%= icon_link_to "envelope-open", show_email_officialization_path(user_id: user.id), t(".show_email"), class: "action-icon action-icon--show-email", data: { full_name: user.name, toggle: "show-email-modal" } %>
|
36
45
|
<% end %>
|
@@ -5,10 +5,6 @@
|
|
5
5
|
<h2 class="card-title"><%= t ".homepage_appearance_title" %></h2>
|
6
6
|
</div>
|
7
7
|
<div class="card-section">
|
8
|
-
<div class="row column">
|
9
|
-
<%= form.check_box :show_statistics %>
|
10
|
-
</div>
|
11
|
-
|
12
8
|
<div class="row column">
|
13
9
|
<%= form.translated :editor, :description %>
|
14
10
|
</div>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<%= form.color_field :highlight_alternative_color, value: current_organization.colors["highlight-alternative"] %>
|
14
14
|
</div>
|
15
15
|
|
16
|
-
<% if
|
16
|
+
<% if Decidim.enable_html_header_snippets %>
|
17
17
|
<div class="row column">
|
18
18
|
<%= form.text_area :header_snippets %>
|
19
19
|
<p class="help-text"><%= t(".header_snippets_help") %></p>
|
@@ -11,19 +11,19 @@
|
|
11
11
|
|
12
12
|
<div class="organization-images">
|
13
13
|
<div class="preview">
|
14
|
-
<%= form.upload :favicon, dimensions_info: current_organization.favicon.dimensions_info,
|
14
|
+
<%= form.upload :favicon, dimensions_info: current_organization.favicon.dimensions_info, extension_allowlist: current_organization.favicon.extension_allowlist %>
|
15
15
|
</div>
|
16
16
|
|
17
17
|
<div class="preview">
|
18
|
-
<%= form.upload :logo, dimensions_info: current_organization.logo.dimensions_info,
|
18
|
+
<%= form.upload :logo, dimensions_info: current_organization.logo.dimensions_info, extension_allowlist: current_organization.favicon.extension_allowlist %>
|
19
19
|
</div>
|
20
20
|
|
21
21
|
<div class="preview">
|
22
|
-
<%= form.upload :official_img_header, dimensions_info: current_organization.official_img_header.dimensions_info,
|
22
|
+
<%= form.upload :official_img_header, dimensions_info: current_organization.official_img_header.dimensions_info, extension_allowlist: current_organization.favicon.extension_allowlist %>
|
23
23
|
</div>
|
24
24
|
|
25
25
|
<div class="preview">
|
26
|
-
<%= form.upload :official_img_footer, dimensions_info: current_organization.official_img_footer.dimensions_info,
|
26
|
+
<%= form.upload :official_img_footer, dimensions_info: current_organization.official_img_footer.dimensions_info, extension_allowlist: current_organization.favicon.extension_allowlist %>
|
27
27
|
</div>
|
28
28
|
</div>
|
29
29
|
</div>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= t(".title") %>
|
5
5
|
<% if allowed_to? :create, :space_private_user %>
|
6
6
|
<%= link_to t(".import_via_csv"), new_participatory_space_private_users_csv_import_path, class: "button tiny button--title import" %>
|
7
|
-
<%= link_to t("actions.
|
7
|
+
<%= link_to t("actions.participatory_space_private_user.new", scope: "decidim.admin"), url_for(action: :new), class: "button tiny button--title new" %>
|
8
8
|
<% end %>
|
9
9
|
</h2>
|
10
10
|
</div>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<div class="grid-container full">
|
2
|
+
<div class="grid-x grid-margin-x card-grid">
|
3
|
+
<div class="cell small-6">
|
4
|
+
<div class="card">
|
5
|
+
<div class="card-section">
|
6
|
+
<h5><%= active_content_blocks_title %></h5>
|
7
|
+
|
8
|
+
<ul class="draggable-list js-connect js-list-actives" data-sort-url="<%= resource_sort_url %>">
|
9
|
+
<% active_blocks.each do |content_block| %>
|
10
|
+
<%= cell resource_content_block_cell, content_block %>
|
11
|
+
<% end %>
|
12
|
+
</ul>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="cell small-6">
|
18
|
+
<div class="card">
|
19
|
+
<div class="card-section">
|
20
|
+
<h5><%= inactive_content_blocks_title %></h5>
|
21
|
+
|
22
|
+
<ul class="draggable-list js-connect js-list-availables">
|
23
|
+
<% inactive_blocks.each do |content_block_or_manifest| %>
|
24
|
+
<%= cell resource_content_block_cell, content_block_or_manifest %>
|
25
|
+
<% end %>
|
26
|
+
</ul>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<script>
|
34
|
+
document.addEventListener("dragend", function (event) {
|
35
|
+
var activeBlocks = Array.prototype.slice.call(document.querySelectorAll(".js-list-actives li"));
|
36
|
+
var activeBlocksManifestName = activeBlocks.map(block => block.dataset.contentBlockManifestName);
|
37
|
+
var sortUrl = document.querySelector(".js-list-actives").dataset.sortUrl;
|
38
|
+
var target = event.target;
|
39
|
+
|
40
|
+
$.ajax({
|
41
|
+
method: "PUT",
|
42
|
+
url: sortUrl,
|
43
|
+
contentType: "application/json",
|
44
|
+
data: JSON.stringify({ manifests: activeBlocksManifestName })
|
45
|
+
});
|
46
|
+
})
|
47
|
+
</script>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= decidim_form_for(@form, html: { class: "form edit_content_block" }, url: resource_landing_page_content_block_path) do |form| %>
|
2
|
+
<div class="card">
|
3
|
+
<div class="card-divider">
|
4
|
+
<h2 class="card-title"><%= t content_block.public_name_key %></h2>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<div class="card-section">
|
8
|
+
<%= cell content_block.settings_form_cell, form, content_block: content_block %>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<div class="button--double form-general-submit">
|
13
|
+
<%= form.submit submit_button_text %>
|
14
|
+
</div>
|
15
|
+
<% end %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<h2 class="card-title">
|
4
4
|
<%= t "decidim.admin.titles.users" %>
|
5
5
|
<% if allowed_to? :create, :admin_user %>
|
6
|
-
<%= link_to t("actions.
|
6
|
+
<%= link_to t("actions.user.new", scope: "decidim.admin"), ["new", "user"], class: "button tiny button--title" %>
|
7
7
|
<% end %>
|
8
8
|
</h2>
|
9
9
|
</div>
|
@@ -1,3 +1,5 @@
|
|
1
|
+
<% add_decidim_page_title(t("titles.panel", scope: "decidim.admin")) %>
|
2
|
+
<% add_decidim_page_title(current_organization.name) %>
|
1
3
|
<!doctype html>
|
2
4
|
<html class="no-js" lang="<%= I18n.locale %>">
|
3
5
|
<head>
|
@@ -7,15 +9,17 @@
|
|
7
9
|
<meta name="copyright" content="">
|
8
10
|
<meta name="description" content="">
|
9
11
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
10
|
-
<title><%=
|
12
|
+
<title><%= decidim_page_title %></title>
|
11
13
|
<%= render partial: "layouts/decidim/admin/header" %>
|
12
14
|
<%= foundation_datepicker_locale_tag %>
|
13
15
|
</head>
|
14
16
|
<body>
|
17
|
+
<%= render partial: "layouts/decidim/timeout_modal" %>
|
15
18
|
<%= render partial: "layouts/decidim/admin/template_top" %>
|
16
19
|
<div class="layout-nav">
|
17
20
|
<%= main_menu.render %>
|
18
21
|
<%= yield :secondary_nav if content_for? :secondary_nav %>
|
22
|
+
<%= yield :sidebar_menu_nav if content_for? :sidebar_menu_nav %>
|
19
23
|
</div>
|
20
24
|
<div class="layout-content">
|
21
25
|
<div class="container">
|
@@ -2,9 +2,9 @@
|
|
2
2
|
<a href="#menu" class="menu-trigger"><%= icon "menu" %></a>
|
3
3
|
<%= link_to decidim.root_path, class: "logo", target: "_blank" do %>
|
4
4
|
<% if current_organization.logo.present? %>
|
5
|
-
<%= image_tag current_organization.logo.url, alt:
|
5
|
+
<%= image_tag current_organization.logo.url, alt: current_organization.name %>
|
6
6
|
<% else %>
|
7
|
-
<%=
|
7
|
+
<%= current_organization.name %>
|
8
8
|
<% end %>
|
9
9
|
<% end %>
|
10
10
|
<div class='tool-bar'>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= t ".title" %>
|
5
5
|
</div>
|
6
6
|
<div class="secondary-nav__actions">
|
7
|
-
<%= link_to t("actions.
|
7
|
+
<%= link_to t("actions.newsletter.new", scope: "decidim.admin"), ["newsletter_templates"], class: "button expanded small new" %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
<% end %>
|
@@ -1,37 +1,6 @@
|
|
1
|
-
<% content_for :
|
2
|
-
|
3
|
-
<div class="secondary-nav__title">
|
4
|
-
<%= t ".title" %>
|
5
|
-
</div>
|
6
|
-
<ul>
|
7
|
-
<li <% if is_active_link?(decidim_admin.edit_organization_path) %> class="is-active" <% end %>>
|
8
|
-
<%= link_to t("menu.configuration", scope: "decidim.admin"), decidim_admin.edit_organization_path %>
|
9
|
-
</li>
|
10
|
-
<li <% if is_active_link?(decidim_admin.edit_organization_appearance_path) %> class="is-active" <% end %>>
|
11
|
-
<%= link_to t("menu.appearance", scope: "decidim.admin"), decidim_admin.edit_organization_appearance_path %>
|
12
|
-
</li>
|
13
|
-
<li <% if is_active_link?(decidim_admin.edit_organization_homepage_path, /^\/admin\/organization\/homepage/) %> class="is-active" <% end %>>
|
14
|
-
<%= link_to t("menu.homepage", scope: "decidim.admin"), decidim_admin.edit_organization_homepage_path %>
|
15
|
-
</li>
|
16
|
-
<li <% if is_active_link?(decidim_admin.scopes_path) %> class="is-active" <% end %>>
|
17
|
-
<%= link_to t("menu.scopes", scope: "decidim.admin"), decidim_admin.scopes_path %>
|
18
|
-
</li>
|
19
|
-
<li <% if is_active_link?(decidim_admin.scope_types_path) %> class="is-active" <% end %>>
|
20
|
-
<%= link_to t("menu.scope_types", scope: "decidim.admin"), decidim_admin.scope_types_path %>
|
21
|
-
</li>
|
22
|
-
<li <% if is_active_link?(decidim_admin.areas_path) %> class="is-active" <% end %>>
|
23
|
-
<%= link_to t("menu.areas", scope: "decidim.admin"), decidim_admin.areas_path %>
|
24
|
-
</li>
|
25
|
-
<li <% if is_active_link?(decidim_admin.area_types_path) %> class="is-active" <% end %>>
|
26
|
-
<%= link_to t("menu.area_types", scope: "decidim.admin"), decidim_admin.area_types_path %>
|
27
|
-
</li>
|
28
|
-
<li <% if allowed_to?(:update, :help_sections) && is_active_link?(decidim_admin.help_sections_path) %> class="is-active" <% end %>>
|
29
|
-
<%= link_to t("menu.help_sections", scope: "decidim.admin"), decidim_admin.help_sections_path %>
|
30
|
-
</li>
|
31
|
-
</ul>
|
32
|
-
</div>
|
1
|
+
<% content_for :sidebar_menu_nav do %>
|
2
|
+
<%= organization_settings_menu.render(title: t(".title") ) %>
|
33
3
|
<% end %>
|
34
|
-
|
35
4
|
<%= render "layouts/decidim/admin/application" do %>
|
36
5
|
<%= yield %>
|
37
6
|
<% end %>
|
@@ -22,6 +22,17 @@
|
|
22
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
|
+
<ul>
|
26
|
+
<li <% if is_active_link?(decidim_admin.conflicts_path) %> class="is-active" <% end %>>
|
27
|
+
<%= %>
|
28
|
+
<%= link_to link_to t("title", scope: "decidim.admin.conflicts"), decidim_admin.conflicts_path %>
|
29
|
+
</li>
|
30
|
+
</ul>
|
31
|
+
</li>
|
32
|
+
<% end %>
|
33
|
+
<% if allowed_to? :index, :moderate_users %>
|
34
|
+
<li <% if is_active_link?(decidim_admin.moderated_users_path) %> class="is-active" <% end %>>
|
35
|
+
<%= link_to t("menu.reported_users", scope: "decidim.admin"), decidim_admin.moderated_users_path %>
|
25
36
|
</li>
|
26
37
|
<% end %>
|
27
38
|
<li <% if is_active_link?(decidim_admin.authorization_workflows_path) %> class="is-active" <% end %>>
|
data/config/locales/ar.yml
CHANGED
@@ -29,7 +29,6 @@ ar:
|
|
29
29
|
body: المحتوى
|
30
30
|
subject: الموضوع
|
31
31
|
organization:
|
32
|
-
address: خادم SMTP
|
33
32
|
alert_color: تنبيه
|
34
33
|
badges_enabled: تمكين الشارات
|
35
34
|
cta_button_path: دعوة إلى العمل مسار زر
|
@@ -59,20 +58,16 @@ ar:
|
|
59
58
|
omnipresent_banner_short_description: وصف قصير
|
60
59
|
omnipresent_banner_title: العنوان
|
61
60
|
omnipresent_banner_url: العنوان الشبكي
|
62
|
-
password: الكلمة السرية
|
63
|
-
port: المَنفذ
|
64
61
|
primary_color: ابتدائي
|
65
62
|
reference_prefix: بادئة المرجع
|
66
63
|
rich_text_editor_in_public_views: إتاحة محرر النص الغني للمشارِكين
|
67
64
|
secondary_color: ثانوي
|
68
65
|
send_welcome_notification: إرسال إشعار بالترحيب
|
69
|
-
show_statistics: عرض الإحصائيات
|
70
66
|
success_color: نجاح
|
71
67
|
time_zone: المنطقة الزمنية
|
72
68
|
tos_version: شروط وأحكام الخدمة
|
73
69
|
twitter_handler: مُعرّف حساب تويتر
|
74
70
|
user_groups_enabled: تمكين المجموعات
|
75
|
-
user_name: اسم المستخدم
|
76
71
|
warning_color: تحذير
|
77
72
|
welcome_notification_body: محتوى إشعار الترحيب
|
78
73
|
welcome_notification_subject: موضوع إشعار الترحيب
|
@@ -141,7 +136,6 @@ ar:
|
|
141
136
|
accept:
|
142
137
|
success: رائع! لقد قمت بالموافقة على شروط الإستخدام للمدير.
|
143
138
|
actions:
|
144
|
-
accept: أوافق على شروط المدير هذه
|
145
139
|
are_you_sure: هل أنت متأكد مِن أنك رافض لشروط المدير؟
|
146
140
|
refuse: ارفض شروط المدير
|
147
141
|
title: وافق على شروط وأحكام الإستخدام
|
@@ -526,7 +520,6 @@ ar:
|
|
526
520
|
instagram: إينستاجرام
|
527
521
|
social_handlers: التواصل الاجتماعي
|
528
522
|
twitter: تويتر
|
529
|
-
url: العنوان الشبكي
|
530
523
|
youtube: يوتيوب
|
531
524
|
update:
|
532
525
|
error: حدثت مشكلة أثناء تحديث هذه المؤسسة.
|
@@ -560,7 +553,6 @@ ar:
|
|
560
553
|
error: حدثت مشكلة في حذف مشارك خاص لهذه المساحة التشاركية.
|
561
554
|
success: المشاركة الفضاء الفضاء وصول المشاركين دمرت بنجاح.
|
562
555
|
index:
|
563
|
-
import_via_csv: استيراد عبر ملف csv
|
564
556
|
title: المشاركة الفضاء المشارك الخاص
|
565
557
|
new:
|
566
558
|
create: إنشاء
|
@@ -740,7 +732,6 @@ ar:
|
|
740
732
|
fields:
|
741
733
|
hidden_at: مخبأة في
|
742
734
|
report_count: عد
|
743
|
-
reportable: الإبلاغ عنها
|
744
735
|
reported_content_url: تم الإبلاغ عن عنوان URL للمحتوى
|
745
736
|
reports: تقارير
|
746
737
|
visit_url: زيارة العنوان الشبكي
|
data/config/locales/bg.yml
CHANGED
@@ -30,7 +30,6 @@ bg:
|
|
30
30
|
body: Тяло
|
31
31
|
subject: Тема
|
32
32
|
organization:
|
33
|
-
address: Име на SMTP хост
|
34
33
|
alert_color: Аларма
|
35
34
|
badges_enabled: Включи значките
|
36
35
|
comments_max_length: Максимална дължина на коментарите (Оставете 0 за стойност по подразбиране)
|
@@ -66,20 +65,16 @@ bg:
|
|
66
65
|
omnipresent_banner_short_description: Кратко описание
|
67
66
|
omnipresent_banner_title: Заглавие
|
68
67
|
omnipresent_banner_url: URL адрес
|
69
|
-
password: Парола
|
70
|
-
port: Порт
|
71
68
|
primary_color: Основен
|
72
69
|
reference_prefix: Префикс на препратка
|
73
70
|
rich_text_editor_in_public_views: Разреши редактора на rich text за участниците
|
74
71
|
secondary_color: Вторичен
|
75
72
|
send_welcome_notification: Изпращай приветствия
|
76
|
-
show_statistics: Покажи статистиката
|
77
73
|
success_color: Успешно
|
78
74
|
time_zone: Часова зона
|
79
75
|
tos_version: Версия на условия за ползване
|
80
76
|
twitter_handler: Манипулатор на Twitter
|
81
77
|
user_groups_enabled: Разреши групи
|
82
|
-
user_name: Потребителско име
|
83
78
|
warning_color: Предупреждение
|
84
79
|
welcome_notification_body: Тяло на приветствието
|
85
80
|
welcome_notification_subject: Тема на приветствието
|
data/config/locales/ca.yml
CHANGED
@@ -30,7 +30,6 @@ ca:
|
|
30
30
|
body: Cos
|
31
31
|
subject: Assumpte
|
32
32
|
organization:
|
33
|
-
address: Nom del servidor SMTP
|
34
33
|
alert_color: Alerta
|
35
34
|
badges_enabled: Habilitar les ensenyes
|
36
35
|
comments_max_length: Longitud màxima dels comentaris (deixa 0 si vols mantenir la configuració per defecte)
|
@@ -66,20 +65,16 @@ ca:
|
|
66
65
|
omnipresent_banner_short_description: Breu descripció
|
67
66
|
omnipresent_banner_title: Títol
|
68
67
|
omnipresent_banner_url: URL
|
69
|
-
password: Contrasenya
|
70
|
-
port: Port
|
71
68
|
primary_color: Primària
|
72
69
|
reference_prefix: prefix de referència
|
73
70
|
rich_text_editor_in_public_views: Habilitar l'editor de text enriquit
|
74
71
|
secondary_color: Secundari
|
75
72
|
send_welcome_notification: Envia la notificació de benvinguda
|
76
|
-
show_statistics: Mostrar estadístiques
|
77
73
|
success_color: Èxit
|
78
74
|
time_zone: Zona horària
|
79
75
|
tos_version: Versió dels Termes de Servei
|
80
76
|
twitter_handler: Nom d'usuària de Twitter
|
81
77
|
user_groups_enabled: Habilitar grups
|
82
|
-
user_name: Àlies
|
83
78
|
warning_color: Avís
|
84
79
|
welcome_notification_body: Cos de la notificació de benvinguda
|
85
80
|
welcome_notification_subject: Assumpte de la notificació de benvinguda
|
@@ -96,6 +91,7 @@ ca:
|
|
96
91
|
organization: Organització
|
97
92
|
plural: Plural
|
98
93
|
static_page:
|
94
|
+
allow_public_access: Permet l'accés sense autenticació
|
99
95
|
changed_notably: S'han produït canvis notables.
|
100
96
|
content: Contingut
|
101
97
|
organization: Organització
|
@@ -136,21 +132,32 @@ ca:
|
|
136
132
|
admin:
|
137
133
|
actions:
|
138
134
|
add: Afegir
|
135
|
+
attachment:
|
136
|
+
new: Nou arxiu adjunt
|
137
|
+
attachment_collection:
|
138
|
+
new: Nova col·lecció d'arxius adjunts
|
139
139
|
browse: Explorar
|
140
|
+
category:
|
141
|
+
new: Nova categoria
|
140
142
|
export: Exporta
|
141
143
|
manage: Gestionar
|
142
144
|
new: Nou %{name}
|
145
|
+
newsletter:
|
146
|
+
new: Nou butlletí
|
147
|
+
participatory_space_private_user:
|
148
|
+
new: Nou usuari privat de l'espai participatiu
|
143
149
|
per_page: Per pàgina
|
144
150
|
permissions: Permisos
|
145
151
|
reject: Rebutjar
|
146
152
|
share: Compartir
|
153
|
+
user:
|
154
|
+
new: Nou usuari
|
147
155
|
verify: Verificar
|
148
156
|
admin_terms_of_use:
|
149
157
|
accept:
|
150
158
|
error: S'ha produït un error en acceptar els Termes i Condicions dell panell d'administració.
|
151
159
|
success: Genial! Has acceptat els Termes i Condicions del panell d'administració.
|
152
160
|
actions:
|
153
|
-
accept: Estic d'acord amb aquests termes
|
154
161
|
are_you_sure: Segur que vols rebutjar els Termes i Condicions del panell d'administració?
|
155
162
|
refuse: Rebutjar els termes
|
156
163
|
title: Accepto els Termes i Condicions d'Administració
|
@@ -229,6 +236,12 @@ ca:
|
|
229
236
|
autocomplete:
|
230
237
|
no_results: No s'han trobat resultats
|
231
238
|
search_prompt: Escriu com a mínim tres caràcters per cercar
|
239
|
+
block_user:
|
240
|
+
new:
|
241
|
+
action: Bloquejar compte i enviar justificació
|
242
|
+
description: El bloqueig d'una usuària deixarà el seu compte inservible, pots facilitar a la teva justificació i directrius les maneres que consideris per tal de desbloquejar a la usuària.
|
243
|
+
justification: Justificació
|
244
|
+
title: Bloquejar a la usuària %{name}
|
232
245
|
categories:
|
233
246
|
create:
|
234
247
|
error: S'ha produït un error en crear aquesta categoria.
|
@@ -300,6 +313,9 @@ ca:
|
|
300
313
|
category_id_eq:
|
301
314
|
label: Categoria
|
302
315
|
filter_label: Filtre
|
316
|
+
moderations:
|
317
|
+
reportable_type_string_eq:
|
318
|
+
label: Tipus
|
303
319
|
officialized_at_null:
|
304
320
|
label: Estat
|
305
321
|
values:
|
@@ -481,6 +497,9 @@ ca:
|
|
481
497
|
does_not_belong: No pertany
|
482
498
|
offensive: Ofensiu
|
483
499
|
spam: Contingut no desitjat
|
500
|
+
reports:
|
501
|
+
index:
|
502
|
+
author: Autor(s)
|
484
503
|
newsletter_templates:
|
485
504
|
index:
|
486
505
|
preview_template: Previsualitzar
|
@@ -546,6 +565,9 @@ ca:
|
|
546
565
|
error: S'ha produït un error en actualitzar aquest butlletí.
|
547
566
|
success: Butlletí actualitzat correctament. Si us plau, revisa'l abans d'enviar-lo.
|
548
567
|
officializations:
|
568
|
+
block:
|
569
|
+
error: S'ha produït un error en bloquejar a la participant
|
570
|
+
success: Participant bloqueada correctament
|
549
571
|
create:
|
550
572
|
success: La participant s'ha oficialitzat correctament
|
551
573
|
destroy:
|
@@ -553,6 +575,7 @@ ca:
|
|
553
575
|
index:
|
554
576
|
actions: Accions
|
555
577
|
badge: Insígnia
|
578
|
+
block: Bloquejar usuària
|
556
579
|
created_at: Creat el
|
557
580
|
name: Nom
|
558
581
|
nickname: Àlies
|
@@ -562,6 +585,7 @@ ca:
|
|
562
585
|
reofficialize: Torna a oficialitzar
|
563
586
|
show_email: Mostra l'adreça de correu
|
564
587
|
status: Estat
|
588
|
+
unblock: Desbloquejar usuària
|
565
589
|
unofficialize: Des-oficialitzar
|
566
590
|
new:
|
567
591
|
badge: Insígnia d'oficialització
|
@@ -575,6 +599,9 @@ ca:
|
|
575
599
|
hidden: ocult
|
576
600
|
show: Mostra
|
577
601
|
title: Mostra l'adreça de correu electrònic de la participant
|
602
|
+
unblock:
|
603
|
+
error: S'ha produït un error al desbloquejar a la participant
|
604
|
+
success: Participant desbloquejada correctament
|
578
605
|
organization:
|
579
606
|
edit:
|
580
607
|
title: Edita organització
|
@@ -586,7 +613,6 @@ ca:
|
|
586
613
|
rich_text_editor_in_public_views_help: En algunes àrees de text, les participants podran inserir algunes etiquetes HTML amb l'editor de text enriquit.
|
587
614
|
social_handlers: Social
|
588
615
|
twitter: Twitter
|
589
|
-
url: URL
|
590
616
|
youtube: YouTube
|
591
617
|
update:
|
592
618
|
error: S'ha produït un error en actualitzar aquesta organització.
|
@@ -621,7 +647,6 @@ ca:
|
|
621
647
|
error: S'ha produït un error en eliminar una participant participada d'aquest espai participatiu.
|
622
648
|
success: L'accés de la participant a l'espai de participació privat s'ha eliminat correctament.
|
623
649
|
index:
|
624
|
-
import_via_csv: Importar via csv
|
625
650
|
title: Participant de l'espai participatiu privat
|
626
651
|
new:
|
627
652
|
create: Crear
|
@@ -831,7 +856,6 @@ ca:
|
|
831
856
|
fields:
|
832
857
|
hidden_at: Data d'ocultació
|
833
858
|
report_count: Recompte
|
834
|
-
reportable: Tipus
|
835
859
|
reported_content_url: URL contingut del contingut reportat
|
836
860
|
reports: Denúncies
|
837
861
|
visit_url: Visiteu l'URL
|