Improve feed page
This commit is contained in:
@ -1,14 +1,16 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block title %} | {{ feed.title }}{% endblock %}
|
{% block title %} | {{ feed.title }}{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<a class="text-muted text-decoration-none" href="{{ feed.link }}">
|
<h2>
|
||||||
<h2>{{ feed.title }}
|
<a class="text-muted text-decoration-none" href="{{ feed.link }}">
|
||||||
|
{{ feed.title }}
|
||||||
{% if not feed.updates_enabled %}
|
{% if not feed.updates_enabled %}
|
||||||
- <span style="color: red">disabled</span>
|
- <span style="color: red">disabled</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h2>
|
</a>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
|
||||||
</a>
|
|
||||||
{% if feed.subtitle %}
|
{% if feed.subtitle %}
|
||||||
<small class="text-muted text-decoration-none">{{ feed.subtitle }}</small>
|
<small class="text-muted text-decoration-none">{{ feed.subtitle }}</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -53,34 +55,21 @@
|
|||||||
@ {{ entry.published.strftime('%Y-%m-%d, %T') }}
|
@ {{ entry.published.strftime('%Y-%m-%d, %T') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<p>
|
|
||||||
{# Add a button to get the summary #}
|
|
||||||
{% if entry.summary %}
|
|
||||||
<a class="btn btn-primary" data-bs-toggle="collapse" href="#collapse_summary_{{ loop.index }}"
|
|
||||||
role="button">Summary</a>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{# Add a button to get the content #}
|
|
||||||
{% if entry.content %}
|
|
||||||
<a class="btn btn-primary" data-bs-toggle="collapse" href="#collapse_content_{{ loop.index }}"
|
|
||||||
role="button">Content</a>
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
{% if entry.summary %}
|
{% if entry.summary %}
|
||||||
<div class="collapse" id="collapse_summary_{{ loop.index }}">
|
<details>
|
||||||
<div class="card card-body text-muted border border-dark" style="background: #111111;">
|
<summary>Summary</summary>
|
||||||
|
<div class="text-muted text-wrap" style="max-height:450px; overflow-y: auto;">
|
||||||
{{ entry.summary | safe }}
|
{{ entry.summary | safe }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</details>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if entry.content %}
|
{% if entry.content %}
|
||||||
<div class="collapse" id="collapse_content_{{ loop.index }}">
|
<details>
|
||||||
<div class="card card-body text-muted border border-dark" style="background: #111111;">
|
<summary>Content</summary>
|
||||||
|
<div class="text-muted" style="max-height:450px; overflow-y: auto;">
|
||||||
{{ entry.content[0].value | safe }}
|
{{ entry.content[0].value | safe }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</details>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user