index.html.erb 572 Bytes
<div class="page-header">
  <h1><%= ReadingGroup.model_name.human(count: 2) %></h1>
</div>

<% if user_signed_in? %>
  <p>
    <%= link_to t_action(:new, ReadingGroup), new_reading_group_path, class: 'btn  btn-primary' %>
  </p>
<%else%>
  <p class="alert alert-warning alert-dismissable">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
    <%= t('unauthenticated', action: t_action(:create, ReadingGroup)) %>
  </p>
<% end %>

<%= render partial: 'shared/reading_groups_list', locals: {reading_groups: @reading_groups} %>