Initial import
This commit is contained in:
15
app/views/layouts/attachments.html.haml
Normal file
15
app/views/layouts/attachments.html.haml
Normal file
@@ -0,0 +1,15 @@
|
||||
- @title = "#{App.title} - #{h(@course.full_name)}"
|
||||
- @location = capture do
|
||||
= link_to(App.title, "/") + "›"
|
||||
= link_to("Disciplinas", courses_url) + "›"
|
||||
= link_to(h(@course.full_name), course_url(@course)) + "›"
|
||||
= link_to("Arquivos", course_url(@course))
|
||||
- if @attachment.id
|
||||
= "›" + link_to(truncate(h(@attachment.file_name)), course_attachment_url)
|
||||
- @title = @title + " - #{truncate(h(@attachment.file_name))}"
|
||||
|
||||
- @left_panel = render 'courses/_left_panel'
|
||||
- @right_panel = render 'courses/_right_panel'
|
||||
- @content = yield
|
||||
|
||||
= render 'layouts/base'
|
||||
47
app/views/layouts/base.html.haml
Normal file
47
app/views/layouts/base.html.haml
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
!!! XML
|
||||
!!!
|
||||
%html
|
||||
%head
|
||||
%title= @title || App.title
|
||||
%meta{'name' => 'robots', :content => 'noindex,nofollow'}
|
||||
%meta{'http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8'}
|
||||
%link{'href' => "/stylesheets/wiki.css", 'rel' => 'Stylesheet', 'type' => %'text/css'}
|
||||
%link#css_color{'href' => "/stylesheets/themes/color.#@color.css", 'rel' => 'Stylesheet', 'type' => %'text/css'}
|
||||
= javascript_include_merged :base
|
||||
|
||||
%body{'onload' => 'javascript: startup()'}
|
||||
#wrapper
|
||||
#header
|
||||
%h1= "<strong>Wiki</strong> UFC"
|
||||
|
||||
#header_menu
|
||||
%ul
|
||||
- if logged_in?
|
||||
%li.grey= "Logged in as {u}"[:logged_in_as, h(@current_user.display_name)]
|
||||
%li.last= link_to 'Logout', logout_path
|
||||
- else
|
||||
%li= link_to 'Cadastrar', signup_path
|
||||
%li.last= link_to 'Login', login_path
|
||||
|
||||
#strip
|
||||
|
||||
#location
|
||||
= flash_div
|
||||
= @location
|
||||
|
||||
#site
|
||||
%div
|
||||
- if @right_panel.nil?
|
||||
.float_panel_left= @left_panel
|
||||
#innerwrapper_2column
|
||||
.content= @content
|
||||
- else
|
||||
.float_panel_left= @left_panel
|
||||
.float_panel_right= @right_panel
|
||||
#innerwrapper_3column
|
||||
.content= @content
|
||||
%br{'style' => 'clear:both'}
|
||||
|
||||
#footer
|
||||
|
||||
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'
|
||||
12
app/views/layouts/events.html.haml
Normal file
12
app/views/layouts/events.html.haml
Normal file
@@ -0,0 +1,12 @@
|
||||
- @title = "#{App.title} - #{h(@course.full_name)} - Calendário"
|
||||
- @location = capture do
|
||||
= link_to(App.title, "/") + "›"
|
||||
= link_to("Disciplinas", courses_url) + "›"
|
||||
= link_to(h(@course.full_name), course_url(@course)) + "›"
|
||||
= link_to("Calendário", course_events_url)
|
||||
|
||||
- @left_panel = render 'courses/_left_panel'
|
||||
- @right_panel = render 'courses/_right_panel'
|
||||
- @content = yield
|
||||
|
||||
= render 'layouts/base'
|
||||
11
app/views/layouts/log.html.haml
Normal file
11
app/views/layouts/log.html.haml
Normal file
@@ -0,0 +1,11 @@
|
||||
- @title = "#{App.title} - #{h(@course.full_name)} - Mudanças recentes"
|
||||
- @location = capture do
|
||||
= link_to(App.title, "/") + "›"
|
||||
= link_to("Disciplinas", courses_url) + "›"
|
||||
= link_to(h(@course.full_name), course_url(@course)) + "›"
|
||||
= link_to("Log", course_log_url(@course))
|
||||
|
||||
- @left_panel = render 'courses/_left_panel'
|
||||
- @content = yield
|
||||
|
||||
= render 'layouts/base'
|
||||
12
app/views/layouts/news.html.haml
Normal file
12
app/views/layouts/news.html.haml
Normal file
@@ -0,0 +1,12 @@
|
||||
- @title = "#{App.title} - #{h(@course.full_name)} - Notícias"
|
||||
- @location = capture do
|
||||
= link_to(App.title, "/") + "›"
|
||||
= link_to("Disciplinas", courses_url) + "›"
|
||||
= link_to(h(@course.full_name), course_url(@course)) + "›"
|
||||
= link_to("Noticias", course_news_index_url(@course))
|
||||
|
||||
- @left_panel = render 'courses/_left_panel'
|
||||
- @right_panel = render 'courses/_right_panel'
|
||||
- @content = yield
|
||||
|
||||
= render 'layouts/base'
|
||||
12
app/views/layouts/users.html.haml
Normal file
12
app/views/layouts/users.html.haml
Normal file
@@ -0,0 +1,12 @@
|
||||
- @title = App.title
|
||||
- @location = capture do
|
||||
= link_to(App.title, "/") + "›";
|
||||
= link_to("Usuários", users_path)
|
||||
- if @user and @user.id
|
||||
= "› " + link_to(h(@user.name), user_url(@user))
|
||||
- @title = @title + " - #{h(@user.display_name)}"
|
||||
|
||||
- @left_panel = render('widgets/menu_navigation') + render('widgets/menu_user')
|
||||
- @content = yield
|
||||
|
||||
= render 'layouts/base'
|
||||
14
app/views/layouts/wiki.html.haml
Normal file
14
app/views/layouts/wiki.html.haml
Normal file
@@ -0,0 +1,14 @@
|
||||
- @title = "#{App.title} - #{h(@course.full_name)}"
|
||||
- @location = capture do
|
||||
= link_to(App.title, "/") + "›"
|
||||
= link_to("Disciplinas", courses_url) + "›"
|
||||
= link_to(h(@course.full_name), course_url(@course)) + "›"
|
||||
= link_to("Wiki", course_url(@course))
|
||||
- if @wiki_page.title
|
||||
= "›" + link_to(h(@wiki_page.title), course_wiki_url(@course, @wiki_page))
|
||||
- @title = @title + " - #{h(@wiki_page.title)}"
|
||||
|
||||
- @left_panel = render 'courses/_left_panel'
|
||||
- @content = yield
|
||||
|
||||
= render 'layouts/base'
|
||||
Reference in New Issue
Block a user