Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
e2ea656a
Commit
e2ea656a
authored
Mar 26, 2019
by
Sébastiaan Versteeg
Browse files
Fix grayscaling of albums in ~photos
parent
c19fde14
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/photos/templates/photos/index.html
View file @
e2ea656a
...
...
@@ -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>
...
...
website/photos/templatetags/photos_cards.py
View file @
e2ea656a
...
...
@@ -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
,
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment