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

Version Path
thredded-0.15.5 app/views/thredded/messageboards/index.html.erb
thredded-0.15.4 app/views/thredded/messageboards/index.html.erb
thredded-0.15.3 app/views/thredded/messageboards/index.html.erb
thredded-0.15.2 app/views/thredded/messageboards/index.html.erb
thredded-0.15.1 app/views/thredded/messageboards/index.html.erb
threddedDANIEL-0.14.5 app/views/thredded/messageboards/index.html.erb
thredded-0.14.4 app/views/thredded/messageboards/index.html.erb
thredded-0.14.3 app/views/thredded/messageboards/index.html.erb
thredded-0.14.2 app/views/thredded/messageboards/index.html.erb
thredded-0.14.1 app/views/thredded/messageboards/index.html.erb
thredded-0.14.0 app/views/thredded/messageboards/index.html.erb
thredded-0.13.8 app/views/thredded/messageboards/index.html.erb
thredded-0.13.7 app/views/thredded/messageboards/index.html.erb
thredded-0.13.6 app/views/thredded/messageboards/index.html.erb
thredded-0.13.5 app/views/thredded/messageboards/index.html.erb
thredded-0.13.4 app/views/thredded/messageboards/index.html.erb
thredded-0.13.3 app/views/thredded/messageboards/index.html.erb
thredded-0.13.2 app/views/thredded/messageboards/index.html.erb
thredded-0.13.1 app/views/thredded/messageboards/index.html.erb
thredded-0.13.0 app/views/thredded/messageboards/index.html.erb