From: Radek Czajka Date: Wed, 19 May 2010 11:33:29 +0000 (+0200) Subject: minor redundancy fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/595d96d8a64aed3cf2d5d79583bc716c64c8186c?ds=sidebyside;hp=--cc minor redundancy fix --- 595d96d8a64aed3cf2d5d79583bc716c64c8186c diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 7cef7268b..cf1461feb 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -86,7 +86,6 @@ def tagged_object_list(request, tags=''): model = models.Book shelf = [tag for tag in tags if tag.category == 'set'] shelf_is_set = (len(tags) == 1 and tags[0].category == 'set') - my_shelf_is_set = shelf_is_set and tags[0].user == request.user theme_is_set = len([tag for tag in tags if tag.category == 'theme']) > 0 if theme_is_set: model = models.Fragment @@ -111,7 +110,6 @@ def tagged_object_list(request, tags=''): extra_context = { 'categories': categories, 'shelf_is_set': shelf_is_set, - 'my_shelf_is_set': my_shelf_is_set, 'only_author': only_author, 'pd_counter': pd_counter, 'user_is_owner': user_is_owner, diff --git a/wolnelektury/templates/catalogue/tagged_object_list.html b/wolnelektury/templates/catalogue/tagged_object_list.html index f5b896c8f..1b4435587 100644 --- a/wolnelektury/templates/catalogue/tagged_object_list.html +++ b/wolnelektury/templates/catalogue/tagged_object_list.html @@ -42,7 +42,7 @@
- {% if my_shelf_is_set %} + {% if user_is_owner %}

{% trans "Share this shelf" %}

{% trans "Copy this link and share it with other people to let them see your shelf." %}