mirror of
https://codeberg.org/danielsiepmann/news-reader-php.git
synced 2024-11-22 12:16:09 +01:00
Daniel Siepmann
a4e4f5da0d
Add new read link to each entry. If entry was read the link will be replaced with an unread link. Clicking the link will mark the entry as read or unread. Afterwards a redirect to referrer happens. If it is unkown, for whatever reason, fallback to start. Flash messages are added and rendered to let user know what happened. Also respect already read entries when opening a feed. WIP: Still need to adjust entry listing for buckets. Still need to add tests for new feature. Still need to add new start page to show newest unread entries from all buckets.
35 lines
1,023 B
Twig
35 lines
1,023 B
Twig
<!DOCTYPE html>
|
|
<html lang="en-US">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{% block title %}{{ app_name }}{% endblock %}</title>
|
|
{% block stylesheets %}
|
|
<link href="{{ asset('css/style.css') }}" rel="stylesheet">
|
|
{% endblock %}
|
|
</head>
|
|
<body id="layout-{% block layout %}default{% endblock %}">
|
|
<header>
|
|
<h1><a href="{{ path('start') }}">{{ app_name }}</a></h1>
|
|
</header>
|
|
|
|
<aside>
|
|
{% for label, messages in app.flashes %}
|
|
<ul class="{{ label }}">
|
|
{% for message in messages %}
|
|
<li>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
</aside>
|
|
|
|
<main>
|
|
{% block body %}{% endblock %}
|
|
</main>
|
|
|
|
<footer>
|
|
© by <a href="https://daniel-siepmann.de">Daniel Siepmann</a> since 2020
|
|
</footer>
|
|
|
|
{% block javascripts %}{% endblock %}
|
|
</body>
|
|
</html>
|