bb
This commit is contained in:
parent
4b2580b9d2
commit
f1093214a6
3 changed files with 15 additions and 5 deletions
|
@ -10,7 +10,6 @@ from files.classes.votes import CommentVote
|
|||
from files.helpers.const import AUTOPOLLER_ID, AUTOBETTER_ID, censor_slurs
|
||||
from files.helpers.lazy import lazy
|
||||
from .flags import CommentFlag
|
||||
from .award import AwardRelationship
|
||||
from random import randint
|
||||
|
||||
site = environ.get("DOMAIN").strip()
|
||||
|
@ -53,7 +52,7 @@ class Comment(Base):
|
|||
senttouser = relationship("User", primaryjoin="User.id==Comment.sentto", viewonly=True)
|
||||
parent_comment = relationship("Comment", remote_side=[id], viewonly=True)
|
||||
child_comments = relationship("Comment", remote_side=[parent_comment_id], viewonly=True)
|
||||
awards = relationship("AwardRelationship", viewonly=True, order_by=AwardRelationship.id)
|
||||
awards = relationship("AwardRelationship", viewonly=True)
|
||||
reports = relationship("CommentFlag", viewonly=True)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
|
@ -11,7 +11,6 @@ from files.helpers.const import AUTOPOLLER_ID, AUTOBETTER_ID, censor_slurs, TROL
|
|||
from files.helpers.lazy import lazy
|
||||
from .flags import Flag
|
||||
from .comment import Comment
|
||||
from .award import AwardRelationship
|
||||
from flask import g
|
||||
|
||||
site = environ.get("DOMAIN").strip()
|
||||
|
@ -57,7 +56,7 @@ class Submission(Base):
|
|||
author = relationship("User", primaryjoin="Submission.author_id==User.id")
|
||||
oauth_app = relationship("OauthApp", viewonly=True)
|
||||
approved_by = relationship("User", uselist=False, primaryjoin="Submission.is_approved==User.id", viewonly=True)
|
||||
awards = relationship("AwardRelationship", viewonly=True, order_by=AwardRelationship.id)
|
||||
awards = relationship("AwardRelationship", viewonly=True)
|
||||
reports = relationship("Flag", viewonly=True)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
|
@ -16,7 +16,19 @@
|
|||
{% if p.award_count("wholesome") %}
|
||||
<style>
|
||||
.seal {
|
||||
position:fixed;
|
||||
position:absolute;
|
||||
z-index:9999;
|
||||
pointer-events: none;
|
||||
}
|
||||
.sealimg {
|
||||
width: 100px;
|
||||
height: 89.5px;
|
||||
}
|
||||
@media (max-width: 992px) {
|
||||
.sealimg {
|
||||
width: 30px;
|
||||
height: 27px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="100%">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue