Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A little navigation refactoring.

  • Loading branch information...
commit f5a08bd373d6239bea5449bc5d53913c35da2b0a 1 parent a8889b8
Roman Simecek raskhadafi authored
3  app/stylesheets/partials/content/_overview.sass
View
@@ -43,3 +43,6 @@ ul.overview-list.level-1
a
border-bottom: none
+
+.level-3
+ display: none
3  app/stylesheets/partials/layout/navigation/_sidebar.sass
View
@@ -16,3 +16,6 @@
&:hover,
&.selected
border-bottom: 1px solid #AEB9CF
+
+#third-main-menu a.selected
+ color: black
2  app/views/layouts/application.html.haml
View
@@ -28,6 +28,8 @@
#sidebar-column
#second-main-menu.sidebar
= render_navigation(:context => :main, :level => 2)
+ #third-main-menu.sidebar
+ = render_navigation(:context => :main, :level => 3)
#sidebar.sidebar
= yield :sidebar
13 config/navigation/main_navigation.rb
View
@@ -27,18 +27,17 @@
quiz_response.item :quiz_response_archive, I18n.t('learnyt.archive'), quiz_responses_archive_path, :if => lambda { can?(:new, QuizResponse) }
end
- primary.item :nav_correspondence, t('correspondence', :scope => :main_navigation), e_mails_path, :if => lambda { can?(:index, EMail) } do |correspondence|
- correspondence.item :correspondence_e_mail_index, t(:e_mail_index, :scope => :main_navigation), e_mails_path, :highlights_on => /\/e_mails/, :if => lambda { can?(:index, EMail) }
- #correspondence.item :correspondence_post_mail_index, t(:post_mail_index, :scope => :main_navigation), '/'
- correspondence.item :correspondence_new_e_mail, t_action(:new, EMail), new_e_mail_path
- #correspondence.item :correspondence_new_post_mail, t_action(:new, PostMail), '/'
- end
-
primary.item :nav_people, t_model(Person), people_path, :if => lambda { can?(:index, Person) } do |person|
person.item :student_index, t_model(Student), students_path, :highlights_on => /^\/students(\/|$)/, :if => lambda { can?(:index, Student) }
person.item :teacher_index, t_model(Teacher), teachers_path, :highlights_on => /^\/teachers(\/|$)/, :if => lambda { can?(:index, Teacher) }
person.item :parent_index, t_model(Parent), parents_path, :highlights_on => /^\/parents(\/|$)/, :if => lambda { can?(:index, Parent) }
person.item :person_index, t('learnyt.all'), people_path, :if => lambda { can?(:index, Person) }
+ person.item :correspondence, t('correspondence', :scope => :main_navigation), e_mails_path, :if => lambda { can?(:index, EMail) } do |correspondence|
+ correspondence.item :correspondence_e_mail_index, t(:e_mail_index, :scope => :main_navigation), e_mails_path, :highlights_on => /\/e_mails/, :if => lambda { can?(:index, EMail) }
+ #correspondence.item :correspondence_post_mail_index, t(:post_mail_index, :scope => :main_navigation), '/'
+ correspondence.item :correspondence_new_e_mail, t_action(:new, EMail), new_e_mail_path
+ #correspondence.item :correspondence_new_post_mail, t_action(:new, PostMail), '/'
+ end
end
primary.item :nav_users, t('administration', :scope => :main_navigation), users_path, :if => lambda { can?(:index, User) } do |user|
Please sign in to comment.
Something went wrong with that request. Please try again.