mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
💄📯 — Improve notifications and result(s) pages
This commit is contained in:
parent
1329b05902
commit
1457373315
4 changed files with 10 additions and 4 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- 💄📯 — Improve notifications and result(s) pages
|
||||||
|
|
||||||
## 0.1.1
|
## 0.1.1
|
||||||
|
|
||||||
Date: 2024-04-30
|
Date: 2024-04-30
|
||||||
|
|
|
@ -52,7 +52,9 @@ Status: {severity}
|
||||||
Time: {result.submitted_at}
|
Time: {result.submitted_at}
|
||||||
Previous status: {old_severity}
|
Previous status: {old_severity}
|
||||||
|
|
||||||
See results of task on {request.url_for('get_task_results_view', task_id=task.id)}
|
See result on {request.url_for('get_result_view', result_id={result.id})}
|
||||||
|
|
||||||
|
See results of task on {request.url_for('get_task_results_view', task_id=task.id)}#{result.id}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
mail = f"""\
|
mail = f"""\
|
||||||
|
@ -107,7 +109,9 @@ Status: {severity}
|
||||||
Time: {result.submitted_at}
|
Time: {result.submitted_at}
|
||||||
Previous status: {old_severity}
|
Previous status: {old_severity}
|
||||||
|
|
||||||
See results of task on {request.url_for('get_task_results_view', task_id=task.id)}
|
See result on {request.url_for('get_result_view', result_id={result.id})}
|
||||||
|
|
||||||
|
See results of task on {request.url_for('get_task_results_view', task_id=task.id)}#{result.id}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
payload = {"title": subject, "message": msg, "priority": priority}
|
payload = {"title": subject, "message": msg, "priority": priority}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block title %}<h2>{{ result }}</h2>{% endblock title %}
|
{% block title %}<h2>Result {{ result.id }} - {{ result.status }}</h2>{% endblock title %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Task</dt>
|
<dt>Task</dt>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for result in results %}
|
{% for result in results %}
|
||||||
<tr>
|
<tr id="{{ result.id }}">
|
||||||
<td>{{ result.submitted_at }}</td>
|
<td>{{ result.submitted_at }}</td>
|
||||||
<td>{{ result.status }}</td>
|
<td>{{ result.status }}</td>
|
||||||
<td>{{ result.severity }}</td>
|
<td>{{ result.severity }}</td>
|
||||||
|
|
Loading…
Reference in a new issue