Update feed page
This commit is contained in:
@ -2,42 +2,18 @@
|
|||||||
{% block title %} | {{ feed.title }}{% endblock %}
|
{% block title %} | {{ feed.title }}{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="p-2 mb-2 border border-dark">
|
<div class="p-2 mb-2 border border-dark">
|
||||||
{# The feed title.#}
|
<!-- The feed title. -->
|
||||||
<h2>
|
<h2><a class="text-muted text-decoration-none" href="{{ feed.link }}">{{ feed.title }}</a></h2>
|
||||||
<a class="text-muted text-decoration-none" href="{{ feed.link }}">
|
|
||||||
{{ feed.title }}
|
|
||||||
{% if not feed.updates_enabled %}
|
|
||||||
- <span class="text-danger">disabled</span>
|
|
||||||
{% endif %}
|
|
||||||
</a>
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
{# Feed subtitle, probably description. #}
|
{% if not feed.updates_enabled %}<span class="text-danger">Disabled</span>{% endif %}
|
||||||
{% if feed.subtitle %}
|
|
||||||
<small class="text-muted text-decoration-none">{{ feed.subtitle }}</small>
|
|
||||||
<br>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{# When this feed was added.#}
|
{% if feed.last_exception %}Last exception: {{ feed.last_exception }}{% endif %}
|
||||||
{% if feed.added %}
|
|
||||||
Added: {{ feed.added.strftime('%Y-%m-%d, %T') }}
|
|
||||||
<br>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{# If this feed has had an error. #}
|
|
||||||
{% if feed.last_exception %}
|
|
||||||
Last exception: {{ feed.last_exception }}
|
|
||||||
<br>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{# Remove feed button. #}
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<form action="/remove" method="post">
|
<form action="/remove" method="post">
|
||||||
<button class="btn btn-danger btn-sm" name="feed_url" value="{{ feed.url }}"
|
<button class="btn btn-danger btn-sm" name="feed_url" value="{{ feed.url }}"
|
||||||
onclick="return confirm('Are you sure you want to delete this feed?')">Remove
|
onclick="return confirm('Are you sure you want to delete this feed?')">Remove
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if not feed.updates_enabled %}
|
{% if not feed.updates_enabled %}
|
||||||
<form action="/unpause" method="post">
|
<form action="/unpause" method="post">
|
||||||
|
Reference in New Issue
Block a user