Dashboard agora com rss e ical

This commit is contained in:
2008-03-05 06:52:52 -03:00
parent ba4a6a20fe
commit e5bc6024ba
15 changed files with 101 additions and 35 deletions

View File

@@ -1,6 +1,8 @@
%h4.title= h(@course.full_name)
%h1.title Mudanças recentes
= auto_discovery_link_tag :rss, formatted_course_log_url(@course, :rss)
.box
%table
%tr
@@ -11,9 +13,4 @@
%tr
%td= entry.created_at.strftime("%d/%m/%y %H:%M:%S")
%td= link_to truncate(h(entry.user.display_name), 20), user_path(entry.user)
%td
= render(:partial => 'log/attachment_log_entry', :locals => { :entry => entry }) if entry.kind_of?(AttachmentLogEntry)
= render(:partial => 'log/event_log_entry', :locals => { :entry => entry }) if entry.kind_of?(EventLogEntry)
= render(:partial => 'log/news_log_entry', :locals => { :entry => entry }) if entry.kind_of?(NewsLogEntry)
= render(:partial => 'log/wiki_log_entry', :locals => { :entry => entry }) if entry.kind_of?(WikiLogEntry)
= "(" + link_to("undo", undo_course_log_url(@course, entry)) + ")" if entry.reversible?
%td= render(:partial => 'log/log_entry', :locals => { :entry => entry })