Sha256: 205f469cb90abf74d5eb4f37c78df1372819effd27c5b354c965bad5fc687ee1

Contents?: true

Size: 1.8 KB

Versions: 3

Compression:

Stored size: 1.8 KB

Contents

<% content_for :content_title, icon_label('font-bullhorn', 'Blogs') %>
<% content_for :content_title_extra do %>
  <div class="visible-xs header-element-toggle">
    <a class="btn btn-primary btn-icon" data-toggle="collapse" data-target="#header-buttons"><i class="icon-stats2"></i></a>
  </div>
  <div class="header-buttons">
    <div class="collapse" id="header-buttons">
      <div class="well">
        <%= link_to icon_label(:new, 'New Blog'), new_admin_cms_blog_path, title: 'New Blog', class: 'btn btn-xs btn-default' %>
      </div>
    </div>
  </div>
<% 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>
        <th class="sort_handle"></th>
        <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 %>">
            <td class="sort_handle"></td>
            <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

3 entries across 3 versions & 1 rubygems

Version Path
dm_cms-4.2.2.1 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.2 app/views/dm_cms/admin/cms_blogs/index.html.erb
dm_cms-4.2.1.5 app/views/dm_cms/admin/cms_blogs/index.html.erb