-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Separate .app-main and #main turbo-frame (reverting #497) but move turbo-frame into layout partial * Remove turbo stream layout in order to apply more granular update behavior * Introduce #content turbo-frame in layout partial and deprecate index_turbo_frame
- Loading branch information
Showing
8 changed files
with
48 additions
and
64 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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,22 +1,26 @@ | ||
<%= render "header", hide_breadcrumbs: local_assigns.fetch(:hide_breadcrumbs, false) if local_assigns.fetch(:header, true) %> | ||
<turbo-frame id="main" data-turbo-action="advance"> | ||
<%= render "header", hide_breadcrumbs: local_assigns.fetch(:hide_breadcrumbs, false) if local_assigns.fetch(:header, true) %> | ||
|
||
<div class="main-content-area" data-scroll-target> | ||
<turbo-frame id="flash"> | ||
<%= render "trestle/flash/flash" %> | ||
</turbo-frame> | ||
<div class="main-content-area" data-scroll-target> | ||
<turbo-frame id="flash"> | ||
<%= render "trestle/flash/flash" %> | ||
</turbo-frame> | ||
|
||
<%= render "utilities" %> | ||
<%= render "tabs", data: { controller: "tabs tab-errors" } %> | ||
<turbo-frame id="content" data-controller="reloadable" data-turbo-action="advance"> | ||
<%= render "utilities" %> | ||
<%= render "tabs", data: { controller: "tabs tab-errors" } %> | ||
|
||
<% if local_assigns.fetch(:wrapper, true) %> | ||
<%= container do |c| %> | ||
<%= yield %> | ||
<% if local_assigns.fetch(:wrapper, true) %> | ||
<%= container do |c| %> | ||
<%= yield %> | ||
|
||
<% c.sidebar do %> | ||
<%= content_for(:sidebar) %> | ||
<% end if content_for?(:sidebar) %> | ||
<% end %> | ||
<% else %> | ||
<%= yield %> | ||
<% end %> | ||
</div> | ||
<% c.sidebar do %> | ||
<%= content_for(:sidebar) %> | ||
<% end if content_for?(:sidebar) %> | ||
<% end %> | ||
<% else %> | ||
<%= yield %> | ||
<% end %> | ||
</turbo-frame> | ||
</div> | ||
</turbo-frame> |
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 +1,2 @@ | ||
<%= turbo_stream.replace admin.build_instance({}, params), template: "trestle/resource/#{instance.persisted? ? "show" : "new"}" %> | ||
<%= turbo_stream.reload if modal_request? && instance.persisted? %> |
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 +1,3 @@ | ||
<%= turbo_stream.close_modal instance %> | ||
<%= turbo_stream.flash %> | ||
<%= turbo_stream.reload %> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
<%= turbo_stream.replace instance, template: "trestle/resource/show" %> | ||
<%= turbo_stream.reload if modal_request? %> |