Commit e2ea656a authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg

Fix grayscaling of albums in ~photos

parent c19fde14
......@@ -8,7 +8,7 @@
{% block body %}
{% with keys=keywords|join:" " %}
<section id="photos-albums" class="page-section">
<section id="photos-index" class="page-section">
<div class="container">
<h1 class="text-center section-title">{% trans "Photos" %}</h1>
......
......@@ -20,13 +20,15 @@ def album_card(album):
if album.cover.rotation > 0:
class_name += ' rotate{}'.format(album.cover.rotation)
url = album.get_absolute_url
if not album.accessible:
class_name += ' grayscale'
url = None
return grid_item(
title=album.title,
meta_text='<p>{}</p>'.format(date(album.date, 'Y-m-d')),
url=album.get_absolute_url,
url=url,
image_url=image_url,
class_name=class_name,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment