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 | |
| parent | c67aa9f0bf66886915553487b8e7a4354dd37ee6 (diff) | |
| download | famille-flask-323c6296a9c8066a0e7a849281d89e8bdfeafbf3.tar.gz | |
avatars for everyone!redesign-reloaded
| -rw-r--r-- | static/gfx/Enguerrand.jpg | bin | 0 -> 2831 bytes | |||
| -rw-r--r-- | static/gfx/Guillaume.jpg | bin | 0 -> 4545 bytes | |||
| -rw-r--r-- | static/gfx/Maman.jpg | bin | 0 -> 2108 bytes | |||
| -rw-r--r-- | static/gfx/Papa.jpg | bin | 0 -> 2550 bytes | |||
| -rw-r--r-- | static/gfx/Thibaut.jpg | bin | 0 -> 3137 bytes | |||
| -rw-r--r-- | static/main.css | 4 | ||||
| -rw-r--r-- | templates/news/show.html | 7 |
7 files changed, 8 insertions, 3 deletions
diff --git a/static/gfx/Enguerrand.jpg b/static/gfx/Enguerrand.jpg Binary files differnew file mode 100644 index 0000000..aff2bd0 --- /dev/null +++ b/static/gfx/Enguerrand.jpg diff --git a/static/gfx/Guillaume.jpg b/static/gfx/Guillaume.jpg Binary files differnew file mode 100644 index 0000000..b21af8f --- /dev/null +++ b/static/gfx/Guillaume.jpg diff --git a/static/gfx/Maman.jpg b/static/gfx/Maman.jpg Binary files differnew file mode 100644 index 0000000..1e0ed89 --- /dev/null +++ b/static/gfx/Maman.jpg diff --git a/static/gfx/Papa.jpg b/static/gfx/Papa.jpg Binary files differnew file mode 100644 index 0000000..8a324e1 --- /dev/null +++ b/static/gfx/Papa.jpg diff --git a/static/gfx/Thibaut.jpg b/static/gfx/Thibaut.jpg Binary files differnew file mode 100644 index 0000000..c53eedb --- /dev/null +++ b/static/gfx/Thibaut.jpg diff --git a/static/main.css b/static/main.css index 9e299ce..c546e8c 100644 --- a/static/main.css +++ b/static/main.css @@ -39,3 +39,7 @@ p.kadoscope{ background-position : center; height : 130px; } + +.media-left img{ + width: 64px; +}
\ No newline at end of file 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> |
