rDrama/files/templates
Aevann ab554c163c Add a button for enabling push notifications (#158)
Safari requires some user interaction to subscribe to push notifications ([see this](https://developer.apple.com/documentation/usernotifications/sending_web_push_notifications_in_web_apps_safari_and_other_browsers)), so this PR adds a button to the navigation menu that requests notification permissions and does the subscription stuff. It also hides the "Mobile App" button from PWA

Side effect of this PR is that push permissions aren't gonna be requested automatically on other platforms anymore like they used to. Also it's probably a good idea to add this button somewhere else too because it's not very accessible on desktop
![image](/attachments/f2f78028-9e5f-484f-aa98-59eb60e3ccd5)

Co-authored-by: borntolurk <borntolurk@rdrama.net>
Reviewed-on: #158
Co-authored-by: borntolurk <borntolurk@noreply.fsdfsd.net>
Co-committed-by: borntolurk <borntolurk@noreply.fsdfsd.net>
2023-06-29 21:09:27 +03:00
..
admin rename submissions to posts 2023-06-08 02:26:32 +03:00
casino replace iphone's apostrophe 2023-04-27 16:48:41 +02:00
email change #fa2d8b to #ff459a 2023-06-07 06:44:14 +03:00
errors replace icon and headericon with carp 2023-06-28 17:31:41 +03:00
events Revert "remove poor mode" 2023-06-27 15:01:40 +03:00
login replace iphone's apostrophe 2023-04-27 16:48:41 +02:00
modals Revert "remove poor mode" 2023-06-27 15:01:40 +03:00
settings add confirmation for changing houses 2023-06-28 00:56:23 +03:00
special Revert "remove worldcup leaderboard" 2023-02-02 02:27:38 +02:00
sub bigger text for errors 2023-03-07 16:29:51 +02:00
userpage complement 774c09387c 2023-06-28 17:10:30 +03:00
util replace icon and headericon with carp 2023-06-28 17:31:41 +03:00
admins.html text consistency in /admins 2023-04-27 15:32:08 +02:00
api.html more margins 2023-02-10 09:27:46 +02:00
app.html use SITE_FULL_IMAGES in more places 2023-03-19 18:30:22 +02:00
awards.html hide confetti award when not birthgay 2023-06-26 13:30:24 +03:00
badges.html cachebust badges 2023-03-15 06:05:59 +02:00
banned.html leaderboard-text-headers-uniformization (#88) 2023-01-22 23:37:32 +00:00
blocks.html leaderboard-text-headers-uniformization (#88) 2023-01-22 23:37:32 +00:00
casino.html [DO NOT MERGE] titlesssssssssss (#468) 2022-11-21 02:52:22 -06:00
chat.html stop using numbers for admin_level comparison 2023-04-25 07:53:20 +02:00
chuds.html rename "agendaposter" to "chud" 2023-06-23 14:07:47 +03:00
comments.html better popovers 2023-06-27 17:14:33 +03:00
contact.html remove useless tabs 2023-05-06 00:47:07 +03:00
default.html exempt holes from the new banner code 2023-05-06 01:08:12 +03:00
donate.html hide merch link too 2023-03-13 08:24:12 +02:00
formatting.html <span> doesnt have an alt attribute 2023-06-08 00:12:47 +03:00
grassed.html fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3791217#context 2023-03-15 04:22:06 +02:00
group_memberships.html "Leave" instead of "Kick" when its myself 2023-05-16 13:40:57 +03:00
groups.html remove useless tabs 2023-05-06 00:47:07 +03:00
hats.html dont pass db session as an argument unless necessary 2023-06-08 03:49:37 +03:00
header.html Add a button for enabling push notifications (#158) 2023-06-29 21:09:27 +03:00
home.html Add a button for enabling push notifications (#158) 2023-06-29 21:09:27 +03:00
home_comments.html use new pagination system in /comments 2023-05-05 01:59:20 +03:00
journoid_banner.html get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
leaderboard.html remove unnecessary <pre> 2022-12-30 10:05:11 +02:00
log.html rename "agendaposter" to "chud" 2023-06-23 14:07:47 +03:00
lottery.html cache-bust all 2023-04-25 18:24:12 +02:00
marseys.html Revert "paginate /marseys" 2023-05-07 21:47:17 +03:00
megathread_index.html add changelog post to /directory 2023-05-02 16:51:50 +03:00
message.html restore all bootstrap margin and padding selectors 2023-01-01 10:38:09 +02:00
message_success.html restore all bootstrap margin and padding selectors 2023-01-01 10:38:09 +02:00
mobile_navigation_bar.html fix loggedout_counter 2023-06-29 18:56:16 +03:00
notifications.html rename submissions to posts 2023-06-08 02:26:32 +03:00
oauth.html move disabling buttons to bottom.js 2023-03-07 02:21:08 +02:00
pagination.html Revert "only if 2 dots" 2023-06-25 21:24:43 +03:00
poll_votes.html always use author_name even if its not needed for consistency 2023-03-01 21:28:10 +02:00
popover.html add original usernames to popover 2023-06-23 20:12:51 +03:00
post.html Add the edgy award (and some other goodies) (#157) 2023-06-26 14:38:48 +00:00
post_actions.html give new unlinked users award immunity in rdrama 2023-06-23 14:37:22 +03:00
post_actions_mobile.html give new unlinked users award immunity in rdrama 2023-06-23 14:37:22 +03:00
post_admin_actions_mobile.html rename "agendaposter" to "chud" 2023-06-23 14:07:47 +03:00
post_banned.html rename submissions to posts 2023-06-08 02:26:32 +03:00
post_listing.html Add the edgy award (and some other goodies) (#157) 2023-06-26 14:38:48 +00:00
root.html fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4097393#context 2023-05-05 05:02:18 +03:00
rules_WPD.html sneed 2023-03-17 08:07:59 +00:00
rules_rDrama.html sneed 2023-06-27 21:05:58 +00:00
search.html more intuitive search parameters 2023-06-24 17:36:57 +03:00
search_comments.html reduce margin in /search/messages 2023-03-22 22:21:32 +02:00
search_users.html [DO NOT MERGE] titlesssssssssss (#468) 2022-11-21 02:52:22 -06:00
settings.html restore blocks to its own page in the settings 2023-05-05 05:16:19 +03:00
settings2.html retire /h/changelog 2023-04-29 18:31:51 +02:00
shop.html show award discount on profiles and /shop/awards 2023-05-14 03:01:00 +03:00
sidebar.html same as last commit 2022-12-07 11:03:02 +02:00
sidebar_WPD.html fix sidebar bug on threads with "sidebar" in title lol 2023-06-28 00:25:35 +03:00
sidebar_rDrama.html carp sidebar 2023-06-28 17:24:11 +03:00
stats.html small lil tisms: table column sort disabling, remove ugly https:// string from rules (#112) 2023-02-06 02:07:39 +00:00
submit.html remove useless tabs 2023-05-06 00:47:07 +03:00
submit_emojis.html remove useless tabs 2023-05-06 00:47:07 +03:00
submit_hats.html use SITE_FULL_IMAGES in more places 2023-03-19 18:30:22 +02:00
transfers.html use new pagination system in /transfers 2023-05-05 04:06:25 +03:00
user_cards.html use new pagination system everywhere it isnt used 2023-05-06 00:47:07 +03:00
user_in_table.html fix error i think??? 2023-05-05 06:58:50 +03:00
user_listing.html cache-bust all 2023-04-25 18:24:12 +02:00
votes.html restore wrongly-reverted fix 2023-06-25 19:59:51 +03:00