fsd
This commit is contained in:
parent
23869a522c
commit
de2e848d94
10 changed files with 4 additions and 4 deletions
BIN
files/assets/images/badges/patron-1.webp
Normal file
BIN
files/assets/images/badges/patron-1.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
files/assets/images/badges/patron-2.webp
Normal file
BIN
files/assets/images/badges/patron-2.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
files/assets/images/badges/patron-3.webp
Normal file
BIN
files/assets/images/badges/patron-3.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
files/assets/images/badges/patron-4.webp
Normal file
BIN
files/assets/images/badges/patron-4.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.4 KiB |
BIN
files/assets/images/badges/patron-5.webp
Normal file
BIN
files/assets/images/badges/patron-5.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 65 KiB |
BIN
files/assets/images/badges/patron-8.webp
Normal file
BIN
files/assets/images/badges/patron-8.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
|
@ -45,7 +45,7 @@ class Badge(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def path(self):
|
def path(self):
|
||||||
return f"/assets/images/badges/{self.name}.webp"
|
return f"/assets/images/badges/{self.name.replace(' ','%20')}.webp"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
|
|
|
@ -139,7 +139,7 @@ def cached_chart():
|
||||||
|
|
||||||
@app.get("/patrons")
|
@app.get("/patrons")
|
||||||
@app.get("/paypigs")
|
@app.get("/paypigs")
|
||||||
@auth_desired
|
@admin_level_required(3)
|
||||||
def patrons(v):
|
def patrons(v):
|
||||||
query = g.db.query(
|
query = g.db.query(
|
||||||
User.id, User.username, User.patron, User.namecolor,
|
User.id, User.username, User.patron, User.namecolor,
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
{% for k, v in badge_types.items() %}
|
{% for k, v in badge_types.items() %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="radio" id="badge-{{k}}" name="badge_id" value="{{k}}"></td>
|
<td><input type="radio" id="badge-{{k}}" name="badge_id" value="{{k}}"></td>
|
||||||
<td><label for="badge-{{k}}"><img loading="lazy" src="/assets/images/badges/{{v['name']}}.webp" width="70px" height="70px"></label></td>
|
<td><label for="badge-{{k}}"><img loading="lazy" src="/assets/images/badges/{{v['name'].replace(' ','%20')}}.webp" width="70px" height="70px"></label></td>
|
||||||
<td>{{v['name']}}</td>
|
<td>{{v['name']}}</td>
|
||||||
<td>{{v['description']}}</td>
|
<td>{{v['description']}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
{% for k,v in badges.items() %}
|
{% for k,v in badges.items() %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{v['name']}}</td>
|
<td>{{v['name']}}</td>
|
||||||
<td><img loading="lazy" src="/assets/images/badges/{{v['name']}}.webp" width=50 height=50>
|
<td><img loading="lazy" src="/assets/images/badges/{{v['name'].replace(' ','%20')}}.webp" width=50 height=50>
|
||||||
<td>{{v['description']}}</td>
|
<td>{{v['description']}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue