moviewyrm/bookwyrm/templates/shelf.html

61 lines
1.7 KiB
HTML
Raw Normal View History

2020-02-22 00:03:05 +00:00
{% extends 'layout.html' %}
2020-10-30 21:01:43 +00:00
{% load fr_display %}
2020-02-22 00:03:05 +00:00
{% block content %}
2020-11-10 21:39:37 +00:00
<div class="columns">
<div class="column">
<h1 class="title">
{% if is_self %}Your
{% else %}
{% include 'snippets/username.html' with user=user possessive=True %}
{% endif %}
shelves
</h1>
</div>
{% if is_self %}
<div class="column is-narrow">
<a href="/create-shelf/">
<span class="icon icon-plus">
<span class="is-sr-only">Create new shelf</span>
</span>
</a>
</div>
{% endif %}
</div>
2020-11-06 20:02:25 +00:00
{% include 'snippets/user_header.html' with user=user %}
2020-02-22 00:03:05 +00:00
<div class="block">
2020-11-10 21:39:37 +00:00
<div class="tabs" aria-role="tablist">
<ul>
2020-10-30 21:01:43 +00:00
{% for shelf_tab in shelves %}
2020-11-10 21:39:37 +00:00
<li class="{% if shelf_tab.identifier == shelf.identifier %}is-active{% endif %}">
<a href="/user/{{ user | username }}/shelf/{{ shelf_tab.identifier }}" role="tab" aria-selected="{% if shelf_tab.identifier == shelf.identifier %}true{% else %}false{% endif %}">{{ shelf_tab.name }}</a>
</li>
2020-10-30 21:01:43 +00:00
{% endfor %}
</ul>
2020-10-30 21:01:43 +00:00
</div>
</div>
2020-11-10 21:39:37 +00:00
<div class="columns">
<div class="column">
<h2 class="title is-3">{{ shelf.name }}</h2>
</div>
{% if is_self %}
<div class="column is-narrow">
<a href="/edit-shelf/{{ shelf.identifier }}">
<span class="icon icon-pencil">
<span class="is-sr-only">Edit shelf</span>
</span>
</a>
</div>
{% endif %}
</div>
2020-09-29 21:11:55 +00:00
<div class="block">
2020-02-22 00:03:05 +00:00
<div>
{% include 'snippets/shelf.html' with shelf=shelf ratings=ratings %}
</div>
</div>
{% endblock %}