Commit Graph

470 Commits (3888b299836569c780d43213c5b100f3f5674666)

Author SHA1 Message Date
Snakes a3664e252c
assetcache: change asset_siteimg macro to filter. 2022-09-24 03:14:20 -04:00
Snakes 98936efe60
assetcache: apply to all CSS and JS assets. 2022-09-24 03:04:06 -04:00
Aevann1 71b5367874 cachebust all css and js 2022-09-05 01:50:43 +02:00
Aevann1 46bc54cd2a change deux cover 2022-07-28 19:23:02 +02:00
Aevann1 b59b8e49a0 change deux cover 2022-07-13 21:09:57 +02:00
Aevann1 334c5d449b change deux assets 2022-07-12 02:35:40 +02:00
Aevann1 dc3dcc881f change cover for deux 2022-07-10 22:35:32 +02:00
Aevann1 4c2cb82f48 change deux' assets 2022-07-10 22:27:56 +02:00
Snakes 1b9237ceaf Add assetcache.asset_siteimg, has_logo.
Commit began by changing the duplicated SITE_NAME conditional in the
header to use a `has_logo` param, much like the recent `has_sidebar`.
From there, a need to include site-specific assets in assetcache was
revealed, adding the `asset_siteimg(...)` macro. This was applied
quite broadly, though not comprehensively.
2022-07-01 01:55:53 -04:00
Aevann1 f34c4e1196 stop using app.config for our own stuff 2022-06-24 17:08:57 +02:00
Aevann1 222367cea8 fix 500 errors 2022-06-24 03:28:34 +02:00
Aevann1 9dbe67bf90 respect user's chosen themecolor 2022-06-24 03:27:49 +02:00
Aevann1 d704592bdd cache-bust all previously broken images 2022-06-22 17:59:47 +02:00
Aevann1 20585ca543 add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes) 2022-06-22 17:51:19 +02:00
Snakes cb5f9d05c6 templates: Fix improper plurals, create helpers.
Previously, the three instances of 'Report[s]' and one instance of
'Coin[s]' in the UI templates were always pluralized, even when they
referred to a singular instance. This has been corrected by creating
a `plural` helper macro.

Additionally, this was used as impetus to create `utils/helpers.html`
to eventually move more recurring template logic into macros.
2022-06-07 05:26:22 -04:00
Aevann1 ead4c791a8 sdf 2022-05-27 22:03:23 +02:00
Snakes af77ec515d Templates: create assetcache template.
For too long, we've Replace-All'd to increment site asset version
numbers. This is a task that has an obvious solution using the
templating engine. As such, we now have templates/util/assetcache.html
which contains a dict of version numbers and a macro to generate the
versioned name of an asset.

Going forward, it is recommended that all future replace-all uses
are used as opportunities to switch to the macro. Do remember to
import the macro in all top-level templates, if not already present.
Recommended form: {%- from 'util/assetcache.html' import asset -%}
Then add a key to CACHE_VER in util/assetcache.html.
Then replace the asset path in templates eg: {{asset('css/main.css')}}

For all future versions of those assets, one can simply increment
the value in util/assetcache.html instead. This will greatly reduce
git spam touching unrelated files and generally be clearer and easier.
2022-05-26 22:47:32 -04:00
Aevann1 163267c88c Revert "Add Y'all Seein' Eye award."
This reverts commit a0f441a67d.
2022-05-26 02:51:42 +02:00
Snakes a0f441a67d Add Y'all Seein' Eye award.
Adds award to enable viewing profile visitors for non-mops and
non-patrons. This commit should encompass all frontend, backend, and
database changes necessary. Perhaps usable as a model for other
user upgrade flag awards.
2022-05-25 19:44:34 -04:00
Aevann1 b1d57227ff sfd 2022-05-25 03:18:36 +02:00
Aevann1 4e4f667387 journoid 2022-05-25 03:14:18 +02:00
Aevann1 bbd851210e fds 2022-05-24 17:32:49 +02:00
Aevann1 0a74a98ec5 big ass commit 2022-05-23 00:15:29 +02:00
Aevann1 b9316c0073 fsd 2022-05-21 15:19:02 +02:00
Aevann1 20cc20d806 fsd 2022-05-21 14:36:22 +02:00
Snakes 97bfdc5d3e Improve readability on header birthgay bg. 2022-05-19 19:15:49 -04:00
Aevann1 85bf0ab866 sfd 2022-05-20 00:10:02 +02:00
Aevann1 15f0b963c7 fc 2022-05-18 20:45:04 +02:00
Aevann1 3491c9187d pls review 2022-05-17 21:58:41 +02:00
Aevann1 9dbd9f42e0 fsd 2022-05-14 15:17:57 +02:00
Aevann1 f67860c566 sf 2022-05-13 13:03:44 +02:00
Aevann1 fac797006e sf 2022-05-10 14:14:09 +02:00
Aevann1 09f732d009 sf 2022-05-10 13:40:23 +02:00
Aevann1 3f2eb808b8 fd 2022-05-10 10:07:19 +02:00
Aevann1 db99dd8255 sfd 2022-05-10 09:32:11 +02:00
Aevann1 9bd8fcbd1c sf 2022-05-10 09:20:49 +02:00
Aevann1 421edf92f4 vxc 2022-05-09 16:44:11 +02:00
Aevann1 8fd2002013 dgf 2022-05-09 16:40:27 +02:00
Aevann1 8535ec8958 hk 2022-05-07 10:51:07 +02:00
Aevann1 b5abdccff8 sdf 2022-05-07 09:13:52 +02:00
Aevann1 036e61110a sfd 2022-05-07 09:12:59 +02:00
Aevann1 8a5fd22034 sfd 2022-05-07 09:09:46 +02:00
Aevann1 bb43be278b dg 2022-05-05 23:49:27 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 a35ef11d77 fds 2022-05-03 21:19:00 +02:00
Aevann1 7b834f2831 fd 2022-05-03 02:13:57 +02:00
Aevann1 18509b653a dfg 2022-05-02 21:39:18 +02:00
Aevann1 999c16e439 sfd 2022-05-02 02:04:25 +02:00
Aevann1 f3983ab491 sdf 2022-05-02 02:02:19 +02:00
Aevann1 41f08325fa sdf 2022-05-02 01:58:06 +02:00