Skip to content

Commit

Permalink
Fix #2287 (books can't be added to shelf from search)
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzieIsaacs committed Jan 24, 2022
1 parent bbef412 commit e8e2f78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cps/templates/search.html
Expand Up @@ -9,6 +9,7 @@ <h2>{{result_count}} {{_('Results for:')}} {{adv_searchterm}}</h2>
{% if g.user.is_authenticated %}
{% if g.user.shelf.all() or g.shelves_access %}
<div id="shelf-actions" class="btn-toolbar" role="toolbar">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="btn-group" role="group" aria-label="Add to shelves">
<button id="add-to-shelf" type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-list"></span> {{_('Add to shelf')}}
Expand Down

0 comments on commit e8e2f78

Please sign in to comment.