47 Commits

Author SHA1 Message Date
Klaas van Schelven a4ecd386b6 Support hosting at subpath
"In principle" setting `SCRIPT_NAME` is enough. The way we do this is [1] using
`FORCE_SCRIPT_NAME` (which does not depend on messing with reverse proxy
settings and [2] by deducing the correct value from `BASE_URL` (which must be
set anyway) automatically.

By works I mean: `reverse` and `{% url` pick it up from there.

However, there are subtleties / extra work:

* `STATIC_URL` is needed too b/c https://code.djangoproject.com/ticket/34028

* in many pre-existing code I just created a path manually in the html. Such
  hrefs are obviously not magically fixed for script_name. Rather than doing
  the "full rewrite" (into `{% url`) this commit just prepends the
  `script_name` in those cases. That's the way forward that will least likely
  break and it gives us something to grep for if we ever want to 'do it
  right'.

* `LOGIN_REDIRECT_URL` and `LOGIN_URL` needed to use a view-name for this to
  work (using a view-name gets revolved using the thing that introduces
  `script_name`)

Checked, no work needed:

* views (`redirect` and `HttpResponseRedirect`)
* html uses of action="..."

Fix #93
2025-09-05 22:47:22 +02:00
某亚瑟 2b5fb1bf67 Basically completed i18n support, and Chinese translation
Implement most Chinese text translations, adding default recognition browser language and user settings language
2025-08-02 10:25:19 +08:00
Klaas van Schelven 9a6d453443 Fix 2 bare_base/barest_base mistakes re dark mode
* in 1abc30a760 the hardcoding of ="dark" (during development)
  was accidentally checked in; it never should have been.

* in e14b3eaaa6 I mixed up the bare*base templates. It's actually
  bare_base.html that's for 404/500 etc; barest_base is more bare
  visually (it's the box-based layout for login etc), but it doesn't
  need to be so careful not to use variables.

See #40
2025-07-08 17:04:38 +02:00
Klaas van Schelven 4e83a42f39 Dark mode: 'yellow' bar less ugly
my chatbot tells me it felt ugly because

>  bg-yellow-900 [..] is a very saturated, reddish mustard — almost
>  brown-orange. That’s why it feels so jarring in dark mode: it's too warm,
>  too saturated, and clashes with a cool-dark UI. [..] Try bg-amber-800
>  instead. Tailwind's amber palette is warmer and more muted than yellow,
>  designed to fit better in dark UIs.

No idea if the reasoning is sound, but it "looks good" so I'm pushing ahead.
2025-07-07 16:41:07 +02:00
Klaas van Schelven 1abc30a760 Dark mode: faucet visible in logo
not my best work ever, but at least a visible faucet this way...
2025-07-07 12:09:21 +02:00
Klaas van Schelven e14b3eaaa6 barest_base: don't assume user is set.
its purpose is to "not break" for e.g. 404/500, so I want as little logic in
there as possible.
2025-07-07 11:36:36 +02:00
Fabien LEFEBVRE (d1ceward) 9cec248ad8 Add dark theme 2025-06-16 15:37:37 +02:00
Klaas van Schelven f56e3c647a Auth Tokens: a UI 2025-04-14 10:35:37 +02:00
Klaas van Schelven 37fcc348c3 Preserve query when navigating from issues to events
and vice versa
2025-03-05 16:53:18 +01:00
Klaas van Schelven 3f432727d9 Warn about lack of EMAIL_BACKEND in the interface 2024-11-29 15:59:14 +01:00
Klaas van Schelven 944f9d9a84 Add title tags to (parent elements of) svg icons 2024-11-29 08:25:11 +01:00
Klaas van Schelven 71d6e89c93 Show warning message when there are many/stale snappea tasks
As discussed in #11, there are scenarios (e.g. misconfiguration) where snappea
does not pick up the tasks. Events not showing up in Bugsink, w/o further
indication why that may be, leaves people confused. Better to warn explicitly
in that case.
2024-11-15 14:51:41 +01:00
Klaas van Schelven 47bf207db5 Nudge non-paying users to paid (yellow banner, site-title) 2024-11-11 14:05:02 +01:00
Klaas van Schelven 8c09c68ecd Users: some interface to edit/view them 2024-10-02 15:41:42 +02:00
Klaas van Schelven f450bf6c29 Add 'alt' to img 2024-09-26 15:25:18 +02:00
Klaas van Schelven 3d66a60b41 Hide away links to admin interface 2024-09-13 09:12:28 +02:00
Klaas van Schelven 7b5aaca3ac Preferences form 2024-09-12 12:41:40 +02:00
Klaas van Schelven 63cfbb2acd Hide version info in the HTML source
so that we at least can quickly inspect it
2024-07-18 14:59:01 +02:00
Klaas van Schelven e82edb7817 Current project's issues in the menu 2024-06-17 10:45:19 +02:00
Klaas van Schelven 33f2d55eab SINGLE_TEAM & SINGLE_USER implemented
in-template only; since we make source available it's a bit silly to put all kinds
of 'security' in place that could easily be edited out
2024-06-10 15:41:54 +02:00
Klaas van Schelven e9ae001665 Tiny fix with Logout button margins 2024-06-10 14:27:12 +02:00
Klaas van Schelven f614d0c26a full width form fields 'everywhere'
also distinguish between labeled/placeholder style
2024-06-10 14:24:55 +02:00
Klaas van Schelven d71916940a Factor out 'tailwind_formfield' tag 2024-06-10 10:00:06 +02:00
Klaas van Schelven 784f0584f0 Top menu friendlier look (rounded) 2024-06-07 11:03:20 +02:00
Klaas van Schelven de8bd65a3a WIP teams & project-management (6)
not extensively tested, but it starts to feel quite complete 'for now'
2024-06-07 10:52:25 +02:00
Klaas van Schelven 004b586e2d The most basic of 'onboarding', as it pertains to teams 2024-06-06 10:54:56 +02:00
Klaas van Schelven b99929e588 Log out using POST
Log out via GET was deprecated in Django 4.1
https://docs.djangoproject.com/en/4.1/releases/4.1/#log-out-via-get
2024-05-30 21:35:30 +02:00
Klaas van Schelven 9b6409f0cd Non-ugly login page 2024-05-27 15:10:01 +02:00
Klaas van Schelven 9fcbfb9033 Add templates for 404, 500 2024-05-22 09:37:51 +02:00
Klaas van Schelven f72b2522b8 Use tailwind_preload_css
> The tag generates a preload directive for your stylesheet, which improves
> loading performance in production. Place it above the {% tailwind_css %} tag:

See e.g. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload

For a brief moment I thought that this was malfunctioning, because it is missing
the ?v=... part, but that part is DEBUG-only, so we don't care about it for real
use-cases
2024-05-13 14:33:25 +02:00
Klaas van Schelven 8e6a7ec6e4 Projects in menu: Just hide the already-selected item from the menu entirely 2024-03-28 17:19:22 +01:00
Klaas van Schelven 958b121004 Active project in menu: don't use italic, use bold and a small arrow 2024-03-28 17:18:18 +01:00
Klaas van Schelven bb20c68459 Menu bar: orgs & projects pushed into dropdowns (rough sketch) 2024-03-28 17:14:48 +01:00
Klaas van Schelven 4ef163d9b7 margin 2024-03-15 18:07:08 +01:00
Klaas van Schelven 96a68919a2 Site-title at the top 2024-03-15 18:06:42 +01:00
Klaas van Schelven d3bb7a5723 logo should link to main 2024-02-06 22:49:06 +01:00
Klaas van Schelven 5abda7b901 Logo added; speck removed 2024-02-04 22:36:13 +01:00
Klaas van Schelven 7af93388d5 Logout link should be visible only when user is logged in 2024-02-04 22:19:58 +01:00
Klaas van Schelven ce9e8b42da users must be logged in at all times; accounts/* flows 2024-02-04 22:13:32 +01:00
Klaas van Schelven a5971b5aef site_title: display in templates too 2024-01-16 23:15:05 +01:00
Klaas van Schelven 901055938c Project-list in the menu: from DB rather than static nonsense 2024-01-16 23:14:56 +01:00
Klaas van Schelven ab72931bf0 PoC page/scroll-stability when collapsing 2023-11-17 18:56:01 +01:00
Klaas van Schelven d22df7fd3c Show/hide stack frames 2023-11-16 22:36:04 +01:00
Klaas van Schelven c9e27efd3a Add 'site' navigation 2023-11-14 22:43:51 +01:00
Klaas van Schelven 6db3f94eb6 View events only as part of an issue 2023-11-14 19:14:53 +01:00
Klaas van Schelven 5d1bb46a40 Use base.html (and adapt it to my tastes) 2023-11-14 18:51:42 +01:00
Klaas van Schelven 79e333c923 tailwind 2023-11-08 20:16:10 +01:00