From 5468d19c4c39e1e8f556a791c65221fd4d53eecb Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 10 Mar 2018 16:46:33 -0500 Subject: [PATCH] Set warning sign to red if master commit is very much outdated... --- app/models/appci.py | 1 + app/templates/appci_branch.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/models/appci.py b/app/models/appci.py index ae223fc..40c9d84 100644 --- a/app/models/appci.py +++ b/app/models/appci.py @@ -2,6 +2,7 @@ import os import json import requests import dateutil.parser +import datetime from .. import db diff --git a/app/templates/appci_branch.html b/app/templates/appci_branch.html index 321c426..77f14ed 100644 --- a/app/templates/appci_branch.html +++ b/app/templates/appci_branch.html @@ -51,7 +51,11 @@ title="This test is outdated : a more recent commit exists in master than the one tested."> {% endif %} {% if result.app.public_commit != result.app.master_commit %} - 60 %} + {% endif %}