mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add last updated timestamp to patrons
This commit is contained in:
parent
134dcf00d3
commit
6eb4f313f9
@ -87,9 +87,11 @@ class PanelHandler(BaseHandler):
|
||||
elif page == 'credits':
|
||||
with open(helper.credits_cache) as republic_credits_will_do:
|
||||
credits = json.load(republic_credits_will_do)
|
||||
timestamp = credits["lastUpdate"] / 1000.0
|
||||
page_data["patrons"] = credits["patrons"]
|
||||
page_data["staff"] = credits["staff"]
|
||||
page_data["translations"] = credits["translations"]
|
||||
page_data["lastUpdate"] = str(datetime.datetime.fromtimestamp(timestamp).strftime('%Y-%m-%d %H:%M:%S'))
|
||||
template = "panel/credits.html"
|
||||
|
||||
elif page == 'contribute':
|
||||
|
@ -232,7 +232,7 @@
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Patreon Supporters</h4>
|
||||
<p class="card-description"> A huge <code>thank you</code> to our Patreon supporters </p>
|
||||
<p class="card-description"> A huge <code>thank you</code> to our Patreon supporters! | <span style="color: #9365B8">Last Update: {{ data["lastUpdate"] }}</span></p>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user