MiraitSystems/enju_trunk

View on GitHub
app/views/manifestations/_tab_list.html.erb

Summary

Maintainability
Test Coverage
<%- if manifestation.original_manifestations.first or manifestation.derived_manifestations.first -%>
  <%= render 'manifestations/manifestation_list', :manifestation => manifestation -%>
<%- end -%>
<% if defined?(EnjuQuestion) %>
  <%- unless manifestation.questions(:user => current_user).empty? -%>
    <%= render 'manifestations/question_list', :manifestation => manifestation -%>
  <%- end -%>
<% end %>
<%- if current_user.try(:has_role?, 'Librarian') -%>
  <%= render 'manifestations/history_list', :manifestation => manifestation -%>
<%- end -%>