Skip to content
Extraits de code Groupes Projets
Valider 807187de rédigé par maxwell's avatar maxwell
Parcourir les fichiers

/notifications is now pretty cool

parent 2545de64
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -16,6 +16,6 @@ class NotificationsController < ApplicationController
end
def index
@group_days = @notifications.group_by{|note| note.created_at.strftime("%B %d") }
end
end
%ul
- @notifications.each do |note|
%li
%h3
= link_to "#{note.person.name.titleize}", person_path(note.person)
= object_link(note)
%span.description=" #{t('ago', :time => time_ago_in_words(note.created_at))}"
- @group_days.each do |day, notes|
%h3
%ul
%li
= day
- notes.each do |note|
%li
= link_to "#{note.person.name.titleize}", person_path(note.person)
= object_link(note)
%span.description=" #{t('ago', :time => time_ago_in_words(note.created_at))}"
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter