Sha256: 9f32252372c5c5850911430b3dc555bca9c32b04bd6e33275b645e9bd30ee693

Contents?: true

Size: 1.52 KB

Versions: 13

Compression:

Stored size: 1.52 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 left#{' disabled' unless current_user.able_to_publish?(@block)}", 
      :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 middle#{ ' off' if action_name == 'show'}", 
  :id => "view_button" %>
  
<%= link_to span_tag('Edit Content'), block_path(:edit), 
  :class => "button right#{ ' off' if action_name == 'edit'}#{' disabled' unless current_user.able_to_edit?(@block)}", 
  :id => "edit_button" %>
  
<%= link_to span_tag("Add New Content"), new_block_path, 
  :class => "button#{ ' off' if action_name == 'new'}", 
  :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#{' disabled' unless current_user.able_to_publish?(@block)}", 
  :title => "Are you sure you want to delete '#{@block.name}'?", 
  :id => "delete_button" %>

Version data entries

13 entries across 13 versions & 5 rubygems

Version Path
webficient-browsercms-3.0.2 app/views/cms/blocks/_toolbar_for_member.html.erb
webficient-browsercms-3.0.3 app/views/cms/blocks/_toolbar_for_member.html.erb
webficient-browsercms-3.0.4 app/views/cms/blocks/_toolbar_for_member.html.erb
bf4-browsercms-3.1.0 app/views/cms/blocks/_toolbar_for_member.html.erb
browsercms-3.0.6 app/views/cms/blocks/_toolbar_for_member.html.erb
browsercms-3.0.5 app/views/cms/blocks/_toolbar_for_member.html.erb
we5-browsercms-3.0.5.1 app/views/cms/blocks/_toolbar_for_member.html.erb
we5-browsercms-3.0.5 app/views/cms/blocks/_toolbar_for_member.html.erb
browsercms_s3-3.0.5 app/views/cms/blocks/_toolbar_for_member.html.erb
browsercms-3.0.4 app/views/cms/blocks/_toolbar_for_member.html.erb
browsercms-3.0.3 app/views/cms/blocks/_toolbar_for_member.html.erb
browsercms_s3-3.0.4 app/views/cms/blocks/_toolbar_for_member.html.erb
browsercms_s3-3.0.3 app/views/cms/blocks/_toolbar_for_member.html.erb