- <%== cell("decidim/plans/plan_m", plan, full_badge: true).badge %>
<%= contents %>
<%= cell("decidim/plans/tags", plan, context: { extra_classes: ["tags--plan"] }) %>
diff --git a/app/cells/decidim/plans/plan_view_cell.rb b/app/cells/decidim/plans/plan_view_cell.rb
index 8bd2b539..b8114e7f 100644
--- a/app/cells/decidim/plans/plan_view_cell.rb
+++ b/app/cells/decidim/plans/plan_view_cell.rb
@@ -8,6 +8,7 @@ class PlanViewCell < Decidim::ViewModel
include Decidim::ApplicationHelper # For presenter
include Decidim::LayoutHelper # For the icon helper
include Decidim::FormFactory
+ include Decidim::SocialShareButtonHelper
include Decidim::TooltipHelper
include Decidim::MetaTagsHelper
include Decidim::Plans::LinksHelper
@@ -188,7 +189,7 @@ def organization_share_image_url
scope_name: :homepage,
manifest_name: :hero
).try(:images_container)
- container.attached_uploader(:background_image).url if container && container.background_image && container.background_image.attached?
+ container.attached_uploader(:background_image).path if container && container.background_image && container.background_image.attached?
end
end
diff --git a/lib/decidim/plans/engine.rb b/lib/decidim/plans/engine.rb
index 0acfedc1..6b70aaea 100644
--- a/lib/decidim/plans/engine.rb
+++ b/lib/decidim/plans/engine.rb
@@ -209,6 +209,7 @@ class Engine < ::Rails::Engine
initializer "decidim_plans.register_icons", after: "decidim_core.add_social_share_services" do
Decidim.icons.register(name: "focus-3-line", icon: "focus-3-line", category: "system", description: "", engine: :core)
+ Decidim.icons.register(name: "links-line", icon: "links-line", category: "system", description: "", engine: :core)
end
end
end
diff --git a/spec/cells/decidim/plans/collapsible_authors_cell_spec.rb b/spec/cells/decidim/plans/collapsible_authors_cell_spec.rb
index 0e25485d..6a36b91b 100644
--- a/spec/cells/decidim/plans/collapsible_authors_cell_spec.rb
+++ b/spec/cells/decidim/plans/collapsible_authors_cell_spec.rb
@@ -16,10 +16,6 @@
controller Decidim::Plans::PlansController
- before do
- expect(my_cell).to receive(:cell).with("decidim/collapsible_list", any_args)
- end
-
it "renders collapsible list" do
subject
end
diff --git a/spec/cells/decidim/plans/plan_notification_cell_spec.rb b/spec/cells/decidim/plans/plan_notification_cell_spec.rb
index 57002c3d..58ca6b0a 100644
--- a/spec/cells/decidim/plans/plan_notification_cell_spec.rb
+++ b/spec/cells/decidim/plans/plan_notification_cell_spec.rb
@@ -30,7 +30,7 @@
it "renders the show" do
expect(subject).to have_css(".callout__title")
- expect(subject).to have_css("svg.icon--circle-check.icon[aria-label='circle-check']")
+ expect(subject).to have_css("svg[role=\"img\"][aria-hidden=\"true\"] use[href*=\"#ri-checkbox-circle-line\"]")
expect(subject).to have_content("This proposal has been accepted")
within ".callout__content" do
expect(subject).to have_content(translated(plan.title))
<%= t("decidim.shared.share_modal.share") %>:
-