-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add the single page notification button to publication template #2286
Merged
Conversation
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
danacotoran
force-pushed
the
add_the_button_to_template
branch
from
November 16, 2021 11:34
14b35cb
to
3602f43
Compare
danacotoran
force-pushed
the
add_the_button_to_template
branch
from
November 17, 2021 15:09
3602f43
to
5e963a5
Compare
huwd
reviewed
Nov 17, 2021
@@ -134,6 +134,10 @@ def render_template | |||
return | |||
end | |||
|
|||
# use these and `@content_item.base_path` in the template | |||
@notification_button_visible = in_single_page_notifications_trial? |
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.
These could work as helpers, but I think this is good for now?
danacotoran
force-pushed
the
add_the_button_to_template
branch
from
November 17, 2021 17:15
5e963a5
to
ac34b41
Compare
huwd
approved these changes
Nov 17, 2021
danacotoran
changed the title
[WIP][DO NOT MERGE]Add the button to template
[WIP][DO NOT MERGE]Add the button to publication template
Nov 18, 2021
danacotoran
force-pushed
the
add_the_button_to_template
branch
from
November 18, 2021 09:49
ac34b41
to
090a832
Compare
andysellick
reviewed
Nov 18, 2021
danacotoran
changed the title
[WIP][DO NOT MERGE]Add the button to publication template
Add the single page notification button to publication template
Nov 18, 2021
danacotoran
force-pushed
the
add_the_button_to_template
branch
from
November 18, 2021 11:33
090a832
to
a995197
Compare
andysellick
approved these changes
Nov 18, 2021
danacotoran
changed the title
Add the single page notification button to publication template
[DO NOT MERGE] Add the single page notification button to publication template
Nov 18, 2021
If we only want to show the button on certain pages, and only have the javascript behaviour if the user has a session cookie, then we'll need these controller changes.
This option is necessary to achieve correct spacing when the email notification button is added after the published_dates component
barrucadu
force-pushed
the
add_the_button_to_template
branch
from
November 23, 2021 10:14
a995197
to
4c883d1
Compare
barrucadu
changed the title
[DO NOT MERGE] Add the single page notification button to publication template
Add the single page notification button to publication template
Nov 23, 2021
barrucadu
approved these changes
Nov 24, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds the Single page notification button to the
publication
template, after the metadata blocks at the top and bottom of the page.We only want to launch with a couple of pages in the initial stages, therefore the button will initially show up only on the pages listed on
in_single_page_notifications_trial?
undercontent_items_controller.rb