Adds basic view and template files
This commit is contained in:
parent
af65509527
commit
0815b36ec9
6 changed files with 88 additions and 3 deletions
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 %}
|
Loading…
Add table
Add a link
Reference in a new issue