mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
Set warning sign to red if master commit is very much outdated...
This commit is contained in:
parent
953b7a142d
commit
5468d19c4c
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue