Sha256: 823735d7171b0c1698c2c93ea047d8b16c7995fa764c673423c5257ee88bc12e

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

<% able_to? :publish_content do -%>
  <% if @block.respond_to?(:live?) && !@block.live? %>
    <%= 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

1 entries across 1 versions & 1 rubygems

Version Path
browsercms-3.0.0 app/views/cms/blocks/_toolbar_for_member.html.erb