Sha256: 246600d874620a3bedd595ffcf2467b4395e174add58ac256e528cb48cb28e53
Contents?: true
Size: 1.49 KB
Versions: 23
Compression:
Stored size: 1.49 KB
Contents
<% content_for :thredded_page_title, t('thredded.messageboard.index.page_title') %> <% content_for :thredded_page_id, 'thredded--messageboards-index' %> <% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %> <%= thredded_page do %> <%= view_hooks.messageboards_index.container.render self, groups: @groups do %> <section class="thredded--main-section thredded--messageboards"> <%= view_hooks.messageboards_index.list.render self, groups: @groups do %> <% @groups.each do |group| %> <% if group.name.present? %> <h3 class="thredded--messageboards-group--title"><%= group.name %></h3> <% end %> <div class="thredded--messageboards-group"> <%= view_hooks.messageboards_index.group.render self, group: group do %> <%= render group.messageboards %> <% end %> </div> <% end %> <% end %> <div class="thredded--messageboards--actions"> <% if policy(Thredded::Messageboard.new).create? %> <a class="thredded--button" href="<%= new_messageboard_path %>" rel="nofollow"> <%= t('thredded.messageboard.create') %> </a> <% end %> <% if policy(Thredded::MessageboardGroup.new).create? %> <a class="thredded--button" href="<%= new_messageboard_group_path %>" rel="nofollow"> <%= t('thredded.messageboard_group.create') %> </a> <% end %> </div> </section> <% end %> <% end %>
Version data entries
23 entries across 23 versions & 2 rubygems