Skip to content
Snippets Groups Projects
Commit 5c78f730 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add is_recent flag

parent 36e1b8fe
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,8 @@ def top10():
"Frame index": r[6],
"Trigger counter": r[7],
"Date": datetime.utcfromtimestamp(r[8]).strftime("%c")
}
},
"is_recent": True
} for r in raw_data]
return render_template('top10.html', top10=top10)
......
......@@ -8,7 +8,12 @@
{% for event in events %}
<div class="row">
<div class="col-md-2" style="vertical-align: middle">
<h3 class="rank">#{{ loop.index }}</h3>
<h3 class="rank">
#{{ loop.index }}
{{#if event.is_recent}}
<span class="recent">NEW!</span>
{{/if}}
</h3>
<table class="top10">
{% for key, value in event.meta.items() %}
<tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment