-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a duplicated header for inbox message #3955
Conversation
@@ -1,5 +1,3 @@ | |||
<% content_for :page_header_title, 'Message' %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have the same exact line inside the provider/admin/messages/message
template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should it be removed from the template and ensure that it is always there by having it here? Just asking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The provider/admin/messages/message
partial is used in 2 other templates, so I guess it's better having it three to avoid duplication.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant the opposite - remove from templates and keep in the partial (here). But either way, do as you feel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we are understsanding each other 😬
So there is a partial with the header included
<% content_for :page_header_title, 'Message' %> |
<%= render 'provider/admin/messages/message', :message => @message %> |
<%= render 'provider/admin/messages/message', :message => @message %> |
<%= render 'provider/admin/messages/message', :message => @message %> |
In addition, porta/app/views/provider/admin/messages/inbox/show.html.erb had its own <% content_for :page_header_title, 'Message' %>
which was causing a duplication, and I removed that one.
What this PR does / why we need it:
This is a tiny fix that removes the double title.
Before:
![Screenshot from 2024-12-18 15-22-20](https://private-user-images.githubusercontent.com/1270328/396960691-01aa91da-4e4f-4817-a77e-c15afd4d45cb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjA2ODEsIm5iZiI6MTczOTM2MDM4MSwicGF0aCI6Ii8xMjcwMzI4LzM5Njk2MDY5MS0wMWFhOTFkYS00ZTRmLTQ4MTctYTc3ZS1jMTVhZmQ0ZDQ1Y2IucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTEzOTQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGY1M2M0MTYwZGUyZjAzYjdlMTQ3OWViYzIxYjFjNjUwZTlhMGIzZDExMGRlMGZjM2U3M2NkNzRhZjE2OTIyNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.9qMhd1-xddKo31LNZLybir-BLmg_5XyaNL8Qil0WHlo)
After:
Which issue(s) this PR fixes
none
Verification steps
Special notes for your reviewer: