- cache(['notifications', Notifications::VERSION, notification]) do .media.notification class = "notification-#{notification.notify_type}" .media-left.user-avatar - if !notification.actor.model_name == 'Tradesmen' and notification.actor.image? = image_tag notification.actor.image_url, class: 'user-avatar img-circle' - else = image_tag 'tradesmen_icon.png', class: 'user-avatar img-circle' .media-body | WorkOrder # = notification.target.work_order_id br | Type: |   = notification.notify_type.try(:titleize) - if notification.target_type == 'WorkOrderLog' .row .col-sm-12 | Latitude: = notification.target.latitude br | Longitude: = notification.target.longitude .row .col-sm-6 = notification.target.status.try(:titleize) = notification.created_at.strftime("%a, %h %d %Y, %I:%M %p")