forked from mirrors/bookwyrm
Make import link a link not a button
This commit is contained in:
parent
d86ffc47a7
commit
87deac17f9
1 changed files with 40 additions and 27 deletions
|
@ -19,45 +19,58 @@
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="block columns">
|
<nav class="block columns is-mobile scroll-x">
|
||||||
<div class="column">
|
<div class="column pr-0">
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="{% if shelf.identifier == 'all' %}is-active{% endif %}">
|
<li class="{% if shelf.identifier == 'all' %}is-active{% endif %}">
|
||||||
<a href="{% url 'user-shelves' user|username %}"{% if shelf.identifier == 'all' %} aria-current="page"{% endif %}>
|
<a href="{% url 'user-shelves' user|username %}"{% if shelf.identifier == 'all' %} aria-current="page"{% endif %}>
|
||||||
{% trans "All books" %}
|
{% trans "All books" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% for shelf_tab in shelves %}
|
{% for shelf_tab in shelves %}
|
||||||
<li class="{% if shelf_tab.identifier == shelf.identifier %}is-active{% endif %}">
|
<li class="{% if shelf_tab.identifier == shelf.identifier %}is-active{% endif %}">
|
||||||
<a
|
<a
|
||||||
href="{{ shelf_tab.local_path }}"
|
href="{{ shelf_tab.local_path }}"
|
||||||
{% if shelf_tab.identifier == shelf.identifier %} aria-current="page"{% endif %}
|
{% if shelf_tab.identifier == shelf.identifier %} aria-current="page"{% endif %}
|
||||||
>
|
>
|
||||||
{% if shelf_tab.identifier == 'to-read' %}
|
{% if shelf_tab.identifier == 'to-read' %}
|
||||||
{% trans "To Read" %}
|
{% trans "To Read" %}
|
||||||
{% elif shelf_tab.identifier == 'reading' %}
|
{% elif shelf_tab.identifier == 'reading' %}
|
||||||
{% trans "Currently Reading" %}
|
{% trans "Currently Reading" %}
|
||||||
{% elif shelf_tab.identifier == 'read' %}
|
{% elif shelf_tab.identifier == 'read' %}
|
||||||
{% trans "Read" %}
|
{% trans "Read" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ shelf_tab.name }}
|
{{ shelf_tab.name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if is_self %}
|
{% if is_self %}
|
||||||
|
<div class="column is-narrow pl-0">
|
||||||
|
<div class="tabs">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="{% url 'import' %}">
|
||||||
|
<span class="icon icon-list" aria-hidden="true"></span>
|
||||||
|
<span>{% trans "Import Books" %}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="column is-narrow">
|
<div class="column is-narrow">
|
||||||
{% trans "Create shelf" as button_text %}
|
{% trans "Create shelf" as button_text %}
|
||||||
{% include 'snippets/toggle/open_button.html' with text=button_text icon_with_text="plus" controls_text="create_shelf_form" focus="create_shelf_form_header" %}
|
{% include 'snippets/toggle/open_button.html' with text=button_text icon_with_text="plus" controls_text="create_shelf_form" focus="create_shelf_form_header" %}
|
||||||
<a class="button" href="{% url 'import' %}">{% trans "Import Books" %}</a>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</nav>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
{% include 'shelf/create_shelf_form.html' with controls_text='create_shelf_form' %}
|
{% include 'shelf/create_shelf_form.html' with controls_text='create_shelf_form' %}
|
||||||
|
|
Loading…
Reference in a new issue