forked from rDrama/rDrama
show vote time
parent
3aa6a838cb
commit
ab5078f313
|
@ -45,6 +45,10 @@ class Vote(Base):
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
@property
|
||||||
|
def created_datetime(self):
|
||||||
|
return str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(self.created_utc)))
|
||||||
|
|
||||||
|
|
||||||
class CommentVote(Base):
|
class CommentVote(Base):
|
||||||
|
|
||||||
|
@ -85,3 +89,7 @@ class CommentVote(Base):
|
||||||
data["comment"]=self.comment.json_core
|
data["comment"]=self.comment.json_core
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
@property
|
||||||
|
def created_datetime(self):
|
||||||
|
return str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(self.created_utc)))
|
|
@ -28,7 +28,8 @@
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>User</th>
|
<th>User</th>
|
||||||
<th role="button" onclick="sort_table(1)">User truescore</th>
|
<th role="button" onclick="sort_table(1)">User Truescore</th>
|
||||||
|
<th role="button" onclick="sort_table(2)">Vote Time</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -43,6 +44,7 @@
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{{vote.user.truecoins}}</td>
|
<td>{{vote.user.truecoins}}</td>
|
||||||
|
<td>{{vote.created_datetime}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
@ -54,7 +56,8 @@
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>User</th>
|
<th>User</th>
|
||||||
<th role="button" onclick="sort_table(1)">User truescore</th>
|
<th role="button" onclick="sort_table(1)">User Truescore</th>
|
||||||
|
<th role="button" onclick="sort_table(2)">Vote Time</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -69,6 +72,7 @@
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{{vote.user.truecoins}}</td>
|
<td>{{vote.user.truecoins}}</td>
|
||||||
|
<td>{{vote.created_datetime}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue