-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete jump_to when is nothing to show (#33)
* create override file * add override file * add script to override * refactor override * add conditional render * change layout * fix homepage system spec * add override file spec * disable rubocop in conference_helper_override * remove byebug * enable rubocop Style/SingleArgumentDig
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
app/overrides/decidim/conferences/conference_speakers/index/replace_speaker.html.erb.deface
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
10 changes: 10 additions & 0 deletions
10
app/overrides/decidim/conferences/conferences/show/change_layout.html.erb.deface
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,10 @@ | ||
<!-- replace "erb[loud]:contains('layouts/decidim/shared/layout_two_col')" --> | ||
|
||
<% | ||
lay = if conference_nav_items(current_participatory_space).empty? | ||
"layouts/decidim/shared/layout_center" | ||
else | ||
"layouts/decidim/shared/layout_two_col" | ||
end | ||
%> | ||
<%= render layout: lay, locals: { reverse: true, main_enabled: false, columns: 10 } do %> |
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