-
Notifications
You must be signed in to change notification settings - Fork 2
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
d06d2db
commit 6310e91
Showing
22 changed files
with
104 additions
and
59 deletions.
There are no files selected for viewing
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
47 changes: 30 additions & 17 deletions
47
app/cells/decidim/ideas/highlighted_ideas_for_component/show.erb
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 |
---|---|---|
@@ -1,19 +1,32 @@ | ||
<section class="section row collapse highlighted_ideas"> | ||
<h3 class="section-heading"> | ||
<%= translated_attribute(model.name) %> <a href="<%= main_component_path(model) %>" class="text-small"><%= t("decidim.participatory_spaces.highlighted_ideas.see_all", count: ideas_count) %></a> | ||
</h3> | ||
<div class="content-block__title"> | ||
<h2 class="h2 decorator"> | ||
<%= single_component? ? decidim_escape_translated(model.name) : t("decidim.components.ideas.name") %> | ||
</h2> | ||
<div class="label text-lg"><%= ideas_count %></div> | ||
<% if single_component? %> | ||
<%= link_to decidim_ideas.root_path, class: "button button__sm button__text-secondary" do %> | ||
<span><%= t("decidim.participatory_spaces.highlighted_ideas.see_all") %></span> | ||
<%= icon "arrow-right-line" %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
|
||
<%= cell( | ||
"decidim/collapsible_list", | ||
ideas_to_render, | ||
cell_options: {}, | ||
list_class: "row small-up-1 medium-up-2 card-grid", | ||
size: ideas_count | ||
) %> | ||
<div class="flex items-start justify-between"> | ||
<div class="grow space-y-6"> | ||
<span class="content-block__span"> | ||
<%= t("decidim.participatory_spaces.highlighted_ideas.last") %> | ||
</span> | ||
|
||
<% ideas_to_render.each do |p| %> | ||
<%= card_for p, link_whole_card: true, title_tag: :h3, **options.slice(:show_space) %> | ||
<% end %> | ||
</div> | ||
|
||
<% if single_component? %> | ||
<%= link_to decidim_ideas.new_idea_path, class: "button button__sm md:button__lg button__secondary" do %> | ||
<span><%= t("decidim.ideas.actions.new") %></span> | ||
<%= icon "add-line" %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
|
||
<%= link_to( | ||
t("decidim.participatory_spaces.highlighted_ideas.see_all", count: ideas_count), | ||
main_component_path(model), | ||
class: "button button--sc light secondary button--right" | ||
) %> | ||
</section> |
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.map-container{ | ||
position: relative; | ||
[data-decidim-map]{ | ||
@apply my-4 aspect-[4/3]; | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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