feat(export): add csv/json article export with date relevance scoring
This commit is contained in:
parent
5159a6e3b4
commit
6691db8051
7 changed files with 224 additions and 0 deletions
|
|
@ -24,6 +24,9 @@
|
|||
<section class="card">
|
||||
<h2>{{ article.title }}</h2>
|
||||
<p><strong>Status:</strong> <span class="badge">{{ article.status }}</span></p>
|
||||
<p><strong>Artikel-Datum:</strong> {{ article.published_at or "-" }}</p>
|
||||
<p><strong>Alter:</strong> {{ article.days_old if article.days_old is not none else "-" }} Tage</p>
|
||||
<p><strong>Relevanz:</strong> {{ article.relevance }}</p>
|
||||
<p><strong>Autor:</strong> {{ article.author or "-" }}</p>
|
||||
<p><strong>Feed:</strong> {{ feed.name if feed else "-" }}</p>
|
||||
<p><strong>Quelle Snapshot:</strong> {{ article.source_name_snapshot or "-" }}</p>
|
||||
|
|
|
|||
|
|
@ -131,6 +131,8 @@
|
|||
</select>
|
||||
<button type="submit" class="secondary">Filtern</button>
|
||||
<a href="/admin/dashboard" class="linkbtn">Reset</a>
|
||||
<a href="/api/articles/export?format=json{% if status_filter %}&status_filter={{ status_filter }}{% endif %}" class="linkbtn">Export JSON</a>
|
||||
<a href="/api/articles/export?format=csv{% if status_filter %}&status_filter={{ status_filter }}{% endif %}" class="linkbtn">Export CSV</a>
|
||||
</form>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
@ -143,6 +145,7 @@
|
|||
<td>
|
||||
<strong>{{ a.title }}</strong><br />
|
||||
<span class="subtle">Autor: {{ a.author or "-" }}</span><br />
|
||||
<span class="subtle">Datum: {{ a.published_at or "-" }} | Alter: {{ a.days_old if a.days_old is not none else "-" }} Tage | Relevanz: {{ a.relevance }}</span><br />
|
||||
<a href="{{ a.source_url }}" target="_blank" rel="noopener">Original öffnen</a>
|
||||
<br /><a href="/admin/articles/{{ a.id }}">Details anzeigen</a>
|
||||
{% if a.canonical_url and a.canonical_url != a.source_url %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue