Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
concrexit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
thalia
concrexit
Commits
2ab61575
Commit
2ab61575
authored
Dec 06, 2016
by
Sébastiaan Versteeg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use thumbnail for user image in event overview pages
parent
78c3fe34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
website/events/templates/events/event.html
website/events/templates/events/event.html
+7
-3
No files found.
website/events/templates/events/event.html
View file @
2ab61575
{% extends "base.html" %}
{% extends "base.html" %}
{% load i18n static bleach_tags%}
{% load i18n static bleach_tags
thumbnail
%}
{% block title %}{{ event.title }} — {% trans "Calendar"|capfirst %} — {{ block.super }}{% endblock %}
{% block title %}{{ event.title }} — {% trans "Calendar"|capfirst %} — {{ block.super }}{% endblock %}
...
@@ -179,7 +179,7 @@
...
@@ -179,7 +179,7 @@
<a
href=
"#"
>
<a
href=
"#"
>
<div
class=
"post-inner"
>
<div
class=
"post-inner"
>
<div
class=
"inner-img"
>
<div
class=
"inner-img"
>
<img
src=
"{% static "
members
/
images
/
default-avatar.jpg
"
%}"
>
<img
alt=
"{{ registration.name }}"
src=
"{% static 'members/images/default-avatar.jpg' %}"
height=
"220"
width=
"220"
/
>
</div>
</div>
<div
class=
"post-overlay"
>
<div
class=
"post-overlay"
>
<div
class=
"post-overlay-meta"
>
<div
class=
"post-overlay-meta"
>
...
@@ -196,7 +196,11 @@
...
@@ -196,7 +196,11 @@
<a
href=
"{% url 'members:profile' pk=registration.member.pk %}"
>
<a
href=
"{% url 'members:profile' pk=registration.member.pk %}"
>
<div
class=
"post-inner"
>
<div
class=
"post-inner"
>
<div
class=
"inner-img"
>
<div
class=
"inner-img"
>
<img
src=
"{% if not registration.member.photo %}{% static "
members
/
images
/
default-avatar.jpg
"
%}{%
else
%}{{
registration.member.photo.url
}}{%
endif
%}"
alt=
"{{ registration.member.display_name }}"
/>
{% if not registration.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 registration.member.photo '220x220' %}"
width=
"220"
height=
"220"
/>
{% endif %}
</div>
</div>
<div
class=
"post-overlay"
>
<div
class=
"post-overlay"
>
<div
class=
"post-overlay-meta"
>
<div
class=
"post-overlay-meta"
>
...
...
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