fds
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 7.2 KiB |
|
@ -397,7 +397,7 @@ class Comment(Base):
|
||||||
if not self.total_choice_voted(v): body += ' d-none'
|
if not self.total_choice_voted(v): body += ' d-none'
|
||||||
body += f'"> - <a href="/votes?link=t3_{c.id}"><span id="choice-{c.id}">{c.upvotes}</span> votes</a></span></label></div>'
|
body += f'"> - <a href="/votes?link=t3_{c.id}"><span id="choice-{c.id}">{c.upvotes}</span> votes</a></span></label></div>'
|
||||||
|
|
||||||
if self.author.sig_html and not self.ghost and (self.author_id == MOOSE_ID or not (v and v.sigs_disabled)):
|
if self.author.sig_html and (self.author_id == MOOSE_ID or (not self.ghost and not (v and v.sigs_disabled))):
|
||||||
body += f"<hr>{self.author.sig_html}"
|
body += f"<hr>{self.author.sig_html}"
|
||||||
|
|
||||||
return body
|
return body
|
||||||
|
|
|
@ -418,7 +418,7 @@ class Submission(Base):
|
||||||
body += "</div>"
|
body += "</div>"
|
||||||
|
|
||||||
|
|
||||||
if self.author.sig_html and not self.ghost and (self.author_id == MOOSE_ID or not (v and v.sigs_disabled)):
|
if self.author.sig_html and (self.author_id == MOOSE_ID or (not self.ghost and not (v and v.sigs_disabled))):
|
||||||
body += f"<hr>{self.author.sig_html}"
|
body += f"<hr>{self.author.sig_html}"
|
||||||
|
|
||||||
return body
|
return body
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{% set image=sub.sidebar_url %}
|
{% set image=sub.sidebar_url %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set path = "assets/images/" + SITE_NAME + "/sidebar" %}
|
{% set path = "assets/images/" + SITE_NAME + "/sidebar" %}
|
||||||
{% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?v=37' %}
|
{% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?v=38' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
|
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
|
||||||
|
|