MiraitSystems/enju_trunk

View on GitHub
app/views/page/_menu_tabindex2.html.erb

Summary

Maintainability
Test Coverage
<% unless tab_menu_width == 'fg-3button' and ! SystemConfiguration.isWebOPAC %>
  <a tabindex="2" href='#'><%= t('page.request') %></a>
  <ul class='sub'>
    <% if can_use_purchase_request? %>
      <li><%= link_to t('activerecord.models.purchase_request'), purchase_requests_path %></li>
    <% end %>
    <% if user_signed_in? %> 
      <% if SystemConfiguration.get("user_show_questions") or current_user.has_role?('Librarian') %>
        <li><%= link_to t('activerecord.models.question'), questions_path %></li>
      <% end %>
    <% end %>
    <% if SystemConfiguration.get('use_copy_request') %>
      <li><%= link_to t('activerecord.models.copy_request'), copy_requests_path %></li>
    <% end %>
  </ul>
<% end %>