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.
60 lines
2.6 KiB
60 lines
2.6 KiB
.cmd
|
|
- if admin?
|
|
= action_icon 'edit', t(:edit_course), edit_course_url, :accesskey => 'e'
|
|
=# action_icon 'trash', 'Excluir disciplina', course_url, :confirm => 'Tem certeza que deseja excluir?', :method => :delete
|
|
|
|
%h4.title= t(:course).capitalize
|
|
%h1.title= h(@course.full_name)
|
|
|
|
%p= @course.description.format_wiki
|
|
|
|
-#.box
|
|
-# .cmd
|
|
-# = action_icon 'add', 'Adicionar notícia', new_course_news_instance_url(@course)
|
|
-#
|
|
-# %h3 Notícias Recentes
|
|
-# %ul.news
|
|
-# - @course.recent_news.each do |news|
|
|
-# %li{highlight(news.id)}
|
|
-# .cmd{:style => 'margin-top: -9px;'}
|
|
-# = action_icon 'edit', 'Editar', edit_course_news_instance_url(@course, news, :version => news.version)
|
|
-# = action_icon 'trash', 'Excluir', course_news_instance_url(@course, news), :confirm => 'Tem certeza que deseja excluir?', :method => :delete
|
|
-# = link_to h(news.title), course_news_instance_url(@course, news)
|
|
-# = formatted(news.body)
|
|
-# = "Enviada por %s há %s." % [link_to(news.user.display_name, user_url(news.user)), distance_of_time_in_words(Time.now, news.timestamp)]
|
|
-# - if @course.news.empty?
|
|
-# %li.no_itens Nenhuma notícia recente
|
|
-# - else
|
|
-# %li.see_all= link_to "Ver todas as noticias", course_news_url(@course)
|
|
|
|
.box
|
|
.cmd
|
|
= action_icon 'add', t(:create_wiki_page), new_course_wiki_instance_url(@course)
|
|
|
|
%h3= t(:wiki_pages)
|
|
%ul.wiki
|
|
- @course.wiki_pages.find_front_page.each do |wiki|
|
|
%li{highlight(wiki.id)}
|
|
.cmd{:style => 'margin-bottom: -27px; margin-top: -9px;'}
|
|
=action_icon 'arrow2_n', t(:move_up), move_up_course_wiki_instance_url(@course.to_param, wiki.id) unless wiki.first?
|
|
=action_icon 'arrow2_s', t(:move_down), move_down_course_wiki_instance_url(@course.to_param, wiki.id) unless wiki.last?
|
|
- if wiki.last?
|
|
%span{:style => 'margin-right: 14px'}
|
|
=link_to h(wiki.title), course_wiki_instance_url(@course.to_param, wiki.to_param)
|
|
- if @course.wiki_pages.empty?
|
|
%li.no_itens= t(:no_wiki_pages)
|
|
- if @course.hidden_wiki_pages?
|
|
%li.show_all= link_to t(:see_all_wiki_pages), course_wiki_url(@course)
|
|
|
|
.box
|
|
.cmd= action_icon 'add', t(:create_attachment), new_course_attachment_url(@course)
|
|
|
|
%h3= t(:repository)
|
|
.repositorio
|
|
= nested_attachments_to_html(attachments_to_nested_hash(@course.attachments.find_front_page))
|
|
- if @course.attachments.empty?
|
|
%ul.wiki
|
|
%li.no_itens= t(:no_attachments)
|
|
- else
|
|
%li.show_all= link_to t(:see_all_attachments), course_attachments_url(@course)
|