forked from rDrama/rDrama
sdffsd
parent
5ee418fcbb
commit
e8c279dcbd
|
@ -35,7 +35,7 @@ if site_name == "Drama":
|
||||||
"grass": {
|
"grass": {
|
||||||
"kind": "grass",
|
"kind": "grass",
|
||||||
"title": "Grass",
|
"title": "Grass",
|
||||||
"description": "Ban the author permenantly (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
|
"description": "Ban the author permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
|
||||||
"icon": "fas fa-seedling",
|
"icon": "fas fa-seedling",
|
||||||
"color": "text-success",
|
"color": "text-success",
|
||||||
"price": 500
|
"price": 500
|
||||||
|
|
|
@ -63,7 +63,7 @@ class Badge(Base):
|
||||||
if self.name == "Agendaposter":
|
if self.name == "Agendaposter":
|
||||||
ti = self.user.agendaposter_expires_utc
|
ti = self.user.agendaposter_expires_utc
|
||||||
if ti: return self.badge.description + " until " + datetime.utcfromtimestamp(ti).strftime('%Y-%m-%d %H:%M:%S')
|
if ti: return self.badge.description + " until " + datetime.utcfromtimestamp(ti).strftime('%Y-%m-%d %H:%M:%S')
|
||||||
else: return self.badge.description + " permenantly"
|
else: return self.badge.description + " permanently"
|
||||||
elif self.description: return self.description
|
elif self.description: return self.description
|
||||||
else: return self.badge.description
|
else: return self.badge.description
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ if site_name == "Drama":
|
||||||
"grass": {
|
"grass": {
|
||||||
"kind": "grass",
|
"kind": "grass",
|
||||||
"title": "Grass",
|
"title": "Grass",
|
||||||
"description": "Ban the author permenantly (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
|
"description": "Ban the author permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
|
||||||
"icon": "fas fa-seedling",
|
"icon": "fas fa-seedling",
|
||||||
"color": "text-success",
|
"color": "text-success",
|
||||||
"price": 500
|
"price": 500
|
||||||
|
|
|
@ -39,7 +39,7 @@ def shop(v):
|
||||||
"grass": {
|
"grass": {
|
||||||
"kind": "grass",
|
"kind": "grass",
|
||||||
"title": "Grass",
|
"title": "Grass",
|
||||||
"description": "Ban the author permenantly (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
|
"description": "Ban the author permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
|
||||||
"icon": "fas fa-seedling",
|
"icon": "fas fa-seedling",
|
||||||
"color": "text-success",
|
"color": "text-success",
|
||||||
"price": 500
|
"price": 500
|
||||||
|
@ -124,7 +124,7 @@ def buy(v, award):
|
||||||
"grass": {
|
"grass": {
|
||||||
"kind": "grass",
|
"kind": "grass",
|
||||||
"title": "Grass",
|
"title": "Grass",
|
||||||
"description": "Ban the author permenantly (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
|
"description": "Ban the author permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
|
||||||
"icon": "fas fa-seedling",
|
"icon": "fas fa-seedling",
|
||||||
"color": "text-success",
|
"color": "text-success",
|
||||||
"price": 500
|
"price": 500
|
||||||
|
@ -197,7 +197,7 @@ def grass_trigger(post=None, comment=None):
|
||||||
link = f"[this post]({post.permalink})" if post else f"[this comment]({comment.permalink})"
|
link = f"[this post]({post.permalink})" if post else f"[this comment]({comment.permalink})"
|
||||||
|
|
||||||
author.ban(reason="grass award used")
|
author.ban(reason="grass award used")
|
||||||
send_notification(NOTIFICATIONS_ACCOUNT, author, f"Your account has been suspended permenantly for {link}. You must [provide the admins](/contact) a timestamped picture of you touching grass to get unbanned!")
|
send_notification(NOTIFICATIONS_ACCOUNT, author, f"Your account has been suspended permanently for {link}. You must [provide the admins](/contact) a timestamped picture of you touching grass to get unbanned!")
|
||||||
|
|
||||||
ACTIONS = {
|
ACTIONS = {
|
||||||
"ban": banaward_trigger,
|
"ban": banaward_trigger,
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
|
|
||||||
@media (min-width: 767.98px) {
|
@media (min-width: 767.98px) {
|
||||||
.award-columns {
|
.award-columns {
|
||||||
column-count: 3 !important;
|
column-count: 4 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -126,13 +126,13 @@
|
||||||
<strong class="text-black">{{c.author.post_count}}</strong>
|
<strong class="text-black">{{c.author.post_count}}</strong>
|
||||||
<span class="text-black">posts</span>
|
<span class="text-black">posts</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-2">
|
<span class="ml-3">
|
||||||
<strong class="text-black">{{c.author.comment_count}}</strong>
|
<strong class="text-black">{{c.author.comment_count}}</strong>
|
||||||
<span class="text-black">comments</span>
|
<span class="text-black">comments</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-2">
|
<span class="ml-3">
|
||||||
<strong class="text-black">{{c.author.coins}}</strong>
|
<strong class="text-black">{{c.author.coins}}</strong>
|
||||||
<span class="text-black">dramacoins</span>
|
<span class="text-black">coins</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<a {% if v %}href="{{c.author.url}}"{% else %}href="/logged_out{{c.author.url}}"{% endif %} target="_blank" class="ml-auto text-decoration-none">
|
<a {% if v %}href="{{c.author.url}}"{% else %}href="/logged_out{{c.author.url}}"{% endif %} target="_blank" class="ml-auto text-decoration-none">
|
||||||
|
|
|
@ -181,13 +181,13 @@
|
||||||
<strong class="text-black">{{p.author.post_count}}</strong>
|
<strong class="text-black">{{p.author.post_count}}</strong>
|
||||||
<span class="text-black">posts</span>
|
<span class="text-black">posts</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-2">
|
<span class="ml-3">
|
||||||
<strong class="text-black">{{p.author.comment_count}}</strong>
|
<strong class="text-black">{{p.author.comment_count}}</strong>
|
||||||
<span class="text-black">comments</span>
|
<span class="text-black">comments</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-2">
|
<span class="ml-3">
|
||||||
<strong class="text-black">{{p.author.coins}}</strong>
|
<strong class="text-black">{{p.author.coins}}</strong>
|
||||||
<span class="text-black">dramacoins</span>
|
<span class="text-black">coins</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<a {% if v %}href="{{p.author.url}}"{% else %}href="/logged_out{{p.author.url}}"{% endif %} target="_blank" class="ml-auto text-decoration-none">
|
<a {% if v %}href="{{p.author.url}}"{% else %}href="/logged_out{{p.author.url}}"{% endif %} target="_blank" class="ml-auto text-decoration-none">
|
||||||
|
|
|
@ -41,6 +41,10 @@
|
||||||
<img class="avatar-72 rounded img-thumbnail shadow-sm" src="{{p.author.profile_url}}">
|
<img class="avatar-72 rounded img-thumbnail shadow-sm" src="{{p.author.profile_url}}">
|
||||||
<div class="px-3 text-truncate">
|
<div class="px-3 text-truncate">
|
||||||
<h5 class="text-truncate text-black">{{p.author.username}}</h5>
|
<h5 class="text-truncate text-black">{{p.author.username}}</h5>
|
||||||
|
{% if p.author.id != 995 %}<a id="button-unsub2" class="smolbtn btn-secondary {% if not is_following %}d-none{% endif %}" href="javascript:void(0)" onclick="post_toast2('/unfollow/{{p.author.username}}','button-unsub2','button-sub2')">Unfollow</a>{% endif %}
|
||||||
|
<a id="button-sub2" class="smolbtn btn-primary {% if is_following or p.author.is_nofollow or p.author.is_blocked %}d-none{% endif %}" href="javascript:void(0)" onclick="post_toast2('/follow/{{p.author.username}}','button-unsub2','button-sub2')">Follow</a>
|
||||||
|
<button id="block-user-{{p.id}}" class="smolbtn btn-primary {% if p.is_blocking %}d-none{% endif %}" href="javascript:void(0)" onclick="alert('1')"><i class="fas fa-eye-slash"></i>Block</button>
|
||||||
|
<a id="unblock-user-{{p.id}}" class="smolbtn btn-primary {% if not p.is_blocking %}d-none{% endif %}" href="javascript:void(0)" onclick="post_toast2('/settings/unblock?username={{p.author.username}}','block-user-{{p.id}}','unblock-user-{{p.id}}')"><i class="fas fa-eye"></i>Unblock</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-3">
|
<div class="px-3">
|
||||||
|
@ -51,13 +55,13 @@
|
||||||
<strong class="text-black">{{p.author.post_count}}</strong>
|
<strong class="text-black">{{p.author.post_count}}</strong>
|
||||||
<span class="text-black">posts</span>
|
<span class="text-black">posts</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-2">
|
<span class="ml-3">
|
||||||
<strong class="text-black">{{p.author.comment_count}}</strong>
|
<strong class="text-black">{{p.author.comment_count}}</strong>
|
||||||
<span class="text-black">comments</span>
|
<span class="text-black">comments</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-2">
|
<span class="ml-3">
|
||||||
<strong class="text-black">{{p.author.coins}}</strong>
|
<strong class="text-black">{{p.author.coins}}</strong>
|
||||||
<span class="text-black">dramacoins</span>
|
<span class="text-black">coins</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<a {% if v %}href="{{p.author.url}}"{% else %}href="/logged_out{{p.author.url}}"{% endif %} target="_blank" class="ml-auto text-decoration-none">
|
<a {% if v %}href="{{p.author.url}}"{% else %}href="/logged_out{{p.author.url}}"{% endif %} target="_blank" class="ml-auto text-decoration-none">
|
||||||
|
|
Loading…
Reference in New Issue