Skip to content

Commit e53ce07

Browse files
Inject person header into sticky content of page
1 parent a445ac7 commit e53ce07

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/views/layouts/application.html.haml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
- elsif devise? && devise_mapping.omniauthable?
7070
=button_to ti("devise.sign_in"), omniauth_authorize_path(resource_name, resource_class.omniauth_providers.first), {data: { "turbo": false, controller: "instant-click" }, class: "btn btn-link"}
7171
= render "application/header_tabbar", tabs: global_tabs, bar_class: "skills-navbar", active_path: global_navbar_path
72+
.container-fluid
73+
= content_for :sticky_content
7274
%div.container-fluid
7375
%div.row.d-flex.justify-content-center
7476
%span#flash-messages

app/views/layouts/person.html.haml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= content_for :content do
1+
= content_for :sticky_content do
22
%div.profile-header-and-tabs.pt-2
33
%div
44
=render partial:"people/search", :locals => {person: @person}
@@ -11,6 +11,7 @@
1111
= export_action_link export_cv_person_path(@person), data: { turbo_frame: "remote_modal" }
1212
%li.text-nowrap
1313
= destroy_action_link
14+
= content_for :content do
1415
%turbo-frame#tab-content.d-flex.gap-3{"data-controller": "scroll"}
1516
= yield
1617
= render template: "layouts/application"

0 commit comments

Comments
 (0)