mirror of
https://codeberg.org/danielsiepmann/news-reader-php.git
synced 2024-11-22 04:06:09 +01:00
Daniel Siepmann
8efad3e1fd
Basic import of entries from feeds. Also make imported feeds accessible in frontend.
26 lines
843 B
Twig
26 lines
843 B
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}{{ feed.name }} {{ feed.bucket.name }}| {{ parent() }}{% endblock %}
|
|
|
|
{% block body %}
|
|
<header>
|
|
<h1>Feed: {{ feed.name }}</h1>
|
|
|
|
<nav>
|
|
<a href="{{ feed.url }}" target="_blank"
|
|
rel="external nofollow noopener noreferrer"
|
|
referrerpolicy="no-referrer">Feed URL</a>
|
|
|
|
{% if feed.htmlUrl %}
|
|
<a href="{{ feed.htmlUrl }}" target="_blank"
|
|
rel="external nofollow noopener noreferrer"
|
|
referrerpolicy="no-referrer">HTML variant</a>
|
|
{% endif %}
|
|
|
|
<a href="{{ path('bucket', {slug: feed.bucket.slug}) }}">{{ feed.bucket.name }} bucket</a>
|
|
</nav>
|
|
</header>
|
|
|
|
{{ include('feed/entries.html.twig', {entries: feed.entries}) }}
|
|
|
|
{% endblock %}
|