Merge branch 'Develop'
This commit is contained in:
commit
7e530618b7
|
@ -268,7 +268,6 @@ def delete_shelf(shelf_id):
|
|||
# @shelf.route("/shelfdown/<int:shelf_id>")
|
||||
@shelf.route("/shelf/<int:shelf_id>", defaults={'shelf_type': 1})
|
||||
@shelf.route("/shelf/<int:shelf_id>/<int:shelf_type>")
|
||||
@login_required
|
||||
def show_shelf(shelf_type, shelf_id):
|
||||
if current_user.is_anonymous:
|
||||
shelf = ub.session.query(ub.Shelf).filter(ub.Shelf.is_public == 1, ub.Shelf.id == shelf_id).first()
|
||||
|
|
4
cps/static/css/libs/bootstrap-theme.min.css
vendored
4
cps/static/css/libs/bootstrap-theme.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
cps/static/css/libs/bootstrap.min.css
vendored
4
cps/static/css/libs/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
cps/static/css/libs/bootstrap.min.css.map
vendored
2
cps/static/css/libs/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
6
cps/static/js/libs/bootstrap.min.js
vendored
6
cps/static/js/libs/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -128,7 +128,7 @@
|
|||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if g.user.is_authenticated or allow_anonymous %}
|
||||
{% if g.user.is_authenticated or g.allow_anonymous %}
|
||||
<li class="nav-head hidden-xs public-shelves">{{_('Public Shelves')}}</li>
|
||||
{% for shelf in g.public_shelfes %}
|
||||
<li><a href="{{url_for('shelf.show_shelf', shelf_id=shelf.id)}}"><span class="glyphicon glyphicon-list public_shelf"></span>{{shelf.name|shortentitle(40)}}</a></li>
|
||||
|
|
Loading…
Reference in New Issue
Block a user