Place notifications in individual cards
This commit is contained in:
parent
9a79670e53
commit
83e0f7a711
|
@ -1,16 +1,16 @@
|
||||||
.card
|
%ul.list-group#notifications
|
||||||
%ul.list-group#notifications
|
- if @notifications.count.zero?
|
||||||
- if @notifications.count.zero?
|
%li.list-group-item.text-center
|
||||||
%li.list-group-item.text-center
|
.notifications--none
|
||||||
.notifications--none
|
%i.fa.fa-bell-o.notification__bell-icon
|
||||||
%i.fa.fa-bell-o.notification__bell-icon
|
%p
|
||||||
%p
|
- if params[:type] == 'all'
|
||||||
- if params[:type] == 'all'
|
= t(".none_filtered")
|
||||||
= t(".none_filtered")
|
- else
|
||||||
- else
|
= t(".none")
|
||||||
= t(".none")
|
- else
|
||||||
- else
|
- @notifications.each do |notification|
|
||||||
- @notifications.each do |notification|
|
.card
|
||||||
%li.list-group-item
|
%li.list-group-item
|
||||||
.media
|
.media
|
||||||
= render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification
|
= render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification
|
||||||
|
|
Loading…
Reference in New Issue