forked from MarseyWorld/MarseyWorld
cachebust badges
parent
e3acb068ee
commit
7ebfd9808d
|
@ -27,7 +27,7 @@ document.addEventListener('shown.bs.popover', (e) => {
|
|||
badgesDOM.innerHTML = "";
|
||||
for (const badge of author["badges"]) {
|
||||
const badgeDOM = popClickBadgeTemplateDOM.cloneNode();
|
||||
badgeDOM.src = badge + "?b=6";
|
||||
badgeDOM.src = badge + "?b=8";
|
||||
|
||||
badgesDOM.append(badgeDOM);
|
||||
}
|
||||
|
|
|
@ -27,9 +27,9 @@ class BadgeDef(Base):
|
|||
@lazy
|
||||
def path(self):
|
||||
if self.id == 7 or 20 < self.id < 29 or self.id == 222:
|
||||
return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/badges/{self.id}.webp?x=7"
|
||||
return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/badges/{self.id}.webp?b=8"
|
||||
|
||||
return f"{SITE_FULL_IMAGES}/i/badges/{self.id}.webp?x=7"
|
||||
return f"{SITE_FULL_IMAGES}/i/badges/{self.id}.webp?b=8"
|
||||
|
||||
class Badge(Base):
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<td>{% include "user_in_table.html" %}</td>
|
||||
<td>
|
||||
{% if user.patron > 1 %}
|
||||
<img class="contain" alt="2{{user.patron}}" loading="lazy" width=29.33 height=32 src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{user.patron}}.webp?x=7">
|
||||
<img class="contain" alt="2{{user.patron}}" loading="lazy" width=29.33 height=32 src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{user.patron}}.webp?b=8">
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{user.truescore}}</td>
|
||||
|
|
|
@ -159,7 +159,7 @@
|
|||
<span {% if c.distinguish_level %}class="mod {% if SITE_NAME == 'rDrama' %}mod-rdrama{% endif %}"{% endif %}>👻</span>
|
||||
{% else %}
|
||||
{% if FEATURES['PATRON_ICONS'] and c.author.patron > 1 %}
|
||||
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{c.author.patron}}.webp?x=7" class="patron-img" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{c.author.patron_tooltip}}" alt="{{c.author.patron_tooltip}}">
|
||||
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{c.author.patron}}.webp?b=8" class="patron-img" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{c.author.patron_tooltip}}" alt="{{c.author.patron_tooltip}}">
|
||||
{% endif %}
|
||||
|
||||
{% if FEATURES['HOUSES'] and c.author.house %}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if FEATURES['PATRON_ICONS'] and u.patron > 1 %}
|
||||
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{u.patron}}.webp?x=7" class="ml-3 patron-img" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{u.patron_tooltip}}" alt="{{u.patron_tooltip}}">
|
||||
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{u.patron}}.webp?b=8" class="ml-3 patron-img" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{u.patron_tooltip}}" alt="{{u.patron_tooltip}}">
|
||||
{% endif %}
|
||||
|
||||
{% if FEATURES['HOUSES'] and u.house %}
|
||||
|
@ -294,7 +294,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if FEATURES['PATRON_ICONS'] and u.patron > 1 %}
|
||||
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{u.patron}}.webp?x=7" class="ml-2 patron-img" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{u.patron_tooltip}}" alt="{{u.patron_tooltip}}">
|
||||
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{u.patron}}.webp?b=8" class="ml-2 patron-img" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{u.patron_tooltip}}" alt="{{u.patron_tooltip}}">
|
||||
{% endif %}
|
||||
|
||||
{% if FEATURES['HOUSES'] and u.house %}
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
<span {% if p.distinguish_level %}class="mod {% if SITE_NAME == 'rDrama' %}mod-rdrama{% endif %}"{% endif %}>👻</span>
|
||||
{% else %}
|
||||
{% if FEATURES['PATRON_ICONS'] and p.author.patron > 1 %}
|
||||
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{p.author.patron}}.webp?x=7" class="patron-img" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.patron_tooltip}}" alt="{{p.author.patron_tooltip}}">
|
||||
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{p.author.patron}}.webp?b=8" class="patron-img" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.patron_tooltip}}" alt="{{p.author.patron_tooltip}}">
|
||||
{% endif %}
|
||||
|
||||
{% if FEATURES['HOUSES'] and p.author.house %}
|
||||
|
|
Loading…
Reference in New Issue