mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
🚨 — Improve djlint test and fix its warnings/errors
This commit is contained in:
parent
024fd4c911
commit
76bd10108d
8 changed files with 20 additions and 20 deletions
2
Makefile
2
Makefile
|
@ -21,7 +21,7 @@ cog: ## Run cog, to integrate the CLI options to the docs.
|
|||
tests: venv ## Run the tests
|
||||
venv/bin/pytest
|
||||
djlint: venv ## Format the templates
|
||||
venv/bin/djlint --ignore=H030,H031,H006 --lint argos/server/templates/*html
|
||||
venv/bin/djlint --ignore=H030,H031,H006 --profile jinja --lint argos/server/templates/*html
|
||||
pylint: venv ## Runs pylint on the code
|
||||
venv/bin/pylint argos
|
||||
lint: djlint pylint
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}<h2>Agents</h2>{% endblock %}
|
||||
{% block title %}<h2>Agents</h2>{% endblock title %}
|
||||
{% block content %}
|
||||
<table role="grid">
|
||||
<thead>
|
||||
|
@ -17,4 +17,4 @@
|
|||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
{% endblock content %}
|
||||
|
|
|
@ -52,11 +52,11 @@
|
|||
<main class="container">
|
||||
<div id="header">
|
||||
{% block title %}
|
||||
{% endblock %}
|
||||
{% endblock title %}
|
||||
</div>
|
||||
<div id="content">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
{% endblock content %}
|
||||
</div>
|
||||
</main>
|
||||
<footer class="text-center">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}<h2>{{ domain }}</h2>{% endblock %}
|
||||
{% block title %}<h2>{{ domain }}</h2>{% endblock title %}
|
||||
{% block content %}
|
||||
<div id="domains" class="frame">
|
||||
<table id="domains-list" role="grid">
|
||||
|
@ -43,4 +43,4 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}<h2>Tasks list</h2>{% endblock %}
|
||||
{% block title %}<h2>Tasks list</h2>{% endblock title %}
|
||||
{% block content %}
|
||||
<div id="domains" class="frame">
|
||||
<nav>
|
||||
|
@ -76,4 +76,4 @@
|
|||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}<h2>Dashboard</h2>{% endblock %}
|
||||
{% block title %}<h2>Dashboard</h2>{% endblock title %}
|
||||
{% block content %}
|
||||
<div id="domains" class="frame">
|
||||
<<<<<<< HEAD
|
||||
|
@ -69,4 +69,4 @@
|
|||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}<h2>{{ result }}</h2>{% endblock %}
|
||||
{% block title %}<h2>{{ result }}</h2>{% endblock title %}
|
||||
{% block content %}
|
||||
<dl>
|
||||
<dt>Task</dt>
|
||||
|
@ -13,4 +13,4 @@
|
|||
<dt>Context</dt>
|
||||
<dd>{{ result.context }}</dd>
|
||||
</dl>
|
||||
{% endblock %}
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}<h2>{{ task }}</h2>{% endblock %}
|
||||
{% block title %}<h2>{{ task }}</h2>{% endblock title %}
|
||||
{% block content %}
|
||||
<code>{{ description }}</code>
|
||||
<table role="grid">
|
||||
|
@ -23,4 +23,4 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Reference in a new issue