diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2014-12-05 01:45:57 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2014-12-05 01:45:57 -0500 |
| commit | 323c6296a9c8066a0e7a849281d89e8bdfeafbf3 (patch) | |
| tree | 5f2ddf9fad0784e5c9503de5aca76e4367d1a57b /templates | |
| parent | c67aa9f0bf66886915553487b8e7a4354dd37ee6 (diff) | |
| download | famille-flask-redesign-reloaded.tar.gz | |
avatars for everyone!redesign-reloaded
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/news/show.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/news/show.html b/templates/news/show.html index 54a8645..3bdaa9b 100644 --- a/templates/news/show.html +++ b/templates/news/show.html @@ -16,9 +16,10 @@ {% endif %} {% for comment in comments %} <div class="media comment" style="width:100%"> - <a class="media-left" href="#"> - <img src="{{ url_for('static', filename='gfx/photo.jpg') }}" alt="pomme"> - </a> + <div class="media-left"> + <img src="{{ url_for('static', filename= + 'gfx/'+comment.user_name+'.jpg') }}" alt="{{comment.user_name}}" class="img-circle"> + </div> <div class="media-body" style="width:100%"> <h4 class="media-heading"><p class="pull-right date">{{comment.date|format_date}}</p> <a href="{{url_for('view_user', user_id=comment.user_id)}}">{{comment.user_name}}</a></h4> |
