Initial commit.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Newspapers - RSS Feed Manager{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 style="margin-bottom: 20px; font-size: 32px; font-weight: normal;">Newspapers</h1>
|
||||
|
||||
<div style="margin-bottom: 20px;">
|
||||
<a href="/sync-logs" class="btn btn-primary">View Sync Logs</a>
|
||||
<a href="/manage" class="btn">Back to Manage</a>
|
||||
</div>
|
||||
|
||||
{% if newspapers %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date & Time</th>
|
||||
<th>Articles</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for newspaper in newspapers %}
|
||||
<tr>
|
||||
<td>{{ newspaper.created_at[:19].replace('T', ' ') }}</td>
|
||||
<td>{{ newspaper.article_count }}</td>
|
||||
<td>
|
||||
<a href="/newspaper/{{ newspaper.id }}" class="btn btn-primary" target="_blank">Read Newspaper</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<p style="text-align: center; padding: 40px; color: #5f6368;">
|
||||
No newspapers generated yet. Run a synchronization to generate one.
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user