Commit graph

400 commits

Author SHA1 Message Date
TLSM
d005bd6237 Fix desktop header dropdown menu clipping off page.
The width of the account menu dropdown header is determined by the
length of one's username. Users with short names cause the dropdown
menu to partially clip off the right side of the page, which is
unsightly and impedes usage thereof. This commit enforces a minimum
width to prevent that.

Alternate approaches such as right-aligning the dropdown proved
unwieldy with CSS when fixing this same bug on the upstream.
2022-08-17 14:03:11 -05:00
Ben Rog-Wilhelm
800ae8d2dc Split SITE_NAME into computer-readable SITE_ID and human-readable SITE_TITLE. 2022-07-31 18:53:18 -05:00
painejohn
0e165e17c0 Fixes #110 "Signout doesn't always work"
I tried reproducing the issues from #110 but without luck. The
workflow looks a little like this:

- User changes their avatar.
    - This triggers a POST request to the profile endpoint.
- User clicks "Log out" from the dropdown menu"
    - This triggers the post_toast function in js that makes a POST to
      /logout, which clears the user's session. Then, on receipt of the
      response, the js calls `location.reload`, which replays the
      browser's last action, which in our case is the earlier POST
      request to the profile endpoint. This is why the browser asks
      whether it's OK to resubmit the data _again_. Agreeing resubmits
      the first POST request.
    - After `location.reload`, since the user is no longer logged in,
      they either get a 405 (from the profile edit page) or a 500 (from
      the profile overview page).

This PR then changes the `/logout` endpoint from POST to GET, then
updates the header template to change the "Log out" anchor to simply
link to "/logout" instead of calling any js.

Reasoning behind it:
- logout doesn't modify server-side resources, so it's safe to make it a
  GET request.
- Making it a GET prevents the browser from ever displaying the "data
  resubmit" warning window.
- The "/logout" endpoint can now simply redirect to the homepage.
2022-07-29 06:47:19 -05:00
Julian Rota
81610b803a Support settings for integers and allow setting filter settings in UI 2022-07-09 06:33:41 -05:00
Michael House
1f6671ab55 Fixed desktop top menu bar icons 2022-06-05 17:14:29 -05:00
Michael House
e7c7fba0ad Fixed 404 on random user button and changed icons 2022-06-05 17:02:34 -05:00
Michael House
f3f2aa3935 Made a lot of small changes in the frontend 2022-06-04 07:48:26 -05:00
Michael House
058e50add7 Added new default text and default link thumbnails, color fixes for some buttons 2022-06-03 06:36:03 -05:00
Michael House
14633ac59c Added overriding styles for buttons and some new colors 2022-06-02 19:21:25 -05:00
Michael House
f7744334b6 Removed chat button 2022-05-27 05:19:29 -05:00
Julian Rota
10d8cf037d Remove all references to Marseybux, coins, and awards from UI only 2022-05-10 23:49:45 -04:00
Chris Drzewiecki
fd2630e0d1 Removed user listing and shop for non-admin users 2022-05-10 01:04:55 -06:00
iro84657
8c2ee6a57a Remove references to Android apps 2022-05-09 21:59:20 -04:00
iro84657
6a31b87c35 Remove links to rdrama.net and Aevann1/rDrama 2022-05-09 21:55:42 -04:00
Ben Rog-Wilhelm
1ee9c1bfa7
Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
iro84657
71743a3bfc Remove special cases based on SITE_NAME 2022-05-09 01:40:09 -04:00
Aevann1
8c77b36c33 sdf 2022-05-02 21:11:03 +02:00
Aevann1
d124c14a78 dfg 2022-05-02 21:10:49 +02:00
Aevann1
aa3d53f486 dfs 2022-05-02 03:06:20 +02:00
Aevann1
705af0d8fe sdf 2022-05-02 02:41:00 +02:00
Aevann1
495d6eb0b2 fsd 2022-05-02 02:02:31 +02:00
Aevann1
bd9ff67e74 sdf 2022-05-02 02:02:19 +02:00
Aevann1
f743de1666 jg 2022-05-02 01:51:47 +02:00
Aevann1
709a7fc4b5 sfd 2022-05-01 23:44:38 +02:00
Aevann1
314d0dd781 gdf 2022-04-29 15:36:33 +02:00
TLSM
060e19bfb0
Add dynamic journoid banner text. (#232)
The .srd header banner currently has fixed text. However, there have
been many gayops which have made the news. journoid_banner.html is a
dynamic template which selects a random one to present.

Also, stylesheets and markup for the banner have been unslurred.
2022-04-28 23:58:41 +02:00
Aevann1
a3170d2677 dsf 2022-04-28 03:38:17 +02:00
Aevann1
cb5fcd7a1d dsf 2022-04-28 02:45:49 +02:00
Aevann1
c8724bdae1 fds 2022-04-28 02:44:38 +02:00
Aevann1
259c2dd323 sfd' 2022-04-28 02:37:12 +02:00
Aevann1
a3832f4c5b fds 2022-04-28 02:04:01 +02:00
Aevann1
95a0130cc0 fds 2022-04-27 16:29:32 +02:00
gooseman
6526f7534e
make logo not giant lol 2022-04-26 17:25:06 -04:00
Aevann1
35697540af fsd 2022-04-26 15:40:37 +02:00
Aevann1
8f665c6780 gf 2022-04-26 15:28:35 +02:00
Aevann1
3189fedf89 sfd 2022-04-26 00:45:05 +02:00
Aevann1
37908005fa vxc 2022-04-26 00:41:34 +02:00
Aevann1
7c08718dca fsd 2022-04-26 00:36:47 +02:00
Aevann1
6bb48bbcef fsd 2022-04-26 00:35:27 +02:00
Aevann1
79c14aad1d nv 2022-04-26 00:29:35 +02:00
Aevann1
269a402309 fsd 2022-04-26 00:28:20 +02:00
Aevann1
7768cfc9de vcx 2022-04-24 19:30:05 +02:00
Aevann1
4c3ca8732c fsd 2022-04-22 21:41:37 +02:00
Aevann1
62d4afc577 fds 2022-04-22 21:26:49 +02:00
Aevann1
cecde6016d fsd 2022-04-22 21:24:28 +02:00
Aevann1
d440a35edf sfd 2022-04-22 21:23:38 +02:00
Aevann1
2d6082bde2 fds 2022-04-22 21:22:11 +02:00
Aevann1
4d16b37b19 fds 2022-04-21 00:19:43 +02:00
Aevann1
96b55696e4 fds 2022-04-18 23:11:30 +02:00
Aevann1
0f84e6033e fds 2022-04-18 19:20:10 +02:00