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
8a8ddeef
Commit
8a8ddeef
authored
Feb 14, 2019
by
Sébastiaan Versteeg
Browse files
Remove duplicate code from photos_cards.py
parent
11fc3db3
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/photos/templatetags/photos_cards.py
View file @
8a8ddeef
...
...
@@ -48,9 +48,6 @@ def photo_card(photo):
image_url
=
get_thumbnail_url
(
photo
.
file
,
settings
.
THUMBNAIL_SIZES
[
'medium'
])
if
photo
.
album
.
shareable
:
image_url
=
get_thumbnail_url
(
photo
.
file
,
settings
.
THUMBNAIL_SIZES
[
'medium'
])
if
photo
.
rotation
>
0
:
class_name
+=
' rotate{}'
.
format
(
photo
.
rotation
)
...
...
Write
Preview
Markdown
is supported
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