Sha256: 67ed0d0da346a8ba66862a640fc710706c7ffd5e5034440739b3f86e769dc318

Contents?: true

Size: 1.72 KB

Versions: 13

Compression:

Stored size: 1.72 KB

Contents

<% content_for :content_title, icon_label('font-bullhorn', 'Blogs') %>
<% content_for :content_title_extra do %>
  <% if can? :manage_content, :all %>
    <%= page_header_buttons do %>
      <%= link_to icon_label(:new, 'New Blog'), new_admin_cms_blog_path, title: 'New Blog', class: 'btn btn-xs btn-default' %>
    <% end %>
  <% end %>
<% end %>

<%= panel title: 'Current Blogs', body: false do %>
  <table id="drag_sort" class="table table-striped table-bordered table-condensed" data-update_url="<%= dm_cms.admin_cms_blog_sort_path %>">
    <thead>
      <tr>
        <% if can?(:manage_content, :all) %>
          <th class="sort_handle"></th>
        <% end %>
        <th>Title</th>
        <th>Associated Event</th>
        <th width="50">Type</th>
        <th width="18"><span class='hovertip' title='Followers or members'><%= icons('icon-users') %></span></th>
        <th width="50">Status</th>
      </tr>
    </thead>
    <tbody>
      <% @blogs.each do |blog| %>
        <% present blog do |blog_presenter| %>
          <tr class="item" data-item_id="<%= blog.id %>">
            <% if can?(:manage_content, :all) %>
              <td class="sort_handle"></td>
            <% end %>
            <td>
              <%= link_to blog.title, admin_cms_blog_path(blog) %>
            </td>
            <td><%= blog.owner.try(:title) %></td>
            <td><%= blog_presenter.visibility %></td>
            <td><%= blog.is_private? ? content_tag(:span, blog.member_count(:all), class: 'hovertip', title: 'Members') : content_tag(:span, blog.followers.count, class: 'hovertip', title: 'Followers') %></td>
            <td><%= blog_presenter.label_published %></td>
          </tr>
        <% end %>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dm_cms-4.2.3.10 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.3.9 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.3.8 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.3.7 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.3.6 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.3.5 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.3.4 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.3.3 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.3.2 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.3.1 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.3 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.2.3 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.2.2 app/views/dm_cms/admin/cms_blogs/index.html.erb