mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
Misc fixes
This commit is contained in:
parent
1f0c3d108f
commit
c1c8c5b927
3 changed files with 6 additions and 16 deletions
|
@ -7,13 +7,14 @@ import datetime
|
||||||
from .. import db
|
from .. import db
|
||||||
|
|
||||||
|
|
||||||
class AppCatalog(db.Model):
|
class AppCatalog():
|
||||||
|
|
||||||
def update():
|
def update():
|
||||||
|
|
||||||
g = Github()
|
g = Github()
|
||||||
|
|
||||||
raw_apps = json.loads(requests.get("https://app.yunohost.org/default/v2/apps.json").text)
|
raw_apps = json.loads(requests.get("https://app.yunohost.org/default/v2/apps.json").text)
|
||||||
|
raw_apps = raw_apps["apps"]
|
||||||
|
|
||||||
for name in sorted(raw_apps.keys()):
|
for name in sorted(raw_apps.keys()):
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ th.ci-app-test-title > div > span
|
||||||
border:none;
|
border:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
td.ci-app-level { width: 48px; }
|
td.ci-app-level { width: 54px; }
|
||||||
td.ci-app-test-result { text-align:center; padding: 14px 8px 8px 8px; }
|
td.ci-app-test-result { text-align:center; padding: 14px 8px 8px 8px; }
|
||||||
td.ci-app-test-result > div { position:relative; background-color: #bdc3c7; border-radius:5px; width: 18px; height: 18px;}
|
td.ci-app-test-result > div { position:relative; background-color: #bdc3c7; border-radius:5px; width: 18px; height: 18px;}
|
||||||
td.ci-app-test-result > div.success { background-color: rgb(46,204,83); }
|
td.ci-app-test-result > div.success { background-color: rgb(46,204,83); }
|
||||||
|
|
|
@ -75,10 +75,10 @@
|
||||||
<td class="ci-app-level" value="{{ result.level }}">
|
<td class="ci-app-level" value="{{ result.level }}">
|
||||||
<div title="Level">
|
<div title="Level">
|
||||||
<strong>{{ result.level if result.level >= 0 else "?" }}</strong>
|
<strong>{{ result.level if result.level >= 0 else "?" }}</strong>
|
||||||
{% if result.level < result.app.public_level %}
|
{% if result.level < result.app.public_level|int %}
|
||||||
<span class="ml-1 oi oi-arrow-thick-bottom" title="Regression" aria-hidden="true" style="color: crimson;"></span>
|
<span class="ml-1 oi oi-arrow-thick-bottom" title="Regression" aria-hidden="true" style="color: crimson;"></span>
|
||||||
{% elif result.level > result.app.public_level %}
|
{% elif result.level > result.app.public_level|int %}
|
||||||
<span class="ml-1 oi oi-arrow-thick-bottom" title="Improvement" aria-hidden="true" style="color: limegreen;"></span>
|
<span class="ml-1 oi oi-arrow-thick-top" title="Improvement" aria-hidden="true" style="color: limegreen;"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div></td>
|
</div></td>
|
||||||
{% for test in tests %}
|
{% for test in tests %}
|
||||||
|
@ -98,17 +98,6 @@
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
title="This test is outdated"></span>
|
title="This test is outdated"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if result.app.public_commit != 'HEAD' and result.app.public_commit != result.app.master_commit %}
|
|
||||||
<!--
|
|
||||||
{% if result.app.public_vs_master_time_diff > 60 %}
|
|
||||||
<span class="oi oi-warning text-danger"
|
|
||||||
{% else %}
|
|
||||||
<span class="oi oi-warning text-warning"
|
|
||||||
{% endif %}
|
|
||||||
aria-hidden="true"
|
|
||||||
title="Master commit is not up to date with {{ result.app.list.name }}.json !"></span>
|
|
||||||
-->
|
|
||||||
{% endif %}
|
|
||||||
{% if result.app.testing_pr %}
|
{% if result.app.testing_pr %}
|
||||||
<span class="oi oi-fork text-info"
|
<span class="oi oi-fork text-info"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
|
Loading…
Reference in a new issue