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]
|
||||
|
||||
- 💄📯 — Improve notifications and result(s) pages
|
||||
|
||||
## 0.1.1
|
||||
|
||||
Date: 2024-04-30
|
||||
|
|
|
@ -52,7 +52,9 @@ Status: {severity}
|
|||
Time: {result.submitted_at}
|
||||
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"""\
|
||||
|
@ -107,7 +109,9 @@ Status: {severity}
|
|||
Time: {result.submitted_at}
|
||||
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}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}<h2>{{ result }}</h2>{% endblock title %}
|
||||
{% block title %}<h2>Result {{ result.id }} - {{ result.status }}</h2>{% endblock title %}
|
||||
{% block content %}
|
||||
<dl>
|
||||
<dt>Task</dt>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
{% for result in results %}
|
||||
<tr>
|
||||
<tr id="{{ result.id }}">
|
||||
<td>{{ result.submitted_at }}</td>
|
||||
<td>{{ result.status }}</td>
|
||||
<td>{{ result.severity }}</td>
|
||||
|
|
Loading…
Reference in a new issue