smc/grandham

View on GitHub
app/views/layouts/_side_bar.html.haml

Summary

Maintainability
Test Coverage
.span3.side-bar
  %br
  %ul.side-bar-list
    %li{ onclick: "window.location = '#{current_language_path('books')}'" }
      = link_to current_language_path('books') do
        = I18n.t('.books')
        .pull-right
          - if active == 'books'
            %i.icon-chevron-right
    %li{ onclick: "window.location = '#{current_language_path('authors')}'" }
      = link_to current_language_path('authors') do
        = I18n.t('.authors')
        .pull-right
          - if active == 'authors'
            %i.icon-chevron-right
    %li{ onclick: "window.location = '#{current_language_path('publishers')}'" }
      = link_to current_language_path('publishers') do
        = I18n.t('.publishers')
        .pull-right
          - if active == 'publishers'
            %i.icon-chevron-right
    %li{ onclick: "window.location = '#{current_language_path('libraries')}'" }
      = link_to current_language_path('libraries') do
        = I18n.t('.libraries')
        .pull-right
          - if active == 'libraries'
            %i.icon-chevron-right