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
4163b021
Commit
4163b021
authored
Oct 09, 2019
by
Job Doesburg
Browse files
Fix localized overview placeholder thumbnail
parent
7527c4b7
Changes
4
Hide whitespace changes
Inline
Side-by-side
website/activemembers/templates/activemembers/board_index.html
View file @
4163b021
...
...
@@ -44,7 +44,7 @@
<div
class=
"row mt-4"
>
{% for board in old_boards %}
<div
class=
"col-4 col-md-3 my-3"
>
{% membergroup_card board %}
{% membergroup_card board
LANGUAGE_CODE
%}
</div>
{% endfor %}
</div>
...
...
website/activemembers/templates/activemembers/committee_index.html
View file @
4163b021
...
...
@@ -2,6 +2,7 @@
{% load i18n thumbnail static activemembers_cards alert %}
{% block title %}{% trans 'committees'|capfirst %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans 'committees'|capfirst %} — {{ block.super }}{% endblock %}
{% get_current_language as LANGUAGE_CODE %}
{% block body %}
<section
id=
"activemembers-committees"
class=
"page-section"
>
...
...
@@ -13,7 +14,7 @@
<div
class=
"row mt-4"
>
{% for committee in committees %}
<div
class=
"col-4 col-md-3 my-3"
>
{% membergroup_card committee %}
{% membergroup_card committee
LANGUAGE_CODE
%}
</div>
{% empty %}
{% trans 'There are no committees!' as no_committees %}
...
...
website/activemembers/templates/activemembers/society_index.html
View file @
4163b021
...
...
@@ -2,6 +2,7 @@
{% load i18n thumbnail static activemembers_cards alert %}
{% block title %}{% trans 'societies'|capfirst %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans 'societies'|capfirst %} — {{ block.super }}{% endblock %}
{% get_current_language as LANGUAGE_CODE %}
{% block body %}
<section
id=
"activemembers-committees"
class=
"page-section"
>
...
...
@@ -23,7 +24,7 @@
<div
class=
"row mt-4"
>
{% for society in societies %}
<div
class=
"col-4 col-md-3 my-3"
>
{% membergroup_card society %}
{% membergroup_card society
LANGUAGE_CODE
%}
</div>
{% empty %}
{% trans 'There are no societies!' as no_societies %}
...
...
website/activemembers/templatetags/activemembers_cards.py
View file @
4163b021
...
...
@@ -11,8 +11,8 @@ register = template.Library()
@
register
.
inclusion_tag
(
'includes/grid_item.html'
)
def
membergroup_card
(
group
):
image_url
=
static
(
'activemembers/images/placeholder_overview.png'
)
def
membergroup_card
(
group
,
language
):
image_url
=
static
(
f
'activemembers/images/
{
language
}
/
placeholder_overview.png'
)
if
group
.
photo
:
image_url
=
get_thumbnail_url
(
group
.
photo
,
settings
.
THUMBNAIL_SIZES
[
'medium'
])
...
...
Luko van der Maas
@lukomaas
mentioned in commit
168dc3aa
·
Oct 16, 2019
mentioned in commit
168dc3aa
mentioned in commit 168dc3aa045af7deb0f98ff8b8ea656ba23544bf
Toggle commit list
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