Skip to content

Commit

Permalink
Remove last activity from menu and tooltip from author cell
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Nov 26, 2024
1 parent 2252e52 commit e73030e
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
26 changes: 26 additions & 0 deletions app/cells/decidim/author/show.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<span class="author" data-author>
<%= content_tag :span, class: "author__container#{" is-compact" if layout == :compact}" do %>
<% if layout == :compact %>
<%= render :avatar %>

<span>
<%= render :name %>

<% context_actions.each do |action| %>
<%= render action %>
<% end %>
</span>
<% elsif layout == :avatar %>
<%= render :avatar %>
<% else %>
<%= render :avatar %>
<%= render :name %>
<% end %>
<% end %>

<% if layout == :default %>
<% context_actions.each do |action| %>
<%= render action %>
<% end %>
<% end %>
</span>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div id="breadcrumb-secondary-dropdown-<%= id %>" class="menu-bar__secondary-dropdown">
<div class="menu-bar__secondary-dropdown__left">
<%= render :metadata %>
</div>
<ul class="menu-bar__secondary-dropdown__menu">
<%= render :links %>
</ul>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div id="breadcrumb-secondary-dropdown-<%= id %>" class="menu-bar__secondary-dropdown">
<div class="menu-bar__secondary-dropdown__left">
<%= render :metadata %>
</div>
<ul class="menu-bar__secondary-dropdown__menu">
<%= render :links %>
</ul>
</div>
5 changes: 4 additions & 1 deletion spec/lib/overrides_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
{
Expand Down

0 comments on commit e73030e

Please sign in to comment.