Sha256: b11591f8f6653b6e91e7cd1655599546616b52feb873d5413a00be423488624a

Contents?: true

Size: 1.58 KB

Versions: 16

Compression:

Stored size: 1.58 KB

Contents

<% content_for :content_title, icon_label('font-comments', @forum_category.name) %>
<% content_for :content_title_extra do %>
  <%= page_header_buttons do %>
    <%= link_to(icon_label(:edit, 'Edit'), [:edit, :admin, @forum_category], class: "btn btn-xs btn-default", title: 'Edit') %>
  <% end %>
<% end %>

<% toolbar = toolbar_btn(icons(:new), new_admin_forum_category_forum_path(@forum_category), title: 'New Forum', class: "btn btn-link btn-icon") %>
<%= panel title: 'Forums', toolbar: toolbar, body: false do %>
  <div class="table-overflow">
    <table id="drag_sort" class="table table-striped table-bordered table-block" data-update_url="<%= dm_forum.admin_forum_sort_path %>">
      <thead>
        <tr>
          <th class="sort_handle"></th>
          <th>Name</th>
          <th>Associated Event</th>
          <th width="50">Type</th>
          <th width="50">Status</th>
        </tr>
      </thead>
      <tbody>
        <% @forum_category.forums.each do |forum| %>
          <% present forum do |forum_presenter| %>
            <tr class="item" data-item_id="<%= forum.id %>">
              <td class="sort_handle"></td>
              <td>
                <%= link_to forum.name, [:admin, forum] %>
                <div class="description">
                  <%= forum.description %>
                </div>
              </td>
              <td><%= forum.owner.try(:title) %></td>
              <td><%= forum_presenter.visibility %></td>
              <td><%= forum_presenter.label_published %></td>
            </tr>
          <% end %>
        <% end %>
      </tbody>
    </table>
  </div>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_forum-4.2.3.10 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.3.9 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.3.8 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.3.7 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.3.6 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.3.5 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.3.4 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.3.3 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.3.2 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.3.1 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.3 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.2.3 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.2.2 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.2.1 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.2 app/views/dm_forum/admin/forum_categories/show.html.erb
dm_forum-4.2.1.5 app/views/dm_forum/admin/forum_categories/show.html.erb