mischa78/boxroom

View on GitHub
app/views/shared/_menu.html.erb

Summary

Maintainability
Test Coverage
<div id="menu">
  <p class="menu">
  <% if signed_in? -%>
    <%= link_to t(:folders), folders_path %> &nbsp; &nbsp;
  <% if current_user.member_of_admins? -%>
    <%= link_to t(:users), users_path %> &nbsp; &nbsp;
    <%= link_to t(:groups), groups_path %> &nbsp; &nbsp;
    <%= link_to t(:shared_files), share_links_path %>
  <% end -%>
  <% end -%>
    &nbsp;
  </p>
</div>