You will need a user to add feeds now
This commit is contained in:
parent
61b9db1333
commit
2058054c99
5 changed files with 94 additions and 29 deletions
|
|
@ -3,25 +3,10 @@
|
|||
<h2>{{ user.username }}</h2>
|
||||
<h3>Feeds</h3>
|
||||
<ul>
|
||||
{% for feed in feeds %}
|
||||
{% for feed in user_feeds %}
|
||||
<li>
|
||||
<a href='{% url "feeds:feed" feed.id %}'>{{ feed.title }}</a>
|
||||
<a href='{% url "feeds:feed" feed.id %}'>{{ feed.feed_url }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h3>Subscriptions</h3>
|
||||
<ul>
|
||||
{% for subscription in subscriptions %}
|
||||
<li>
|
||||
<a href='{% url "feeds:feed" subscription.id %}'>{{ subscription.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h3>Subscribers</h3>
|
||||
<p>
|
||||
<form action="{% url 'feeds:logout' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<button type="submit">Logout</button>
|
||||
</form>
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue