forked from codeforjapan/decidim-cfj
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1b273d
commit 48ddf2f
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
app/cells/decidim/assemblies/content_blocks/dates_metadata_cell.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
23
app/cells/decidim/assemblies/content_blocks/metadata_cell.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |