Set warning sign to red if master commit is very much outdated...

This commit is contained in:
Alexandre Aubin 2018-03-10 16:46:33 -05:00
parent 953b7a142d
commit 5468d19c4c
2 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,7 @@ import os
import json import json
import requests import requests
import dateutil.parser import dateutil.parser
import datetime
from .. import db from .. import db

View file

@ -51,7 +51,11 @@
title="This test is outdated : a more recent commit exists in master than the one tested."></span> title="This test is outdated : a more recent commit exists in master than the one tested."></span>
{% endif %} {% endif %}
{% if result.app.public_commit != result.app.master_commit %} {% if result.app.public_commit != result.app.master_commit %}
<span class="oi oi-warning text-warning" {% if result.app.public_vs_master_time_diff > 60 %}
<span class="oi oi-warning text-warning"
{% else %}
<span class="oi oi-warning text-danger"
{% endif %}
aria-hidden="true" aria-hidden="true"
title="Master commit is not up to date with {{ result.app.list.name }}.json !"></span> title="Master commit is not up to date with {{ result.app.list.name }}.json !"></span>
{% endif %} {% endif %}