Skip to content
Extraits de code Groupes Projets
index.html.haml 1,15 ko
Newer Older
  • Learn to ignore specific revisions
  • -self.extend AspectGlobalHelper
    -self.extend AspectsHelper
    -self.extend ApplicationHelper
    
        %span.notification_count{:class => ('unread' if @notification_count > 0)}
          = @notification_count
    
    MrZYX's avatar
    MrZYX a validé
        = t('.notifications')
    
      = link_to t('.mark_all_as_read'), read_all_notifications_path, :class => 'button'
    
    
    .span-24.last
    
        - group_days.each do |day, notes|
    
    maxwell's avatar
    maxwell a validé
          .day_group.span-24.last
    
    maxwell's avatar
    maxwell a validé
            .span-3
              .date
    
                .day= the_day(day.split(' '))
    
                .month= the_month(day.split(' '))
    
    maxwell's avatar
    maxwell a validé
            .span-8.notifications_for_day
              - notes.each do |note|
                .stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : ''}"}
    
                  - if note.type == "Notifications::StartedSharing" && contact = current_user.contact_for(note[:target])
    
                      = aspect_membership_dropdown(contact, note[:target], 'left')
    
    maxwell's avatar
    maxwell a validé
                  %span.from
    
                    = notification_message_for(note)
    
    maxwell's avatar
    maxwell a validé
                  %br
                  %time= timeago(note.created_at)
            .span-13.last
    
        = will_paginate notifications