Add /feeds

This commit is contained in:
Joakim Hellsén 2024-01-30 03:29:56 +01:00
commit 85ae466d3b
4 changed files with 54 additions and 8 deletions

View file

@ -14,14 +14,16 @@
</head>
<body>
<span class="title">
<h1>FeedVault</h1>
<a href="{% url 'feeds:index' %}">
<h1>FeedVault</h1>
</a>
</span>
<small>An archive of <a href="https://en.wikipedia.org/wiki/Web_feed">web feeds</a>. Currently archiving {{ feed_count }} feeds. ~{{ database_size|floatformat:2 }} MB of data.</small>
<nav>
<small>
<div class="leftright">
<div class="left">
<a href="">Feeds</a> | <a href="">About</a> | <a href="">API</a> | <a href="">Stats</a> | <a href="">GitHub</a> | <a href="">Donate</a>
<a href="{% url 'feeds:feeds' %}">Feeds</a> | <a href="">About</a> | <a href="">API</a> | <a href="">Stats</a> | <a href="">GitHub</a> | <a href="">Donate</a>
</div>
<div class="right">
<a href="">Login</a>

19
templates/feeds.html Normal file
View file

@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}<title>Feeds</title>{% endblock %}
{% block description %}FeedVault - A feed archive{% endblock %}
{% block keywords %}RSS, Atom, Feed, Archive{% endblock %}
{% block content %}
{% for feed in object_list %}
<div class="feed">
<h2>
<a href="{{ feed.url }}">{{ feed.title }}</a>
</h2>
<p>{{ feed.description }}</p>
<p>
<small>Updated {{ feed.updated }}</small>
</p>
</div>
{% empty %}
<p>No feeds found.</p>
{% endfor %}
{% endblock %}