File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
decidim-core/app/cells/decidim/card_s
decidim-meetings/spec/cells/decidim/meetings Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- <%= link_to resource_path, class: "card__search" , id: dom_id(resource) do %>
1
+ <%= content_tag :div , id: dom_id(resource), class: "card__search" do %>
2
2
<%= content_tag title_tag, class: "h4 card__search-title" do %>
3
- <%= title %>
3
+ <%= link_to resource_path, class: "card__search" do %>
4
+ <%= title %>
5
+ <% end %>
4
6
<% end %>
5
7
<% if metadata_cell.present? %>
6
8
<div class ="card__search-metadata ">
7
- <%= cell metadata_cell , resource , links : false %>
9
+ <%= cell metadata_cell , resource , links : false %>
8
10
</ div >
9
11
<% end %>
10
12
<% end %>
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module Decidim::Meetings
13
13
14
14
context "when rendering" do
15
15
it "renders the card" do
16
- expect ( subject ) . to have_css ( "#meeting_#{ meeting . id } .card__search " )
16
+ expect ( subject ) . to have_css ( "div #meeting_#{ meeting . id } " )
17
17
end
18
18
end
19
19
You can’t perform that action at this time.
0 commit comments