-
-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/redesign-accountability-turbo' into feature/red…
…esign-staging * feature/redesign-accountability-turbo: Ensure the correct use of only one h1 displaying/hidding drawers Avoid initialize and open drawer twice Display a preview of index on background of results show Update close drawer url with filtered path Improve drawers navigation Initialize drawers dialog with the turbo:frame-render event Display results show inside a drawer using a turbo frame Allow card_l_cell to open linked resource on a turbo frame Fix proposal etiquette and length validator with base64 images (#9639)
- Loading branch information
Showing
18 changed files
with
231 additions
and
75 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
decidim-accountability/app/cells/decidim/accountability/project/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
2 changes: 1 addition & 1 deletion
2
decidim-accountability/app/cells/decidim/accountability/results/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,3 +1,3 @@ | ||
<% results.each do |result| %> | ||
<%= card_for result, link_whole_card: true, render_extra_data: true %> | ||
<%= card_for result, link_whole_card: true, render_extra_data: true, turbo_frame: "project_frame" %> | ||
<% end %> |
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
40 changes: 40 additions & 0 deletions
40
decidim-accountability/app/views/decidim/accountability/results/_projects_aside.html.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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<% if local_assigns[:main_action] %> | ||
<h1 class="h1 decorator" data-heading-tag><%= component_name %></h1> | ||
<% else %> | ||
<h2 class="h1 decorator"><%= component_name %></h2> | ||
<% end %> | ||
|
||
<div class="accountability__status-container" turbo="false"> | ||
<%= cell( | ||
"decidim/accountability/status", | ||
nil, | ||
url: root_path, | ||
title: t("decidim.accountability.results.home_header.global_status"), | ||
extra_classes: "accountability__status__parent", | ||
render_blank: true | ||
) %> | ||
<% categories_hierarchy.each do |category| %> | ||
<%= cell( | ||
"decidim/accountability/status", | ||
category, | ||
url: results_path(filter: { with_category: category, with_scope: current_scope }), | ||
extra_classes: "accountability__status__parent", | ||
render_count: false, | ||
render_blank: true | ||
) %> | ||
<% end %> | ||
<% if category.present? %> | ||
<div> | ||
<%= external_icon "media/images/breadcrumb_arrow.svg" %> | ||
<%= cell( | ||
"decidim/accountability/status", | ||
category, | ||
extra_classes: "accountability__status__child", | ||
url: results_path(filter: { with_category: category, with_scope: current_scope }), | ||
render_blank: true | ||
) %> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<%= render partial: "scope_filters" if current_component.has_subscopes? %> |
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
27 changes: 27 additions & 0 deletions
27
decidim-accountability/app/views/decidim/accountability/results/preview.html.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<% content_for :js_content do %> | ||
<%= javascript_pack_tag "decidim_accountability" %> | ||
<% end %> | ||
<% content_for :css_content do %> | ||
<%= stylesheet_pack_tag "decidim_accountability", media: "all" %> | ||
<% end %> | ||
<%= turbo_frame_tag "main_frame" do %> | ||
<% content_for :aside do %> | ||
<%= render partial: "projects_aside" %> | ||
<% end %> | ||
<%= render layout: "layouts/decidim/shared/layout_two_col" do %> | ||
<% if category.present? %> | ||
<h2 class="h4"><%= translated_attribute category.name %></h2> | ||
<% else %> | ||
<h2 class="h4"><%= t("decidim.accountability.results.home_header.global_status") %></h2> | ||
<% end %> | ||
|
||
<div id="results" class="my-20"> | ||
<%= t("decidim.accountability.results.preview.loading") %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
<%# <%= turbo_frame_tag "project_frame" %1> %> |
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
Oops, something went wrong.