Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ repos:
entry: cargo fmt
pass_filenames: false
- repo: https://github.com/instrumentl/pre-commit-just
rev: v0.1
rev: v0.2
hooks:
- id: format-justfile
name: "format justfiles"
- repo: https://github.com/djlint/djLint
rev: v1.36.4
rev: v1.40.3
hooks:
- id: djlint
name: djLint
Expand Down
4 changes: 1 addition & 3 deletions cot/templates/admin/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
<div class="container">
<form action="" method="post">
{% if form.has_errors() %}
<div class="form-errors">
{% for error in form.errors_for(FormErrorTarget::Form) %}{{ error }}{% endfor %}
</div>
<div class="form-errors">{% for error in form.errors_for(FormErrorTarget::Form) %}{{ error }}{% endfor %}</div>
{% endif %}
<div class="form-row">
<label for="{{ form.username.id() }}">Username:</label>
Expand Down
40 changes: 20 additions & 20 deletions cot/templates/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
</head>
<body>
<h1 class="{% match kind %}{% when Kind::NotFound %}warning{% else %}error{% endmatch %}">
{% match kind %}{% when Kind::NotFound %}Not found
{% else %}
Cot failure{% endmatch %}
</h1>
<p>
{% match kind %}{% when Kind::NotFound %}The URL requested could not be found.{% when Kind::Panic %}The request handler has panicked.
{% else %}
An error occurred while handling a request.{% endmatch %}
</p>
{% match kind %}
{% when Kind::Panic %}
<h2>Panic data</h2>
{% match panic_string %}{% when Some with (panic_string) %}<pre>{{ panic_string }}</pre>
{% match kind %}{% when Kind::NotFound %}Not found
{% else %}
<em>Panic payload unavailable or not a string.</em>{% endmatch %}
{% match panic_location %}{% when Some with (panic_location) %}
<p>
at <samp>{{ panic_location }}</samp>
</p>
{% else %}
{% endmatch %}
Cot failure{% endmatch %}
</h1>
<p>
{% match kind %}{% when Kind::NotFound %}The URL requested could not be found.{% when Kind::Panic %}The request handler has panicked.
{% else %}
An error occurred while handling a request.{% endmatch %}
</p>
{% match kind %}
{% when Kind::Panic %}
<h2>Panic data</h2>
{% match panic_string %}{% when Some with (panic_string) %}<pre>{{ panic_string }}</pre>
{% else %}
<em>Panic payload unavailable or not a string.</em>{% endmatch %}
{% match panic_location %}{% when Some with (panic_location) %}
<p>
at <samp>{{ panic_location }}</samp>
</p>
{% else %}
{% endmatch %}
{% else %}
{% endmatch %}
{% if let Some(error_message) = error_message %}
Expand Down
Loading