5 Commits

Author SHA1 Message Date
Jelle van der Waa
b814ab4d72 Update django to the latest version
All checks were successful
Github-Actions / build (push) Successful in 2m44s
2025-10-02 11:30:53 +02:00
Jelle van der Waa
a0ec59ddc3 main: render package maintainers pgp keys correctly
We need to allow html to be passed into format_html.
2025-09-18 18:00:44 +02:00
Lukas Fleischer
70e796acc3 Fix logout link formatting
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2025-09-17 21:14:21 +02:00
Jelle van der Waa
242a126245 Update to Django 5.1.12 2025-09-17 21:13:11 +02:00
Jakub Klinkovský
03a0e748ec Fix format string for package links in todo lists
Fixes 0cf24055d5

Fixes https://github.com/archlinux/archweb/issues/582
2025-09-17 09:33:24 +02:00
4 changed files with 7 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ def pgp_key_link(key_id, link_text=None):
return format_html('<a href="{url}" title="PGP key search for {key}">{content}</a>',
url=url,
key=format_key(key_id),
content=link_text)
content=mark_safe(link_text))
@register.simple_tag

View File

@@ -1,5 +1,5 @@
-e git+https://github.com/fredj/cssmin.git@master#egg=cssmin
Django==5.1.10
Django==5.1.13
IPy==1.1
Markdown==3.3.7
bencode.py==4.0.0

View File

@@ -1207,12 +1207,12 @@ ul.signoff-list {
/* style input as a normal anchor */
input {
background: none!important;
background: none !important;
border: none;
padding: 0!important;
/*optional*/
padding: 0 0.5em !important;
/* optional */
font-family: arial, sans-serif;
font-size: 0.9em;
font-size: 100%;
/*input has OS specific font-family*/
color: #07b;
}

View File

@@ -13,7 +13,7 @@ def todopkg_details_link(todopkg):
pkg = todopkg.pkg
if not pkg:
return todopkg.pkgname
link = '<a href={url}s" title="View package details for {pkgname}">{pkgname}</a>'
link = '<a href="{url}" title="View package details for {pkgname}">{pkgname}</a>'
url = pkg_absolute_url(todopkg.repo, todopkg.arch, pkg.pkgname)
return format_html(link, url=url, pkgname=pkg.pkgname)