Commit graph

7693 commits

Author SHA1 Message Date
Ben Rog-Wilhelm
a2bae47fbc
Merge pull request #98 from themotte/improve_theme
Added overriding styles for buttons and some new colors
2022-06-02 19:49:39 -05:00
Michael House
14633ac59c Added overriding styles for buttons and some new colors 2022-06-02 19:21:25 -05:00
Michael House
ac70313556 Replaced art assets 2022-06-02 18:30:43 -05:00
Ben Rog-Wilhelm
61d58fac16
Merge pull request #94 from themotte/fix_register_tabbing
Added tabindex values to inputs on register page
2022-05-28 10:14:34 -05:00
JulianRota
14e6167358
Merge pull request #95 from themotte/remove_chat_button
Removed chat button
2022-05-27 15:46:53 -04:00
Ben Rog-Wilhelm
f359e55275
Remove a pair of redundant CSS classes.
Co-authored-by: Ben Rog-Wilhelm <zorba@pavlovian.net>
Co-authored-by: Michael House <mjhouse@protonmail.com>
2022-05-27 06:50:50 -05:00
Michael House
35c823570c Added tabindex values to inputs on register page 2022-05-27 05:21:16 -05:00
Michael House
f7744334b6 Removed chat button 2022-05-27 05:19:29 -05:00
Michael House
82a18e5cad Up-merged and resolved conflicts in routes/login.p and routes/votes.py 2022-05-22 08:23:59 -05:00
FatherInire
fcba426009
Remove some gimmicky r/drama features.
Co-authored-by: Inire <>
2022-05-21 21:43:00 -05:00
Michael House
f3a479f991 Removed emoji feature from templates and deleted emoji images 2022-05-18 20:53:28 -05:00
Michael House
0565af7211 Removed emoji images from error pages 2022-05-18 20:05:12 -05:00
faul_sname
e1a1277268 [#80] Split marked.js into vendor part and custom part 2022-05-17 19:00:23 -05:00
Michael House
19903cccb5
Adding usernotes. 2022-05-16 11:53:24 -05:00
Ben Rog-Wilhelm
957edab4dc Update rule text for new site. 2022-05-15 14:21:17 -05:00
Ben Rog-Wilhelm
222c2d9df0 Edit a bunch of error messages. 2022-05-15 14:21:05 -05:00
Ben Rog-Wilhelm
8f973ff9c9
Add open-in-tab support for userpages.
Originally written by @faul-sname
2022-05-15 14:20:53 -05:00
Julian Rota
10d8cf037d Remove all references to Marseybux, coins, and awards from UI only 2022-05-10 23:49:45 -04:00
iro84657
b7da8b575a Add trailing LF to text files 2022-05-10 21:05:51 -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
iro84657
35fdbd2e2e Remove references to holes 2022-05-09 11:01:11 -04:00
iro84657
5500fc6e8d Remove unused sidebar templates and Snappy messages 2022-05-09 10:34:13 -04:00
JamPaladin
74476d6223
Add TheMotte theme and make it default.
I created a new theme, "TheMotte" in /assests/css. Someone with any design
skill at all should try improving this. Currently it is a copy of light.css

__main__.py defines the experience for a user without an account. I removed the
check for an OS environment variable, and defaulted to the new theme.

/classes/user.py defines the default for a new account. I removed the check for an OS
environment variable, and defaulted to the new theme.

/routes/settings.py has a list of the themes that checks them for... something.
I added the new one here, just in case.

/templates/settings_profile.html has a hardcoded list that controls which
themes appear in the user settings page. Added the new theme here, so you can
select it.
2022-05-09 07:29:31 -05:00
Ben Rog-Wilhelm
1ee9c1bfa7
Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
iro84657
193ff08a3d Remove special cases based on request.host 2022-05-09 01:40:09 -04:00
iro84657
71743a3bfc Remove special cases based on SITE_NAME 2022-05-09 01:40:09 -04:00
Ben Rog-Wilhelm
6d2e4b3652
Merge pull request #43 from evangambit/backgroundImages
Remove old backgrounds and replace with a (legal) placeholder
2022-05-09 00:01:50 -05:00
evangambit
4e533e5c37 Remove old backgrounds and replace with a (legal) placeholder
I'm not deleting the code entirely since we may want to use it in the future
2022-05-08 21:43:46 -07:00
iro84657
0bab69947a
Remove hot posts button from mobile interface (#38)
This commit also cleans up some remnants of the previous default sort
orders.
2022-05-08 23:21:43 -05:00
64617
f6cc00ea1f don't change noeol in files to make the PR cleaner 2022-05-09 11:03:52 +08:00
64617
c30de9335e
Merge branch 'themotte:frost' into frost 2022-05-09 02:52:59 +00:00
64617
7c18978c54 default comment sorts to new 2022-05-09 10:51:27 +08:00
Michael House
d25d5aa70e Created rules page and updated sidebar 2022-05-08 07:29:01 -05:00
Michael House
74cdfce186 Removed or moved some images that are not relevant to TheMotte 2022-05-04 05:08:48 -05:00
Michael House
e9d6bb151e Removing reliance on rDrama assets 2022-05-03 22:10:41 -05:00
Michael House
a18b2f134e Set static image for banner 2022-05-03 21:29:33 -05:00
Aevann1
9a793883c1 dsa 2022-05-02 23:30:03 +02:00
TLSM
bdda95a582
Partially revert self-upvote UI bug fix. (#239)
Turns out the snippet in templates/comments.html was necessary to
get proper behavior in notifications.

Might come back to debug this later, but people use notifications more
than they deal with edge case self-upvotes, so reverting for now.

The changes to prevent coin fuckery with self-upvoting appear to work
correctly in the wild, so leaving those in place.
2022-05-02 21:42:28 +02:00
Aevann1
307c7afc4d dfg 2022-05-02 21:39:18 +02:00
carpathianflorist
0171d965a1
Update journoid_banner.html 2022-05-02 15:13:10 -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
9057d39729 sdf 2022-05-02 20:56:10 +02:00
Aevann1
fbf86d553f tre 2022-05-02 20:50:43 +02:00
TLSM
d60ee252a0
Add badge quantity and rarity to /badges. (#238)
Implements feature request to know how many of each badge exists and
to have a 'rarity', a la Steam or PSN badges, relative to number of
non-lurker users.

Because Postgres `COUNT()`s are notoriously costly, /badges has been
memoized for 1hr to avoid a DOS target.
2022-05-02 20:14:06 +02:00
TLSM
5be5528982
Update journoid banner entries. (#237)
Fix Business Insider URL: was duplicate of LoTT Mashable link.
Add Glenn Beck Program mention.
2022-05-02 20:13:07 +02:00
TLSM
344df24148
Fix comment self-upvote removal UI bug. (#236)
Fixes minor UI bug when removing self-upvote on a comment. Previous
behavior, starting from a new comment:
    - Initial state: score 1 from self-upvote, upvote button shows
      highlighted as `color: var(--primary)`.
    - Click on upvote button to remove self-upvote → button
      unhighlights, score displays as 0.
    - [reload page]
    - Score displays as 0, but button is highlighted.
    - Click on upvote button → button unhighlights, score displays
      as -1. [If you reload the page now, state is score 0 &
      highlighted; no change in serverside votes.]
    - Click on upvote again → button highlights, score displays as 0.
    - [reload page]
    - Score displays as 1, button is highlighted.
Direct cause is `templates/comments.html @ L115-117`. I checked
`api_comment`, though, and it adds a vote on new comments, and that
state change propagates to the template's parameters before it renders,
so I believe the only time this triggers is specifically when a user
has removed their self-upvote. Bug is fixed when testing with L115-117
removed. Is there some other edge case it was meant to solve?

Secondary bugfix: Removing a self-upvote _costs_ you a coin & a
truescore point. I think this is one of the few ways to get negative
dramacoin. I chose to fix it by having self-votes and self-unvotes not
change coins/truecoins. The alternative of having new comments & posts
give the user +1 coin/truecoin would modify site behavior, and you'd
retroactively owe some powerusers thousands of DC & truescore.
2022-05-02 20:12:28 +02:00
Aevann1
aa3d53f486 dfs 2022-05-02 03:06:20 +02:00