Sha256: 22b477d2fab042585bf7be6c003508ceaae092e4039e7104aeab31ecf9211def

Contents?: true

Size: 1.9 KB

Versions: 6

Compression:

Stored size: 1.9 KB

Contents

<% content_for :thredded_page_title, t('thredded.messageboard_group.show.page_title', name: @group.name) %>
<% content_for :thredded_page_id, 'thredded--messageboard-groups--index' %>
<% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %>
<%= thredded_page do %>
  <%= define_svg_icons('thredded/follow.svg', 'thredded/lock.svg') %>
  <%= view_hooks.messageboard_group_show.container.render self, groups: @groups do %>
    <section class="thredded--main-section thredded--messageboards">
      <%= view_hooks.messageboard_group_show.list.render self, groups: @groups do %>
        <% @groups.each do |group| %>
          <% if group.name.present? %>
            <h3 class="thredded--messageboards-group--title">
              <%= link_to group.name,
                          show_messageboard_group_path(group.id),
                          class: 'thredded--link' %>
            </h3>
          <% end %>
          <div class="thredded--messageboards-group">
            <%= view_hooks.messageboard_group_show.group.render self, group: group do %>
              <%= render partial: 'thredded/messageboards/messageboard',
                         collection: group.messageboards %>
            <% end %>
            <%= render partial: 'thredded/messageboards/grid_sizers' %>
          </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

6 entries across 6 versions & 1 rubygems

Version Path
thredded-1.1.0 app/views/thredded/messageboard_groups/show.html.erb
thredded-1.0.1 app/views/thredded/messageboard_groups/show.html.erb
thredded-1.0.0 app/views/thredded/messageboard_groups/show.html.erb
thredded-0.16.16 app/views/thredded/messageboard_groups/show.html.erb
thredded-0.16.15 app/views/thredded/messageboard_groups/show.html.erb
thredded-0.16.14 app/views/thredded/messageboard_groups/show.html.erb