From e73030e41208c29b149246817f338695c1c3e70f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Bol=C3=ADvar?= Date: Tue, 26 Nov 2024 14:25:01 +0100 Subject: [PATCH] Remove last activity from menu and tooltip from author cell --- app/cells/decidim/author/show.erb | 26 +++++++++++++++++++ .../show.erb | 8 ++++++ .../_menu_breadcrumb_main_dropdown.html.erb | 8 ++++++ spec/lib/overrides_spec.rb | 5 +++- 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 app/cells/decidim/author/show.erb create mode 100644 app/cells/decidim/participatory_space_dropdown_metadata/show.erb create mode 100644 app/views/decidim/header/_menu_breadcrumb_main_dropdown.html.erb diff --git a/app/cells/decidim/author/show.erb b/app/cells/decidim/author/show.erb new file mode 100644 index 000000000..ae7ffe7b3 --- /dev/null +++ b/app/cells/decidim/author/show.erb @@ -0,0 +1,26 @@ + + <%= content_tag :span, class: "author__container#{" is-compact" if layout == :compact}" do %> + <% if layout == :compact %> + <%= render :avatar %> + + + <%= render :name %> + + <% context_actions.each do |action| %> + <%= render action %> + <% end %> + + <% elsif layout == :avatar %> + <%= render :avatar %> + <% else %> + <%= render :avatar %> + <%= render :name %> + <% end %> + <% end %> + + <% if layout == :default %> + <% context_actions.each do |action| %> + <%= render action %> + <% end %> + <% end %> + diff --git a/app/cells/decidim/participatory_space_dropdown_metadata/show.erb b/app/cells/decidim/participatory_space_dropdown_metadata/show.erb new file mode 100644 index 000000000..fe402f151 --- /dev/null +++ b/app/cells/decidim/participatory_space_dropdown_metadata/show.erb @@ -0,0 +1,8 @@ + diff --git a/app/views/decidim/header/_menu_breadcrumb_main_dropdown.html.erb b/app/views/decidim/header/_menu_breadcrumb_main_dropdown.html.erb new file mode 100644 index 000000000..fe402f151 --- /dev/null +++ b/app/views/decidim/header/_menu_breadcrumb_main_dropdown.html.erb @@ -0,0 +1,8 @@ + diff --git a/spec/lib/overrides_spec.rb b/spec/lib/overrides_spec.rb index 6c1d6db07..1e5e90fa2 100644 --- a/spec/lib/overrides_spec.rb +++ b/spec/lib/overrides_spec.rb @@ -28,7 +28,10 @@ "/app/cells/decidim/activities_cell.rb" => "dd17416a8d1efe7f26b1e759613e4db4", "/app/cells/decidim/user_profile_cell.rb" => "71216a17c7eea8dd8ebc1ea3907efaef", "/lib/decidim/search_resource_fields_mapper.rb" => "ff2cc476eb72c2942cf2e69ae21b84fa", - "/app/views/layouts/decidim/header/_main.html.erb" => "a6496ec11e073062743a927ee3c8bd3c" + "/app/views/layouts/decidim/header/_main.html.erb" => "a6496ec11e073062743a927ee3c8bd3c", + "/app/cells/decidim/participatory_space_dropdown_metadata/show.erb" => "e1546b7776a0e1fffdbef705094c189d", # delete last activity + "/app/cells/decidim/author/show.erb" => "20bdef8a694a2dcb70202ac7f017060d", # remove tooltip + "/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown.html.erb" => "494b33a9fc70f859f766962815399445" # delete last activity } }, {