You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
885 B
24 lines
885 B
%h4.title= @course ? h(@course.full_name) : App.title
|
|
%h1.title Mudanças recentes
|
|
|
|
-# if @course
|
|
=# auto_discovery_link_tag :rss, course_log_url(@course.id, :format => :rss)
|
|
|
|
- @log_entries_by_day = @log_entries.group_by { |l| l.created_at.beginning_of_day }
|
|
.box
|
|
%ul.log_entries
|
|
- @log_entries_by_day.each do |day, entries|
|
|
%h3
|
|
=tz(day).strftime("%d de %B de %Y")
|
|
- entries.each do |entry|
|
|
%li
|
|
.date
|
|
= tz(entry.created_at).strftime("%H:%M")
|
|
%img.avatar{:src => gravatar_url_for(entry.user.email, 27)}
|
|
= link_to truncate(h(entry.user.display_name), :length => 20), user_url(entry.user.id)
|
|
= render(:partial => 'log/log_entry', :locals => { :entry => entry })
|
|
%br
|
|
= raw "Disciplina " + link_to(h(entry.course.full_name), course_url(entry.course))
|
|
|
|
= will_paginate @log_entries
|