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
|
||||
|
||||
|
||||
class AppCatalog(db.Model):
|
||||
class AppCatalog():
|
||||
|
||||
def update():
|
||||
|
||||
g = Github()
|
||||
|
||||
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()):
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ th.ci-app-test-title > div > span
|
|||
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 > 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); }
|
||||
|
|
|
@ -75,10 +75,10 @@
|
|||
<td class="ci-app-level" value="{{ result.level }}">
|
||||
<div title="Level">
|
||||
<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>
|
||||
{% elif result.level > result.app.public_level %}
|
||||
<span class="ml-1 oi oi-arrow-thick-bottom" title="Improvement" aria-hidden="true" style="color: limegreen;"></span>
|
||||
{% elif result.level > result.app.public_level|int %}
|
||||
<span class="ml-1 oi oi-arrow-thick-top" title="Improvement" aria-hidden="true" style="color: limegreen;"></span>
|
||||
{% endif %}
|
||||
</div></td>
|
||||
{% for test in tests %}
|
||||
|
@ -98,17 +98,6 @@
|
|||
aria-hidden="true"
|
||||
title="This test is outdated"></span>
|
||||
{% 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 %}
|
||||
<span class="oi oi-fork text-info"
|
||||
aria-hidden="true"
|
||||
|
|
Loading…
Reference in a new issue