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
f6ea2827
Commit
f6ea2827
authored
Dec 06, 2016
by
Luuk Scholten
Browse files
Merge branch 'fix/use-thumbnail-member-directory' into 'release/1.0.0'
Use a thumbnail in the member directory See merge request
!207
parents
9aad23c9
edab5e6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/members/templates/members/index.html
View file @
f6ea2827
...
...
@@ -2,6 +2,7 @@
{% load static %}
{% load i18n %}
{% load thumbnail %}
{% block title %}{% trans "members"|capfirst %} — {{ block.super }}{% endblock %}
...
...
@@ -54,7 +55,11 @@
<a
href=
"{% url 'members:profile' pk=member.pk %}"
>
<div
class=
"post-inner"
>
<div
class=
"inner-img"
>
<img
src=
"{% if not member.photo %}{% static "
members
/
images
/
default-avatar.jpg
"
%}{%
else
%}{{
member.photo.url
}}{%
endif
%}"
alt=
"{{ member.username }}"
/>
{% if not member.photo %}
<img
alt=
"{{ member.display_name }}"
src=
"{% static 'members/images/default-avatar.jpg' %}"
height=
"220"
width=
"220"
/>
{% else %}
<img
alt=
"{{ member.display_name }}"
src=
"{% thumbnail member.photo '220x220' %}"
width=
"220"
height=
"220"
/>
{% endif %}
</div>
<div
class=
"post-overlay"
>
<div
class=
"post-overlay-meta"
>
...
...
@@ -102,4 +107,4 @@
</ul>
</div>
{% endblock %}
\ No newline at end of file
{% endblock %}
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