Merge app and project, use SQLite instead and
This commit is contained in:
parent
f0e7a35774
commit
4c16d14e61
29 changed files with 221 additions and 454 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<p>
|
||||
You can register <a href='{% url "feeds:register" %}'>here</a>.
|
||||
You can register <a href="{% url 'register' %}">here</a>.
|
||||
</p>
|
||||
<h2>Login</h2>
|
||||
<form method="post">
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
{% endif %}
|
||||
<span class="title">
|
||||
<h1>
|
||||
<a href='{% url "feeds:index" %}'>FeedVault</a>
|
||||
<a href="{% url 'index' %}">FeedVault</a>
|
||||
</h1>
|
||||
</span>
|
||||
<div class="leftright">
|
||||
|
|
@ -104,21 +104,21 @@
|
|||
<small>
|
||||
<div class="leftright">
|
||||
<div class="left">
|
||||
<a href='{% url "feeds:index" %}'>Home</a> |
|
||||
<a href='{% url "feeds:domains" %}'>Domains</a> |
|
||||
<a href='{% url "feeds:feeds" %}'>Feeds</a> |
|
||||
<a href='{% url "feeds:api" %}'>API</a>
|
||||
<a href="{% url 'index' %}">Home</a> |
|
||||
<a href="{% url 'domains' %}">Domains</a> |
|
||||
<a href="{% url 'feeds' %}">Feeds</a> |
|
||||
<a href="{% url 'api' %}">API</a>
|
||||
</div>
|
||||
<div class="right">
|
||||
<a href="https://github.com/TheLovinator1/FeedVault">GitHub</a> |
|
||||
<a href="https://github.com/sponsors/TheLovinator1">Donate</a>
|
||||
<!-- Show login if not logged in -->
|
||||
{% if not user.is_authenticated %}
|
||||
| <a href='{% url "feeds:login" %}'>Login</a>
|
||||
| <a href="{% url 'login' %}">Login</a>
|
||||
{% endif %}
|
||||
<!-- Show username if logged in -->
|
||||
{% if user.is_authenticated %}
|
||||
| <a href='{% url "feeds:profile" %}'>{{ user.username }}</a>
|
||||
| <a href="{% url 'profile' %}">{{ user.username }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<ul>
|
||||
{% for feed in feeds %}
|
||||
<li>
|
||||
<a href="/feed/{{ feed.id }}">{{ feed.feed_url }}</a>
|
||||
<a href="{% url 'feed' feed.id %}">{{ feed.feed_url }}</a>
|
||||
</li>
|
||||
{% empty %}
|
||||
<li>Found no feeds for this domain.</li>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
{% for domain in domains %}
|
||||
{% if not domain.hidden %}
|
||||
<li>
|
||||
<a href="/domain/{{ domain.id }}">{{ domain.url }}</a> - {{ domain.created_at|date }}
|
||||
<a href="{% url 'domain' domain.id %}">{{ domain.url }}</a> - {{ domain.created_at|date }}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% empty %}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
{% for feed in feeds %}
|
||||
<li>{{ feed.feed_url }} - {{ feed.created_at|date }}</li>
|
||||
<li>
|
||||
<a href="/feed/{{ feed.id }}">View</a>
|
||||
<a href="{% url 'feed' feed.id %}">View</a>
|
||||
</li>
|
||||
{% empty %}
|
||||
<li>No feeds yet.</li>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<p>
|
||||
Input the URLs of the feeds you wish to archive below. You can add as many as needed, and access them through the website or API. Alternatively, include links to .opml files, and the feeds within will be archived.
|
||||
</p>
|
||||
<form action='{% url "feeds:add" %}' method='post'>
|
||||
<form action="/add" method='post'>
|
||||
{% csrf_token %}
|
||||
<textarea id="urls" name="urls" rows="5" cols="50" required></textarea>
|
||||
<button type="submit">Add feeds</button>
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
</p>
|
||||
<form enctype="multipart/form-data"
|
||||
method="post"
|
||||
action="{% url 'feeds:upload' %}">
|
||||
action="{% url 'upload' %}">
|
||||
{% csrf_token %}
|
||||
<p>
|
||||
<input type="file" name="file" id="file" required>
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
FeedVault is a service that archives web feeds. It allows users to access and search for historical content from various websites. The service is designed to preserve the history of the web and provide a reliable source for accessing content that may no longer be available on the original websites.
|
||||
</p>
|
||||
<p>
|
||||
You need to <a href='{% url "feeds:login" %}'>login</a> or <a href='{% url "feeds:register" %}'>register</a> to add new feeds or upload files.
|
||||
You need to <a href="{% url 'login' %}">login</a> or <a href="{% url 'register' %}">register</a> to add new feeds or upload files.
|
||||
</p>
|
||||
{% endif %}
|
||||
<h2>FAQ</h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue