mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
chg: [tracker] list of last matchs, show description
This commit is contained in:
parent
1a3ffe70c1
commit
1e8f8e9e9c
2 changed files with 4 additions and 1 deletions
|
@ -701,7 +701,7 @@ def get_trackers_dashboard():
|
|||
for raw in r_tracker.lrange('trackers:dashboard', 0, -1):
|
||||
tracker_uuid, timestamp, obj_type, subtype, obj_id = raw.split(':', 4)
|
||||
tracker = Tracker(tracker_uuid)
|
||||
meta = tracker.get_meta(options={'tags'})
|
||||
meta = tracker.get_meta(options={'description', 'tags'})
|
||||
if not meta.get('type'):
|
||||
meta['type'] = 'Tracker DELETED'
|
||||
timestamp = datetime.datetime.fromtimestamp(float(timestamp)).strftime('%Y-%m-%d %H:%M:%S')
|
||||
|
|
|
@ -108,6 +108,9 @@
|
|||
{{ meta['tracked'] }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if meta['description'] %}
|
||||
<div><i>{{ meta['description'] }}</i></div>
|
||||
{% endif %}
|
||||
</a>
|
||||
</span>
|
||||
</td>
|
||||
|
|
Loading…
Reference in a new issue