Commit Graph

19 Commits (e3a8f5eda659a9f36897eaf446fc4fe3948a7a8a)

Author SHA1 Message Date
Aevann1 de8be8dd0e get rid of <pre> being used as vertical spacing 2022-10-29 02:47:48 +02:00
Snakes 98936efe60
assetcache: apply to all CSS and JS assets. 2022-09-24 03:04:06 -04:00
Aevann1 dff5bcefcf add loop.index to vote tables 2022-09-13 19:35:33 +02:00
Aevann1 34aaed8045 add commas to numbers 2022-09-10 08:43:38 +02:00
Aevann1 e9445efc22 make bootstrap work on localhost 2022-09-08 19:12:46 +02:00
Aevann1 332a03219b add hats to most tables 2022-09-05 05:01:06 +02:00
Aevann1 3e75309821 rewrite sort_table.js, credit to htbz 2022-09-03 20:24:26 +02:00
Aevann1 48affb53e6 more hat shit 2022-09-03 05:04:51 +02:00
Snakes 5f09df467a Add uid data attributes to vote listing templates.
As a stopgap instead of providing proper API access to vote listings,
expose the user ID of a voter as a data attribute in the DOM so
automated consumers can easily scrape user IDs of voters, rather than
having to make additional requests to turn a username into a user ID.
2022-08-28 12:16:45 -04:00
Aevann1 0f11312d24 add house awards 2022-08-27 04:57:19 +02:00
Aevann1 45d5f52388 restore betting 2022-08-26 23:53:17 +02:00
Aevann1 03620d984c improve sorting tables 2022-07-14 18:20:09 +02:00
Aevann1 abb54747c2 fix unrendered html in poll_votes page 2022-07-14 15:31:34 +02:00
Aevann1 382df30e1f show ALL timestamps in user's timezone + move scripts to the bottom of HTML templates to mimic rocketloader's behavior on localhost (for testing) 2022-07-09 10:35:47 +02:00
Aevann1 57e424af5b revert the "defer" thing 2022-07-03 12:10:04 +02:00
Aevann1 a49325ba14 defer all scripts (this won't change anything for us since we use rocketloader, but it will fix javascript on localhost) 2022-07-03 09:42:33 +02:00
Aevann1 3245656787 show timestamps in the user timezone 2022-07-03 09:41:25 +02:00
Aevann1 40182f5f4d show the body of the poll option in the vote page 2022-07-03 08:38:43 +02:00
Aevann1 d0d15c319a Poll rework (#312)
* poll rework

* forgot to do joinedload on comments

* Fix logic errors with voting, SQL syntax.

Kitchen sink commit from review of poll-rework changes:
  1. Fix seed-db.sql syntax error.
  2. Fix SQL patch file duplication of *submissions* tables rather
     than one set of submissions and one for comments.
  3. Start makeshift SQL patch folder, since this is a large change
     that contributors may wish to apply to their local instances.
  4. Fix checkbox (non-`exclusive`) polls being unable to be
     unchecked. For consistency with `exclusive` polls, they should.
  5. Fix changing the option of an `exclusive` poll when both
     exclusive and non-exclusive options are present in one comment/
     post causing the non-exclusive options to become unchecked.
     (which, by my reading of SQLAlchemy `Query.one_or_none()`
     really could break quite badly in some cases).

* link relationships with their counterparts

* small modification to poll unchecking

Co-authored-by: TLSM <duolsm@outlook.com>
2022-07-02 08:48:04 +02:00