Sha256: 3862d7a80a4c02f3fdd0a2e51e6d066c02e26044f7743f864b8b06315ead670e

Contents?: true

Size: 1.34 KB

Versions: 11

Compression:

Stored size: 1.34 KB

Contents

<div id="page_drafts">
  <h3>Page Drafts</h3>

  <%= form_tag cms.publish_pages_path, :method => :put do %>
      <table class="data table table-bordered table-rounded">
        <thead>
          <tr>
            <% unless @unpublished_pages.empty? %>
            <th></th>
            <% end %>
            <th>Name</th>
            <th>User</th>
	        <th>Date</th>
          </tr>
        </thead>
        <tbody>
          <% if @unpublished_pages.empty? %>
            <tr><td colspan="4">All pages are published.</td></tr>
          <% else %>  
            <% @unpublished_pages.each do |page| %>
              <tr>
                <td class="select"><%= check_box_tag "page_ids[]", page.id, false, :id => "publish_page_#{page.id}" %></td>
                <td class="name">
                    <%= link_to h(page.name_with_section_path), page.path %>
                </td>
                <td class="updated_by">
                    <%= h(page.updated_by ? page.updated_by.login : nil) %>
                </td>
                <td class="updated_at"><%= page.updated_at.strftime("%b %d, %Y") %></td>
              </tr>
            <% end %>
            <tr>
              <td colspan="4"><%= submit_tag("Publish Selected", :class => "submit btn btn-mini btn-primary") %></td>
            </tr>
          <% end %>
        </tbody>
      </table>
  <% end %>
</div>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/views/cms/dashboard/_page_drafts.html.erb
browsercms-artirix-4.0.3.3 app/views/cms/dashboard/_page_drafts.html.erb
browsercms-artirix-4.0.3.2 app/views/cms/dashboard/_page_drafts.html.erb
browsercms-artirix-4.0.3.1 app/views/cms/dashboard/_page_drafts.html.erb
browsercms-artirix-4.0.3 app/views/cms/dashboard/_page_drafts.html.erb
browsercms-artirix-4.0.2 app/views/cms/dashboard/_page_drafts.html.erb
browsercms-artirix-4.0.1.1 app/views/cms/dashboard/_page_drafts.html.erb
browsercms-artirix-4.0.0.rc1.art4 app/views/cms/dashboard/_page_drafts.html.erb
browsercms-4.0.0.rc1 app/views/cms/dashboard/_page_drafts.html.erb
browsercms-4.0.0.beta app/views/cms/dashboard/_page_drafts.html.erb
browsercms-4.0.0.alpha app/views/cms/dashboard/_page_drafts.html.erb