Sha256: d06fdac06f8f754d666ba05c988bd211fb5544dd3486651bbad22fc1697e9fe0
Contents?: true
Size: 1.45 KB
Versions: 17
Compression:
Stored size: 1.45 KB
Contents
<%= able_to? :publish_content do -%> <% if @block.respond_to?(:live?) && !@block.live? %> <%= link_to span_tag('Publish'), block_path(@block,:publish), :class => "http_put button left#{' disabled' unless (current_user.able_to_publish?(@block) && @block.publishable?)}", :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(@block), :class => "button middle#{ ' off' if action_name == 'show'}", :id => "view_button" %> <%= link_to span_tag('Edit Content'), block_path(@block,: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(@block), :class => "button#{ ' off' if action_name == 'new'}", :id => "add_button" %> <% if @block.class.versioned? %> <%= link_to span_tag('List Versions'), block_path(@block,: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 %> <%= delete_button :path=>block_path(@block), :title=>"Are you sure you want to delete '#{@block.name}'?", :enabled=>current_user.able_to_publish?(@block) %>
Version data entries
17 entries across 17 versions & 1 rubygems