Initial import
This commit is contained in:
20
app/views/layouts/courses.html.haml
Normal file
20
app/views/layouts/courses.html.haml
Normal file
@@ -0,0 +1,20 @@
|
||||
- @title = "#{App.title}"
|
||||
- @location = capture do
|
||||
= link_to(App.title, "/") + "›";
|
||||
= link_to("Disciplinas", courses_url)
|
||||
- if @course and @course.id
|
||||
= "› " + link_to(h(@course.full_name), course_url)
|
||||
- @title = @title + " - #{h(@course.full_name)}"
|
||||
- else
|
||||
- @title = @title + " - Disciplinas"
|
||||
|
||||
- if @course and @course.id
|
||||
- @left_panel = render 'courses/_left_panel'
|
||||
- @right_panel = render 'courses/_right_panel'
|
||||
- else
|
||||
- @left_panel = render('widgets/menu_navigation') + render('widgets/menu_user')
|
||||
- end
|
||||
|
||||
- @content = yield
|
||||
|
||||
= render 'layouts/base'
|
||||
Reference in New Issue
Block a user