diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2014-12-05 00:55:00 -0500 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2014-12-05 00:55:00 -0500 |
| commit | 8f38587e5c92e1339e84cd0093a2fd8902b0a9db (patch) | |
| tree | bf8c53bde1b1db22768dbcfbb14e37ab64ed4373 | |
| parent | 42a9c159c9f23f63ec028af050b4f31144e5b7a8 (diff) | |
| download | famille-flask-8f38587e5c92e1339e84cd0093a2fd8902b0a9db.tar.gz | |
Tooltips, icons
| -rw-r--r-- | static/main.css | 6 | ||||
| -rw-r--r-- | templates/news/list.html | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/static/main.css b/static/main.css index e7e3f01..57e6ba0 100644 --- a/static/main.css +++ b/static/main.css @@ -21,6 +21,10 @@ nav .fa { margin-left: 1em; } +a .fa { + color: black; +} + .login { margin:10em auto -}
\ No newline at end of file +} diff --git a/templates/news/list.html b/templates/news/list.html index 61320a3..f03b720 100644 --- a/templates/news/list.html +++ b/templates/news/list.html @@ -18,11 +18,11 @@ <h2><a href="{{url_for('show_news', news_id = news.id)}}">{{ news.title }}</a></h2> {% if news.user_name==session.user_name %} - <p class="pull-right"> | <a href="{{url_for('edit_news', news_id = news.id)}}">Modifier</a> </p> + <p class="pull-right"> <a href="{{url_for('edit_news', news_id = news.id)}}"><i data-toggle="tooltip" data-placement="bottom" title="Éditer" class="fa fa-pencil"></i></a> </p> {% endif %} <p class="comments pull-right"> - <a href="{{url_for('show_news', news_id = news.id)}}#add">{{news.ncomments}}</a> <i class="fa fa-comment"></i> + <a href="{{url_for('show_news', news_id = news.id)}}#add">{{news.ncomments}} <i class="fa fa-comment"></i></a> </p> <p>Posté par <a href="{{url_for('view_user', user_id=news.user_id)}}">{{news.user_name}}</a> le {{news.date|format_date}}</p> |
