2015-01-08 09:22:27 -08:00
|
|
|
%li.list-group-item{class: (notification.new? ? 'list-group-item-warning' : '')}
|
|
|
|
.media
|
|
|
|
- case notification.target_type
|
|
|
|
- when "Answer"
|
|
|
|
.pull-left
|
|
|
|
%img.img-rounded.notification--img{src: gravatar_url(notification.target.user)}
|
|
|
|
.media-body
|
|
|
|
%h6.media-heading.notification--user
|
|
|
|
= user_screen_name notification.target.user
|
|
|
|
%p.notification--text
|
2015-06-06 16:28:10 -07:00
|
|
|
= raw t('views.notifications.answer.body', question: link_to(t('views.notifications.answer.question'), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.id)), time: time_tooltip(notification.target))
|
2015-01-08 09:22:27 -08:00
|
|
|
.notification--icon
|
|
|
|
%i.fa.fa-exclamation
|
|
|
|
- when "Relationship"
|
|
|
|
.pull-left
|
|
|
|
%img.img-rounded.notification--img{src: gravatar_url(notification.target.source)}
|
|
|
|
.media-body
|
|
|
|
%h6.media-heading.notification--user
|
|
|
|
= user_screen_name notification.target.source
|
|
|
|
%p.notification--text
|
2015-06-06 16:28:10 -07:00
|
|
|
= raw t('views.notifications.relationship.body', time: time_tooltip(notification.target))
|
2015-01-08 09:22:27 -08:00
|
|
|
.notification--icon
|
|
|
|
%i.fa.fa-users
|
|
|
|
- when "Smile"
|
|
|
|
.pull-left
|
|
|
|
%img.img-rounded.notification--img{src: gravatar_url(notification.target.user)}
|
|
|
|
.media-body
|
|
|
|
%h6.media-heading.notification--user
|
|
|
|
= user_screen_name notification.target.user
|
|
|
|
%p.notification--text
|
2015-06-06 16:28:10 -07:00
|
|
|
= raw t('views.notifications.smile.body', content: link_to(t('views.notifications.smile.answer'), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)), time: time_tooltip(notification.target))
|
2015-01-08 09:22:27 -08:00
|
|
|
.notification--icon
|
|
|
|
%i.fa.fa-smile-o
|
2015-05-03 18:39:41 -07:00
|
|
|
- when "CommentSmile"
|
|
|
|
.pull-left
|
|
|
|
%img.img-rounded.notification--img{src: gravatar_url(notification.target.user)}
|
|
|
|
.media-body
|
|
|
|
%h6.media-heading.notification--user
|
|
|
|
= user_screen_name notification.target.user
|
|
|
|
%p.notification--text
|
2015-06-08 21:06:09 -07:00
|
|
|
= raw t('views.notifications.smile.body', content: link_to(t('views.notifications.smile.comment'), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.comment.answer.id)), time: time_tooltip(notification.target))
|
2015-05-03 18:39:41 -07:00
|
|
|
.notification--icon
|
|
|
|
%i.fa.fa-smile-o
|
2015-01-08 09:22:27 -08:00
|
|
|
- when "Comment"
|
|
|
|
.pull-left
|
|
|
|
%img.img-rounded.notification--img{src: gravatar_url(notification.target.user)}
|
|
|
|
.media-body
|
|
|
|
%h6.media-heading.notification--user
|
|
|
|
= user_screen_name notification.target.user
|
|
|
|
%p.notification--text
|
2015-06-06 17:43:18 -07:00
|
|
|
- if notification.target.answer.user == current_user
|
|
|
|
= raw t('views.notifications.comment.body', content: link_to(t('views.notifications.comment.your', user: user_screen_name(current_user, false, false)), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)), time: time_tooltip(notification.target))
|
|
|
|
- elsif notification.target.user == notification.target.answer.user
|
|
|
|
= raw t('views.notifications.comment.body', content: link_to(t('views.notifications.comment.their', user: user_screen_name(notification.target.answer.user, false, false)), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)), time: time_tooltip(notification.target))
|
|
|
|
- else
|
2015-06-09 08:49:29 -07:00
|
|
|
= raw t('views.notifications.comment.body', content: link_to(t('views.notifications.comment.user', user: user_screen_name(notification.target.answer.user, false, false)), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)), time: time_tooltip(notification.target))
|
2015-01-08 09:22:27 -08:00
|
|
|
.notification--icon
|
2015-04-20 18:12:11 -07:00
|
|
|
%i.fa.fa-comments
|