diff --git a/decidim-accountability/lib/decidim/accountability/engine.rb b/decidim-accountability/lib/decidim/accountability/engine.rb index cde4b0e83e1f4..923206ef86e6c 100644 --- a/decidim-accountability/lib/decidim/accountability/engine.rb +++ b/decidim-accountability/lib/decidim/accountability/engine.rb @@ -17,6 +17,14 @@ class Engine < ::Rails::Engine root to: "results#home" end + initializer "decidim_accountability.register_icons" do + Decidim.icons.register(name: "Decidim::Accountability::Result", icon: "briefcase-2-line", description: "Result / project (Accountability)", category: "activity", + engine: :accountability) + + Decidim.icons.register(name: "focus-2-line", icon: "focus-2-line", category: "system", description: "", engine: :accountability) + Decidim.icons.register(name: "briefcase-2-line", icon: "briefcase-2-line", category: "system", description: "", engine: :accountability) + end + initializer "decidim_accountability.view_hooks" do Decidim.view_hooks.register(:participatory_space_highlighted_elements, priority: Decidim::ViewHooks::LOW_PRIORITY) do |view_context| view_context.cell("decidim/accountability/highlighted_results", view_context.current_participatory_space) diff --git a/decidim-admin/app/cells/decidim/admin/content_block/show.erb b/decidim-admin/app/cells/decidim/admin/content_block/show.erb index 544e78be5f972..33489bbad5023 100644 --- a/decidim-admin/app/cells/decidim/admin/content_block/show.erb +++ b/decidim-admin/app/cells/decidim/admin/content_block/show.erb @@ -12,7 +12,7 @@ <%= icon "delete-bin-line", role: "img", "aria-hidden": true %> <% end %> <% end %> - <%= icon "menu", role: "img", "aria-hidden": true %> + <%= icon "menu-line", role: "img", "aria-hidden": true %> diff --git a/decidim-admin/app/helpers/decidim/admin/moderations/reports_helper.rb b/decidim-admin/app/helpers/decidim/admin/moderations/reports_helper.rb index e0268a5f431e2..d4f73420f4cdb 100644 --- a/decidim-admin/app/helpers/decidim/admin/moderations/reports_helper.rb +++ b/decidim-admin/app/helpers/decidim/admin/moderations/reports_helper.rb @@ -19,7 +19,7 @@ def reportable_author_name(reportable) when User content_tag :li do link_to current_or_new_conversation_path_with(author), target: "_blank", rel: "noopener" do - "#{author.name} #{icon "envelope-closed"}".html_safe + "#{author.name} #{icon "mail-send-line"}".html_safe end end when Decidim::Meetings::Meeting diff --git a/decidim-admin/lib/decidim/admin/engine.rb b/decidim-admin/lib/decidim/admin/engine.rb index 0f3a181f59eb9..3c4de7035a1e5 100644 --- a/decidim-admin/lib/decidim/admin/engine.rb +++ b/decidim-admin/lib/decidim/admin/engine.rb @@ -25,6 +25,33 @@ class Engine < ::Rails::Engine end end + initializer "decidim_admin.register_icons" do |_app| + Decidim.icons.register(name: "layout-masonry-line", icon: "layout-masonry-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "service-line", icon: "service-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "fullscreen-line", icon: "fullscreen-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "lock-line", icon: "lock-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "download-line", icon: "download-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "mail-open-line", icon: "mail-open-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "forbid-2-line", icon: "forbid-2-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "key-2-line", icon: "key-2-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "arrow-go-back-line", icon: "arrow-go-back-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "computer-line", icon: "computer-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "arrow-right-s-line", icon: "arrow-right-s-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "arrow-up-line", icon: "arrow-up-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "arrow-down-line", icon: "arrow-down-line", category: "system", description: "", engine: :admin) + + Decidim.icons.register(name: "attachment-2", icon: "attachment-2", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "spy-line", icon: "spy-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "refresh-line", icon: "refresh-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "zoom-in-line", icon: "zoom-in-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "add-line", icon: "add-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "upload-line", icon: "upload-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "settings-4-line", icon: "settings-4-line", category: "system", description: "", engine: :admin) + + Decidim.icons.register(name: "folder-line", icon: "folder-line", category: "system", description: "", engine: :admin) + Decidim.icons.register(name: "attachment-line", icon: "attachment-line", category: "system", description: "", engine: :admin) + end + initializer "decidim_admin.mime_types" do |_app| # Required for importer example downloads Mime::Type.register Decidim::Admin::Import::Readers::XLSX::MIME_TYPE, :xlsx diff --git a/decidim-assemblies/lib/decidim/assemblies/engine.rb b/decidim-assemblies/lib/decidim/assemblies/engine.rb index bdf9bf6d709db..2d018e10bfde1 100644 --- a/decidim-assemblies/lib/decidim/assemblies/engine.rb +++ b/decidim-assemblies/lib/decidim/assemblies/engine.rb @@ -40,6 +40,13 @@ class Engine < ::Rails::Engine end end + initializer "decidim_assemblies.register_icons" do + Decidim.icons.register(name: "Decidim::Assembly", icon: "government-line", description: "Assembly", category: "activity", engine: :assemblies) + Decidim.icons.register(name: "assembly_type", icon: "group-2-line", description: "Type", category: "assemblies", engine: :assemblies) + + Decidim.icons.register(name: "group-2-line", icon: "group-2-line", category: "system", description: "", engine: :assemblies) + end + initializer "decidim_assemblies.add_cells_view_paths" do Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Assemblies::Engine.root}/app/cells") Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Assemblies::Engine.root}/app/views") # for partials diff --git a/decidim-blogs/lib/decidim/blogs/engine.rb b/decidim-blogs/lib/decidim/blogs/engine.rb index f9b8474104f56..be44399bc7494 100644 --- a/decidim-blogs/lib/decidim/blogs/engine.rb +++ b/decidim-blogs/lib/decidim/blogs/engine.rb @@ -21,6 +21,11 @@ class Engine < ::Rails::Engine get "/", to: redirect("posts", status: 301) end + initializer "decidim_blogs.register_icons" do + Decidim.icons.register(name: "Decidim::Blogs::Post", icon: "pen-nib-line", description: "Blogs post", category: "activity", engine: :core) + Decidim.icons.register(name: "list-check", icon: "list-check", category: "system", description: "", engine: :blogs) + end + initializer "decidim_blogs.add_cells_view_paths" do Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Blogs::Engine.root}/app/cells") Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Blogs::Engine.root}/app/views") # for partials diff --git a/decidim-budgets/app/cells/decidim/budgets/project_voted_hint_cell.rb b/decidim-budgets/app/cells/decidim/budgets/project_voted_hint_cell.rb index 034fed88d1ea2..e5aea5aa48851 100644 --- a/decidim-budgets/app/cells/decidim/budgets/project_voted_hint_cell.rb +++ b/decidim-budgets/app/cells/decidim/budgets/project_voted_hint_cell.rb @@ -18,7 +18,7 @@ def show def hint contents = [] - contents << icon("check", role: "img", "aria-hidden": true) + contents << icon("check-line", role: "img", "aria-hidden": true) contents << " " contents << t("decidim.budgets.projects.project.you_voted") end diff --git a/decidim-budgets/app/views/decidim/budgets/admin/projects/_project-tr.html.erb b/decidim-budgets/app/views/decidim/budgets/admin/projects/_project-tr.html.erb index 7f1b261b19662..c19e1e13a4e6e 100644 --- a/decidim-budgets/app/views/decidim/budgets/admin/projects/_project-tr.html.erb +++ b/decidim-budgets/app/views/decidim/budgets/admin/projects/_project-tr.html.erb @@ -25,7 +25,7 @@ <% if project.selected? %> <%= content_tag :strong, t("projects.index.selected", scope: "decidim.budgets.admin"), class: "text-success" %> <% else %> - <%= content_tag :span, "x", class: "text-muted" %> + <%= content_tag :span, "close-line", class: "text-muted" %> <% end %>