mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-05-04 20:51:50 +02:00
Compare commits
No commits in common. "a31c12e037feb0c96ca6820212b467adbedc707c" and "d3b5a754dd3ced8629ddaaba81821ff53aeaee53" have entirely different histories.
a31c12e037
...
d3b5a754dd
2 changed files with 4 additions and 25 deletions
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
- 💄 — Show only not-OK domains by default in domains list, to reduce the load on browser
|
|
||||||
- ♿️ — Fix not-OK domains display if javascript is disabled
|
|
||||||
|
|
||||||
## 0.5.0
|
## 0.5.0
|
||||||
|
|
||||||
Date: 2024-09-26
|
Date: 2024-09-26
|
||||||
|
@ -71,7 +68,7 @@ Date: 2024-06-24
|
||||||
|
|
||||||
- 💄📯 — Improve notifications and result(s) pages
|
- 💄📯 — Improve notifications and result(s) pages
|
||||||
- 🔊 — Add level of log before the log message
|
- 🔊 — Add level of log before the log message
|
||||||
- 🔊 — Add a warning message in the logs if there is no tasks in database. (fix #41)
|
— 🔊 — Add a warning messages in the logs if there is no tasks in database. (fix #41)
|
||||||
- ✨ — Add command to generate example configuration (fix #38)
|
- ✨ — Add command to generate example configuration (fix #38)
|
||||||
- 📝 — Improve documentation
|
- 📝 — Improve documentation
|
||||||
- ✨ — Add command to warn if it’s been long since last viewing an agent (fix #49)
|
- ✨ — Add command to warn if it’s been long since last viewing an agent (fix #49)
|
||||||
|
|
|
@ -12,17 +12,15 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{# djlint:off H021 #}
|
<ul>
|
||||||
<ul id="status-selector" style="display: none;">{# djlint:on #}
|
|
||||||
<li>
|
<li>
|
||||||
<label for="select-status">Show domains with status:</label>
|
<label for="select-status">Show domains with status:</label>
|
||||||
<select id="select-status">
|
<select id="select-status">
|
||||||
<option value="not-ok" selected>Not OK</option>
|
<option value="all">All</option>
|
||||||
<option value="ok">✅ OK</option>
|
<option value="ok">✅ OK</option>
|
||||||
<option value="warning">⚠️ Warning</option>
|
<option value="warning">⚠️ Warning</option>
|
||||||
<option value="critical">❌ Critical</option>
|
<option value="critical">❌ Critical</option>
|
||||||
<option value="unknown">❔ Unknown</option>
|
<option value="unknown">❔ Unknown</option>
|
||||||
<option value="all">All</option>
|
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -38,7 +36,7 @@
|
||||||
|
|
||||||
<tbody id="domains-body">
|
<tbody id="domains-body">
|
||||||
{% for (domain, status) in domains %}
|
{% for (domain, status) in domains %}
|
||||||
<tr data-status="{{ status }}">
|
<tr data-status={{ status }}>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ url_for('get_domain_tasks_view', domain=domain) }}">
|
<a href="{{ url_for('get_domain_tasks_view', domain=domain) }}">
|
||||||
{{ domain }}
|
{{ domain }}
|
||||||
|
@ -67,14 +65,6 @@
|
||||||
document.querySelectorAll('[data-status]').forEach((item) => {
|
document.querySelectorAll('[data-status]').forEach((item) => {
|
||||||
item.style.display = null;
|
item.style.display = null;
|
||||||
})
|
})
|
||||||
} else if (e.currentTarget.value === 'not-ok') {
|
|
||||||
document.querySelectorAll('[data-status]').forEach((item) => {
|
|
||||||
if (item.dataset.status !== 'ok') {
|
|
||||||
item.style.display = null;
|
|
||||||
} else {
|
|
||||||
item.style.display = 'none';
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
document.querySelectorAll('[data-status]').forEach((item) => {
|
document.querySelectorAll('[data-status]').forEach((item) => {
|
||||||
if (item.dataset.status === e.currentTarget.value) {
|
if (item.dataset.status === e.currentTarget.value) {
|
||||||
|
@ -85,13 +75,5 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
document.querySelectorAll('[data-status]').forEach((item) => {
|
|
||||||
if (item.dataset.status !== 'ok') {
|
|
||||||
item.style.display = null;
|
|
||||||
} else {
|
|
||||||
item.style.display = 'none';
|
|
||||||
}
|
|
||||||
})
|
|
||||||
document.getElementById('status-selector').style.display = null;
|
|
||||||
</script>
|
</script>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Loading…
Reference in a new issue