Set static image for banner
This commit is contained in:
parent
37765f8449
commit
a18b2f134e
10 changed files with 72 additions and 12 deletions
|
@ -245,17 +245,6 @@
|
|||
{% if '@' not in request.path %}
|
||||
{% if sub %}
|
||||
<img alt="/h/{{sub.name}} banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{sub.banner_url}}')" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:25vw">
|
||||
{% elif SITE_NAME == 'rDrama' %}
|
||||
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
|
||||
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=25' %}
|
||||
|
||||
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
|
||||
{% if v and (v.is_banned or v.agendaposter) %}
|
||||
<img alt="site banner" src="/assets/images/rDrama/banner2.webp?v=1" width="100%">
|
||||
{% else %}
|
||||
<img alt="site banner" src="{{image}}" width="100%">
|
||||
{% endif %}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="/">
|
||||
<img alt="site banner" src="/assets/images/{{SITE_NAME}}/banner.webp?v=1046" width="100%">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue