Sha256: 6eb949c77564851801fa628f9b9674123b8ff84bb1180e17ae8cd90fc4d3e33e

Contents?: true

Size: 942 Bytes

Versions: 2

Compression:

Stored size: 942 Bytes

Contents

<% content_tag :div, :class => 'cms_edit_container' do -%>
  <% content_tag :div, :class =>'toolbar' do -%>
    <%= link_to image_tag("cms/pages/add_connectable.gif"), 
          cms_content_types_path(:connect_to_page_id => @page, :connect_to_container => name), 
          :title => "Add new content to this container (#{name})" %>
    <%= link_to image_tag("cms/pages/connect_connectable.gif"), 
          new_cms_connector_path(:page_id => @page, :container => name), 
          :title => "Insert existing content into this container (#{name})" %>
    <%= image_tag "cms/#{@page.container_published?(name) ? 'published' : 'draft'}_status.gif", 
          :class => "published_status",
          :title => @page.container_published?(name) ? "This content is published and can be seen by site visitors." : "This content is a draft and won't be seen by site visitors until this page is published." %>
  <% end -%>
  <%= content %>
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webficient-browsercms-3.0.3 app/views/cms/pages/_edit_container.html.erb
webficient-browsercms-3.0.4 app/views/cms/pages/_edit_container.html.erb