From 2549d94f31cf5a0d9032baba91607aef3b3d8b7e Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 14 Dec 2014 14:41:44 +0100 Subject: [PATCH] made a few things prettier --- app/views/notifications/index.html.haml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/app/views/notifications/index.html.haml b/app/views/notifications/index.html.haml index 4fb6fae7..d4094925 100644 --- a/app/views/notifications/index.html.haml +++ b/app/views/notifications/index.html.haml @@ -6,12 +6,12 @@ %li.list-group-item .media .pull-left - %img.notification--img + %img.notification--img{src: gravatar_url(notification.target.user)} .media-body + %h6.media-heading.notification--user + = user_screen_name notification.target.user - case notification.target_type - when "Answer" - %h6.media-heading.notification--user - = notification.target.user.screen_name %p.notification--text answered %a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.id)} @@ -31,19 +31,6 @@ followed you! .notification--icon %i.fa.fa-users - %li.list-group-item - .media - .pull-left - %img.notification--img - .media-body - %h6.media-heading.notification--user - username - %p.notification--text - answered - %a your question - some time ago! - .notification--icon - %i.fa.fa-exclamation %li.list-group-item .media .pull-left