diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2014-12-04 23:56:45 -0500 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2014-12-04 23:56:45 -0500 |
| commit | 4e429e8a7e5664bdacc5550d82cbf4dcc938e6b1 (patch) | |
| tree | e7cbbe7a5298159440e212156d90492420bdd89b | |
| parent | 066c22d34e1d6ef140d6ddb3277b0ddc9dc2b74b (diff) | |
| download | famille-flask-4e429e8a7e5664bdacc5550d82cbf4dcc938e6b1.tar.gz | |
Add font awesome
| -rw-r--r-- | static/main.css | 4 | ||||
| -rw-r--r-- | templates/layout.html | 5 | ||||
| -rw-r--r-- | templates/news/list.html | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/static/main.css b/static/main.css index f4f67c7..d79fb50 100644 --- a/static/main.css +++ b/static/main.css @@ -16,3 +16,7 @@ article > header { margin-bottom: 2em; } + +nav .fa { + margin-left: 0.5em; +} diff --git a/templates/layout.html b/templates/layout.html index 6b67943..efaa7af 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -4,6 +4,7 @@ <title>{% block title %}Site de la famille{% endblock %}</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> + <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <link rel="stylesheet" media="screen" type="text/css" href="{{ url_for('static', filename = 'bootstrap-flat.min.css') }}" /> <link rel="stylesheet" media="screen" type="text/css" href="{{ url_for('static', filename = 'main.css') }}" /> <link rel="alternate" type="application/rss+xml" title="Les actualités" href='rss.xml' /> @@ -17,8 +18,8 @@ <li><a href="/article/">Articles</a></li> </ul> <p class="navbar-text navbar-right"> - {{session['user_name']}} (<a href="/user/edit" class="navbar-link">Mon Compte</a> | - <a href="/logout" class="navbar-link">Se déconnecter</a>) + {{session['user_name']}} <a href="/user/edit" class="navbar-link"><i class="fa fa-gear"></i></a> + <a href="/logout" class="navbar-link"><i class="fa fa-sign-out"></i></a> </p> </div> diff --git a/templates/news/list.html b/templates/news/list.html index 786ae4e..6385004 100644 --- a/templates/news/list.html +++ b/templates/news/list.html @@ -22,7 +22,7 @@ {% endif %} <p class="comments pull-right"> - <a href="{{url_for('show_news', news_id = news.id)}}#add">{{"Commentaire"|pluralize(news.ncomments)}}</a> + <i class="fa fa-comment"></i> <a href="{{url_for('show_news', news_id = news.id)}}#add">{{"Commentaire"|pluralize(news.ncomments)}}</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> |
