aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--static/main.css6
-rw-r--r--templates/news/list.html4
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">&nbsp;| <a href="{{url_for('edit_news', news_id = news.id)}}">Modifier</a> </p>
+ <p class="pull-right">&nbsp;&nbsp;&nbsp;<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>