Compare commits
8 Commits
59229f280b
...
b814ab4d72
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b814ab4d72 | ||
![]() |
a0ec59ddc3 | ||
![]() |
70e796acc3 | ||
![]() |
242a126245 | ||
![]() |
03a0e748ec | ||
![]() |
fb9b330535 | ||
![]() |
6bc1b49071 | ||
![]() |
0cf24055d5 |
@@ -9,24 +9,24 @@ register = template.Library()
|
|||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def jquery():
|
def jquery():
|
||||||
version = '3.6.0'
|
version = '3.6.0'
|
||||||
filename = 'jquery-%s.min.js' % version
|
filename = f'jquery-{version}.min.js'
|
||||||
link = staticfiles_storage.url(filename)
|
link = staticfiles_storage.url(filename)
|
||||||
return mark_safe('<script type="text/javascript" src="%s"></script>' % link)
|
return mark_safe(f'<script type="text/javascript" src="{link}"></script>')
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def jquery_tablesorter():
|
def jquery_tablesorter():
|
||||||
version = '2.31.0'
|
version = '2.31.0'
|
||||||
filename = 'jquery.tablesorter-%s.min.js' % version
|
filename = f'jquery.tablesorter-{version}.min.js'
|
||||||
link = staticfiles_storage.url(filename)
|
link = staticfiles_storage.url(filename)
|
||||||
return format_html('<script type="text/javascript" src="%s"></script>' % link)
|
return format_html('<script type="text/javascript" src="{link}"></script>', link=link)
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def d3js():
|
def d3js():
|
||||||
version = '3.5.0'
|
version = '3.5.0'
|
||||||
filename = 'd3-%s.min.js' % version
|
filename = f'd3-{version}.min.js'
|
||||||
link = staticfiles_storage.url(filename)
|
link = staticfiles_storage.url(filename)
|
||||||
return format_html('<script type="text/javascript" src="%s"></script>' % link)
|
return format_html('<script type="text/javascript" src="{link}"></script>', link=link)
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 et:
|
# vim: set ts=4 sw=4 et:
|
||||||
|
@@ -8,8 +8,11 @@ register = template.Library()
|
|||||||
def country_flag(country):
|
def country_flag(country):
|
||||||
if not country:
|
if not country:
|
||||||
return ''
|
return ''
|
||||||
return format_html('<span class="fam-flag fam-flag-%s" title="%s"></span> ' % (
|
return format_html(
|
||||||
str(country.code).lower(), str(country.name)))
|
'<span class="fam-flag fam-flag-{country_code}" title="{country_name}"></span> ',
|
||||||
|
country_code=str(country.code).lower(),
|
||||||
|
country_name=str(country.name),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 et:
|
# vim: set ts=4 sw=4 et:
|
||||||
|
@@ -56,8 +56,10 @@ def pgp_key_link(key_id, link_text=None):
|
|||||||
key_id)
|
key_id)
|
||||||
if link_text is None:
|
if link_text is None:
|
||||||
link_text = '0x%s' % key_id[-8:]
|
link_text = '0x%s' % key_id[-8:]
|
||||||
values = (url, format_key(key_id), link_text)
|
return format_html('<a href="{url}" title="PGP key search for {key}">{content}</a>',
|
||||||
return format_html('<a href="%s" title="PGP key search for %s">%s</a>' % values)
|
url=url,
|
||||||
|
key=format_key(key_id),
|
||||||
|
content=mark_safe(link_text))
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
|
@@ -43,8 +43,8 @@ def pkg_details_link(pkg, link_title=None, honor_flagged=False):
|
|||||||
link_content = link_title
|
link_content = link_title
|
||||||
if honor_flagged and pkg.flag_date:
|
if honor_flagged and pkg.flag_date:
|
||||||
link_content = '<span class="flagged">%s</span>' % link_title
|
link_content = '<span class="flagged">%s</span>' % link_title
|
||||||
link = '<a href="%s" title="View package details for %s">%s</a>'
|
link = '<a href="{link}" title="View package details for {pkgname}">{content}</a>'
|
||||||
return format_html(link % (pkg.get_absolute_url(), pkg.pkgname, link_content))
|
return format_html(link, link=pkg.get_absolute_url(), pkgname=pkg.pkgname, content=link_content)
|
||||||
|
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 et:
|
# vim: set ts=4 sw=4 et:
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
-e git+https://github.com/fredj/cssmin.git@master#egg=cssmin
|
-e git+https://github.com/fredj/cssmin.git@master#egg=cssmin
|
||||||
Django==5.1.10
|
Django==5.1.13
|
||||||
IPy==1.1
|
IPy==1.1
|
||||||
Markdown==3.3.7
|
Markdown==3.3.7
|
||||||
bencode.py==4.0.0
|
bencode.py==4.0.0
|
||||||
|
@@ -272,4 +272,10 @@ if PROMETHEUS_METRICS:
|
|||||||
|
|
||||||
INSTALLED_APPS = [*list(INSTALLED_APPS), 'django_prometheus']
|
INSTALLED_APPS = [*list(INSTALLED_APPS), 'django_prometheus']
|
||||||
|
|
||||||
|
# Assume all URLField will be HTTPS if not specified.
|
||||||
|
# NOTE: this can be removed once we bump Django to 6.x
|
||||||
|
# where `https` becomes the default.
|
||||||
|
FORMS_URLFIELD_ASSUME_HTTPS = True
|
||||||
|
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 et:
|
# vim: set ts=4 sw=4 et:
|
||||||
|
@@ -1207,12 +1207,12 @@ ul.signoff-list {
|
|||||||
|
|
||||||
/* style input as a normal anchor */
|
/* style input as a normal anchor */
|
||||||
input {
|
input {
|
||||||
background: none!important;
|
background: none !important;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0!important;
|
padding: 0 0.5em !important;
|
||||||
/*optional*/
|
/* optional */
|
||||||
font-family: arial, sans-serif;
|
font-family: arial, sans-serif;
|
||||||
font-size: 0.9em;
|
font-size: 100%;
|
||||||
/*input has OS specific font-family*/
|
/*input has OS specific font-family*/
|
||||||
color: #07b;
|
color: #07b;
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 12 KiB |
@@ -53,16 +53,6 @@
|
|||||||
<img src="{% static "nitrokey_logo.png" %}"
|
<img src="{% static "nitrokey_logo.png" %}"
|
||||||
class="sponsor-btn-nitrokey" title="" alt="Nitrokey logo"/></a>
|
class="sponsor-btn-nitrokey" title="" alt="Nitrokey logo"/></a>
|
||||||
|
|
||||||
<p>We would also like to thank <a href="https://www.shells.com/"
|
|
||||||
title="Shells">Shells.com</a> for their monetary donation.
|
|
||||||
Shells provides you with a 1-click, powerful virtual desktop environment,
|
|
||||||
driven by a cloud computer, without leaving your browser! It's your
|
|
||||||
personal workspace in the cloud.</p>
|
|
||||||
|
|
||||||
<a href="https://www.shells.com/" title="Shells">
|
|
||||||
<img src="{% static "shells_logo.png" %}"
|
|
||||||
title="" alt="Shells logo"/></a>
|
|
||||||
|
|
||||||
<h3>Past donors</h3>
|
<h3>Past donors</h3>
|
||||||
|
|
||||||
<p><a href="http://www.dotcom-monitor.com/" title="Dotcom-Monitor">Dotcom-Monitor</a> & <a href="https://www.loadview-testing.com/" title="LoadView">LoadView</a></p>
|
<p><a href="http://www.dotcom-monitor.com/" title="Dotcom-Monitor">Dotcom-Monitor</a> & <a href="https://www.loadview-testing.com/" title="LoadView">LoadView</a></p>
|
||||||
|
@@ -205,11 +205,6 @@
|
|||||||
<img src="{% static "icons8_logo.png" %}"
|
<img src="{% static "icons8_logo.png" %}"
|
||||||
title="" alt="Icons8 logo"/>
|
title="" alt="Icons8 logo"/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="https://www.shells.com" title="Shells.com">
|
|
||||||
<img src="{% static "shells_logo.png" %}"
|
|
||||||
title="" alt="Shells logo"/>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@@ -13,8 +13,9 @@ def todopkg_details_link(todopkg):
|
|||||||
pkg = todopkg.pkg
|
pkg = todopkg.pkg
|
||||||
if not pkg:
|
if not pkg:
|
||||||
return todopkg.pkgname
|
return todopkg.pkgname
|
||||||
link = '<a href="%s" title="View package details for %s">%s</a>'
|
link = '<a href="{url}" title="View package details for {pkgname}">{pkgname}</a>'
|
||||||
url = pkg_absolute_url(todopkg.repo, todopkg.arch, pkg.pkgname)
|
url = pkg_absolute_url(todopkg.repo, todopkg.arch, pkg.pkgname)
|
||||||
return format_html(link % (url, pkg.pkgname, pkg.pkgname))
|
return format_html(link, url=url, pkgname=pkg.pkgname)
|
||||||
|
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 et:
|
# vim: set ts=4 sw=4 et:
|
||||||
|
Reference in New Issue
Block a user