Compare commits

...

2 Commits

Author SHA1 Message Date
fdd8e19aa3 Update pre-commit hook versions for uv-pre-commit and ruff
Some checks failed
Test and build Docker image / docker (push) Failing after 38s
2025-06-25 05:41:13 +02:00
2ef03c8b45 Fix formatting of tags in /custom 2025-06-25 05:38:47 +02:00
2 changed files with 254 additions and 254 deletions

View File

@ -1,7 +1,7 @@
repos: repos:
# Ensure the lockfile is up-to-date and autoexport uv.lock to requirements.txt # Ensure the lockfile is up-to-date and autoexport uv.lock to requirements.txt
- repo: https://github.com/astral-sh/uv-pre-commit - repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.7.12 rev: 0.7.14
hooks: hooks:
- id: uv-lock - id: uv-lock
- id: uv-export - id: uv-export
@ -45,7 +45,7 @@ repos:
# An extremely fast Python linter and formatter. # An extremely fast Python linter and formatter.
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.13 rev: v0.12.0
hooks: hooks:
- id: ruff-format - id: ruff-format
- id: ruff - id: ruff

View File

@ -1,252 +1,252 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %} {% block title %}
| Custom message | Custom message
{% endblock title %} {% endblock title %}
{% block content %} {% block content %}
<div class="p-2 border border-dark"> <div class="p-2 border border-dark">
<form action="/custom" method="post"> <form action="/custom" method="post">
<!-- Feed URL --> <!-- Feed URL -->
<div class="row pb-2"> <div class="row pb-2">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="form-text"> <div class="form-text">
<ul class="list-inline"> <ul class="list-inline">
<li>You can modify the message that is sent to Discord.</li> <li>You can modify the message that is sent to Discord.</li>
<li>You can use \n to create a new line.</li> <li>You can use \n to create a new line.</li>
<li> <li>
You can remove the embed from links by adding < and> around the link. (For example < You can remove the embed from links by adding < and> around the link. (For example <
{% raw %} {{ entry_link }} {% endraw %}>) {% raw %} {{entry_link}} {% endraw %}>)
</li> </li>
<br /> <br />
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_author }} {{feed_author}}
{% endraw %} {% endraw %}
</code>{{ feed.author }} </code>{{ feed.author }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_added }} {{feed_added}}
{% endraw %} {% endraw %}
</code>{{ feed.added }} </code>{{ feed.added }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_last_exception }} {{feed_last_exception}}
{% endraw %} {% endraw %}
</code>{{ feed.last_exception }} </code>{{ feed.last_exception }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_last_updated }} {{feed_last_updated}}
{% endraw %} {% endraw %}
</code>{{ feed.last_updated }} </code>{{ feed.last_updated }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_link }} {{feed_link}}
{% endraw %} {% endraw %}
</code>{{ feed.link }} </code>{{ feed.link }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_subtitle }} {{feed_subtitle}}
{% endraw %} {% endraw %}
</code>{{ feed.subtitle }} </code>{{ feed.subtitle }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_title }} {{feed_title}}
{% endraw %} {% endraw %}
</code>{{ feed.title }} </code>{{ feed.title }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_updated }} {{feed_updated}}
{% endraw %} {% endraw %}
</code>{{ feed.updated }} </code>{{ feed.updated }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_updates_enabled }} {{feed_updates_enabled}}
{% endraw %} {% endraw %}
</code>{{ feed.updates_enabled }} </code>{{ feed.updates_enabled }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_url }} {{feed_url}}
{% endraw %} {% endraw %}
</code>{{ feed.url }} </code>{{ feed.url }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_user_title }} {{feed_user_title}}
{% endraw %} {% endraw %}
</code>{{ feed.user_title }} </code>{{ feed.user_title }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_version }} {{feed_version}}
{% endraw %} {% endraw %}
</code>{{ feed.version }} </code>{{ feed.version }}
</li> </li>
<br /> <br />
{% if entry %} {% if entry %}
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_added }} {{entry_added}}
{% endraw %} {% endraw %}
</code>{{ entry.added }} </code>{{ entry.added }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_author }} {{entry_author}}
{% endraw %} {% endraw %}
</code>{{ entry.author }} </code>{{ entry.author }}
</li> </li>
{% if entry.content %} {% if entry.content %}
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_content }} {{entry_content}}
{% endraw %} {% endraw %}
</code>{{ entry.content[0].value|discord_markdown }} </code>{{ entry.content[0].value|discord_markdown }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_content_raw }} {{entry_content_raw}}
{% endraw %} {% endraw %}
</code>{{ entry.content[0].value }} </code>{{ entry.content[0].value }}
</li> </li>
{% endif %} {% endif %}
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_id }} {{entry_id}}
{% endraw %} {% endraw %}
</code>{{ entry.id }} </code>{{ entry.id }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_important }} {{entry_important}}
{% endraw %} {% endraw %}
</code>{{ entry.important }} </code>{{ entry.important }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_link }} {{entry_link}}
{% endraw %} {% endraw %}
</code>{{ entry.link }} </code>{{ entry.link }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_published }} {{entry_published}}
{% endraw %} {% endraw %}
</code>{{ entry.published }} </code>{{ entry.published }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_read }} {{entry_read}}
{% endraw %} {% endraw %}
</code>{{ entry.read }} </code>{{ entry.read }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_read_modified }} {{entry_read_modified}}
{% endraw %} {% endraw %}
</code>{{ entry.read_modified }} </code>{{ entry.read_modified }}
</li> </li>
{% if entry.summary %} {% if entry.summary %}
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_summary }} {{entry_summary}}
{% endraw %} {% endraw %}
</code>{{ entry.summary|discord_markdown }} </code>{{ entry.summary|discord_markdown }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_summary_raw }} {{entry_summary_raw}}
{% endraw %} {% endraw %}
</code>{{ entry.summary }} </code>{{ entry.summary }}
</li> </li>
{% endif %} {% endif %}
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_title }} {{entry_title}}
{% endraw %} {% endraw %}
</code>{{ entry.title }} </code>{{ entry.title }}
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_text }} {{entry_text}}
{% endraw %} {% endraw %}
</code> Same as entry_content if it exists, otherwise entry_summary </code> Same as entry_content if it exists, otherwise entry_summary
</li> </li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ entry_updated }} {{entry_updated}}
{% endraw %} {% endraw %}
</code>{{ entry.updated }} </code>{{ entry.updated }}
</li> </li>
<br /> <br />
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ image_1 }} {{image_1}}
{% endraw %} {% endraw %}
</code>First image in the entry if it exists </code>First image in the entry if it exists
</li> </li>
</ul> </ul>
<ul class="list-inline"> <ul class="list-inline">
<li>Examples:</li> <li>Examples:</li>
<li> <li>
<code> <code>
{% raw %} {% raw %}
{{ feed_title }}\n{{ entry_content }} {{feed_title}}\n{{entry_content}}
{% endraw %} {% endraw %}
</code> </code>
</li> </li>
</ul> </ul>
{% else %} {% else %}
Something went wrong, there was no entry found. If this feed has entries and you still see this Something went wrong, there was no entry found. If this feed has entries and you still see this
message, please contact the developer. message, please contact the developer.
{% endif %} {% endif %}
</div> </div>
<label for="custom_message" class="col-sm-6 col-form-label">Message</label> <label for="custom_message" class="col-sm-6 col-form-label">Message</label>
<input name="custom_message" type="text" class="form-control bg-dark border-dark text-muted" <input name="custom_message" type="text" class="form-control bg-dark border-dark text-muted"
id="custom_message" {% if custom_message %} value="{{- custom_message -}}" {% endif %} /> id="custom_message" {% if custom_message %} value="{{- custom_message -}}" {% endif %} />
</div> </div>
</div> </div>
<!-- Add a hidden feed_url field to the form --> <!-- Add a hidden feed_url field to the form -->
<input type="hidden" name="feed_url" value="{{ feed.url }}" /> <input type="hidden" name="feed_url" value="{{ feed.url }}" />
<!-- Submit button --> <!-- Submit button -->
<div class="d-md-flex"> <div class="d-md-flex">
<button class="btn btn-dark btn-sm">Update message</button> <button class="btn btn-dark btn-sm">Update message</button>
</div> </div>
</form> </form>
</div> </div>
{% endblock content %} {% endblock content %}