mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
Fixing a few dumg things
This commit is contained in:
parent
34f31d00a4
commit
7e14e5860f
4 changed files with 5 additions and 10 deletions
|
@ -12,17 +12,10 @@ def sort_test_results(results):
|
||||||
for r in results:
|
for r in results:
|
||||||
r.level = -1 if r.level is None else r.level
|
r.level = -1 if r.level is None else r.level
|
||||||
|
|
||||||
print(results)
|
|
||||||
|
|
||||||
return sorted(results,
|
return sorted(results,
|
||||||
key=lambda r: (-r.level, -r.score(), r.app.name))
|
key=lambda r: (-r.level, -r.score(), r.app.name))
|
||||||
|
|
||||||
|
|
||||||
@main.route('/tartiflette')
|
|
||||||
@main.route('/tartiflette/')
|
|
||||||
def woopsies():
|
|
||||||
return "Woopsies"
|
|
||||||
|
|
||||||
@main.route('/')
|
@main.route('/')
|
||||||
def index():
|
def index():
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
|
@ -28,7 +28,8 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="ci-app-level" value="{{ result.level }}">
|
<td class="ci-app-level" value="{{ result.level }}">
|
||||||
<div title="Level"><strong>{{ result.level if result.level >= 0 else "?" }}</strong></div></td>
|
<div title="Level"><strong>{{ result.level if result.level >= 0 else "?" }}</strong></div></td>
|
||||||
{% for test, r in result.results.items() %}
|
{% for test in tests %}
|
||||||
|
{% set r = result.results[test] %}
|
||||||
<td class="ci-app-test-result">
|
<td class="ci-app-test-result">
|
||||||
<div title="{{ test }}" value="{{ r }}"></div>
|
<div title="{{ test }}" value="{{ r }}"></div>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -32,7 +32,8 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="ci-app-level" value="{{ result.level }}">
|
<td class="ci-app-level" value="{{ result.level }}">
|
||||||
<div title="Level"><strong>{{ result.level if result.level >= 0 else "?" }}</strong></div></td>
|
<div title="Level"><strong>{{ result.level if result.level >= 0 else "?" }}</strong></div></td>
|
||||||
{% for test, r in result.results.items() %}
|
{% for test in tests %}
|
||||||
|
{% set r = result.results[test] %}
|
||||||
<td class="ci-app-test-result">
|
<td class="ci-app-test-result">
|
||||||
<div title="{{ test }}" value="{{ r }}"></div>
|
<div title="{{ test }}" value="{{ r }}"></div>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Yunohost Roadmap Dashboard</title>
|
<title>Yunohost Dashboard</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" media="screen">
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" media="screen">
|
||||||
|
|
Loading…
Reference in a new issue