Adds basic view and template files
This commit is contained in:
7
bookwyrm/templates/lists/list.html
Normal file
7
bookwyrm/templates/lists/list.html
Normal file
@ -0,0 +1,7 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<h1>{{ list.name }}</h1>
|
||||
|
||||
{{ list }}
|
||||
|
||||
{% endblock %}
|
16
bookwyrm/templates/lists/lists.html
Normal file
16
bookwyrm/templates/lists/lists.html
Normal file
@ -0,0 +1,16 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
|
||||
<h1>lists</h1>
|
||||
{% if request.user.is_authenticated %}
|
||||
<h2>Your lists</h2>
|
||||
{% for list in request.user.list_set.all %}
|
||||
{{ list }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% for list in lists %}
|
||||
{{ list }}
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user