OSDN Git Service

Move navbar to shared partial
[sharp4k/CUTEn.git] / CutenServer / app / views / home / index.html.haml
1 = render :partial => 'shared/navbar'
2
3 - if notice
4   %div#notice= notice
5 - if alert
6   %div#alert= alert
7
8 - if !user_signed_in? and !teacher_signed_in?
9   = link_to I18n.t('devise.sign_in'), new_user_session_path, :class => 'signin-btn'
10
11 - if teacher_signed_in?
12   .lectures
13     %ul
14       - current_teacher.lectures.each do |lecture|
15         %li= link_to lecture.name, lecture_path(lecture)
16   %div= link_to I18n.t('lecture.new_path'), new_lecture_path, :class => 'add-lecture-btn'