Sha256: c6f79c056cffd9c5a438c8ef4af274003c77cba8c136db0c931f19f53e638d49

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

<% able_to? :publish_content do -%>
  <% if @block.respond_to?(:published?) && !@block.published %>
    <%= link_to span_tag('Publish'), block_path(:publish), 
      :class => "http_put button", 
      :id => "publish_button" %>
  <% else %>
    <%= link_to span_tag('Publish'), "#", 
      :class => "http_put button disabled left", 
      :id => "publish_button" %>
  <% end %>
<% end -%>

<%= link_to span_tag('View Content'), block_path, 
  :class => "button#{ ' off' if action_name == 'show'} middle", 
  :id => "view_button" %>
  
<%= link_to span_tag('Edit Content'), block_path(:edit), 
  :class => "button#{ ' off' if action_name == 'edit'}", 
  :id => "edit_button" %>
  
<%= link_to span_tag("Add New Content"), new_block_path, 
  :class => "button#{ ' off' if action_name == 'new'} right", 
  :id => "add_button" %>

<% if @block.class.versioned? %>
  <%= link_to span_tag('List Versions'), block_path(:versions),
    :class => "button#{ ' off' if action_name == 'revisions'}", 
    :id => "list_versions" %>
<% else %>
  <%= link_to span_tag('List Versions'), '#', 
    :class => "button disabled", 
    :id => "list_versions" %>
<% end %>

<%= link_to span_tag("<span class=\"delete_img\">&nbsp;</span>Delete"), block_path, 
  :class => "http_delete confirm_with_title button", 
  :title => "Are you sure you want to delete '#{@block.name}'?", 
  :id => "delete_button" %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nate-browsercms-3.0.210 app/views/cms/blocks/_toolbar_for_member.html.erb
nate-browsercms-3.0.211 app/views/cms/blocks/_toolbar_for_member.html.erb