Skip to content

Commit

Permalink
copy from v0.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Apr 12, 2024
1 parent e1b273d commit 48ddf2f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/cells/decidim/assemblies/content_blocks/dates_metadata_cell.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# frozen_string_literal: true

module Decidim
module Assemblies
module ContentBlocks
class DatesMetadataCell < Decidim::ContentBlocks::ParticipatorySpaceMetadataCell
private

def metadata_items
%w(creation_date created_by included_at closing_date)
end

def space_presenter
AssemblyPresenter
end

def translations_scope
"decidim.assemblies.assemblies.description"
end
end
end
end
end
23 changes: 23 additions & 0 deletions app/cells/decidim/assemblies/content_blocks/metadata_cell.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# frozen_string_literal: true

module Decidim
module Assemblies
module ContentBlocks
class MetadataCell < Decidim::ContentBlocks::ParticipatorySpaceMetadataCell
private

def metadata_items
%w(meta_scope developer_group local_area target participatory_scope participatory_structure area_name)
end

def space_presenter
AssemblyPresenter
end

def translations_scope
"decidim.assemblies.assemblies.description"
end
end
end
end
end

0 comments on commit 48ddf2f

Please sign in to comment.