[templates] Add JS-calculated hovertext for date ages

On torrent listing and torrent view, mouse over the times to see "X hours Y minutes Z seconds ago" etc
This commit is contained in:
TheAMM
2017-05-13 02:30:39 +03:00
parent 517d3e8e32
commit 39230e1f39
4 changed files with 62 additions and 5 deletions

View File

@@ -16,7 +16,7 @@
<div class="col-md-5">{{ torrent.main_category.name }} - {{ torrent.sub_category.name }}</div>
<div class="col-md-1">Date:</div>
<div class="col-md-5">{{ torrent.created_time.strftime('%Y-%m-%d, %H:%M UTC') }}</div>
<div class="col-md-5" data-timestamp="{{ torrent.created_utc_timestamp|int }}">{{ torrent.created_time.strftime('%Y-%m-%d, %H:%M UTC') }}</div>
</div>
<div class="row">