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.
40 lines
1.4 KiB
40 lines
1.4 KiB
.cmd
|
|
- if admin?
|
|
= action_icon 'edit', 'Editar disciplina', edit_course_url
|
|
=# action_icon 'trash', 'Excluir disciplina', course_url, :confirm => 'Tem certeza que deseja excluir?', :method => :delete
|
|
|
|
-# cache(course_path(@course.id)) do
|
|
|
|
%h4.title Disciplina
|
|
%h1.title= h(@course.full_name)
|
|
|
|
%p= @course.description.format_wiki
|
|
|
|
.box
|
|
.cmd
|
|
= action_icon 'add', 'Adicionar página wiki', new_course_wiki_instance_url(@course)
|
|
|
|
%h3 Páginas Wiki
|
|
%ul.wiki
|
|
- @course.wiki_pages.each do |wiki|
|
|
%li{highlight(wiki.id)}
|
|
.cmd{:style => 'margin-bottom: -27px; margin-top: -9px;'}
|
|
=action_icon 'arrow2_n', 'Mover para cima', move_up_course_wiki_instance_url(@course, wiki) unless wiki.first?
|
|
=action_icon 'arrow2_s', 'Mover para baixo', move_down_course_wiki_instance_url(@course, wiki) unless wiki.last?
|
|
- if wiki.last?
|
|
%span{:style => 'margin-right: 14px'}
|
|
=link_to h(wiki.title), course_wiki_instance_url(@course, wiki)
|
|
- if @course.wiki_pages.empty?
|
|
%li.no_itens Nenhuma página wiki
|
|
|
|
.box
|
|
.cmd= action_icon 'add', 'Adicionar anexo', new_course_attachment_url(@course)
|
|
|
|
%h3 Repositório de Arquivos
|
|
.repositorio
|
|
= nested_attachments_to_html(attachments_to_nested_hash(@course.attachments))
|
|
- if @course.attachments.empty?
|
|
%ul.wiki
|
|
%li.no_itens Nenhum arquivo
|
|
|