Skip to content
GitLab
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
284e3c5a
Commit
284e3c5a
authored
Feb 17, 2019
by
Joren Vrancken
Browse files
Merge branch 'duplicated-code' into 'master'
Remove duplicate code from photos_cards.py See merge request
!1167
parents
700ec21f
8a8ddeef
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/photos/templatetags/photos_cards.py
View file @
284e3c5a
...
...
@@ -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
Supports
Markdown
0%
Try again
or
attach a new 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