parent
9723722093
commit
835e7c45ab
@ -1,11 +1,21 @@
|
|||||||
- @title = "#{App.title} - #{h(@course.full_name)} - Mudanças recentes"
|
- if @course
|
||||||
- @location = capture do
|
- @title = "#{App.title} - #{h(@course.full_name)} - Mudanças recentes"
|
||||||
= link_to(App.title, index_url) + "›"
|
- @location = capture do
|
||||||
= link_to("Disciplinas", courses_url) + "›"
|
= link_to(App.title, index_url) + "›"
|
||||||
= link_to(h(@course.full_name), course_url(@course)) + "›"
|
= link_to("Disciplinas", courses_url) + "›"
|
||||||
= link_to("Log", course_log_url(@course))
|
= link_to(h(@course.full_name), course_url(@course)) + "›"
|
||||||
|
= link_to("Log", course_log_url(@course))
|
||||||
- @left_panel = render 'courses/_left_panel'
|
|
||||||
- @content = yield
|
- @left_panel = render 'courses/_left_panel'
|
||||||
|
- @content = yield
|
||||||
|
|
||||||
|
- else
|
||||||
|
- @title = "#{App.title} - Mudanças recentes"
|
||||||
|
- @location = capture do
|
||||||
|
= link_to(App.title, index_url) + "›"
|
||||||
|
= link_to("Mudanças recentes", log_url)
|
||||||
|
|
||||||
|
- @content = yield
|
||||||
|
- @left_panel = render('widgets/menu_navigation') + render('widgets/menu_user')
|
||||||
|
|
||||||
= render 'layouts/base'
|
= render 'layouts/base'
|
||||||
|
@ -1,16 +1,21 @@
|
|||||||
%h4.title= h(@course.full_name)
|
%h4.title= @course ? h(@course.full_name) : App.title
|
||||||
%h1.title Mudanças recentes
|
%h1.title Mudanças recentes
|
||||||
|
|
||||||
= auto_discovery_link_tag :rss, formatted_course_log_url(@course, :rss)
|
- if @course
|
||||||
|
= auto_discovery_link_tag :rss, formatted_course_log_url(@course, :rss)
|
||||||
|
|
||||||
.box
|
.box
|
||||||
%table
|
%table
|
||||||
%tr
|
%tr
|
||||||
%th Data
|
%th Data
|
||||||
%th Usuário
|
%th Usuário
|
||||||
|
- unless @course
|
||||||
|
%th Disciplina
|
||||||
%th Descrição
|
%th Descrição
|
||||||
- @log_entries.each do |entry|
|
- @log_entries.each do |entry|
|
||||||
%tr
|
%tr
|
||||||
%td= entry.created_at.strftime("%d/%m/%y %H:%M:%S")
|
%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= link_to truncate(h(entry.user.display_name), 20), user_path(entry.user)
|
||||||
|
- unless @course
|
||||||
|
%td= link_to h(entry.course.short_name), course_url(entry.course)
|
||||||
%td= render(:partial => 'log/log_entry', :locals => { :entry => entry })
|
%td= render(:partial => 'log/log_entry', :locals => { :entry => entry })
|
||||||
|
Reference in new issue