Sha256: 42420cfb1d8d232c6222f79daba9cf2a006407737fca34e663fa11dbbc433519
Contents?: true
Size: 1.63 KB
Versions: 7
Compression:
Stored size: 1.63 KB
Contents
<h1 id='editmode_title_container' ><%= @page.title %></h1> <div id='editmode_content_container' ><%= @page.content == nil || @page.content.length == 0 ? 'No content.' : (raw @page.content) %></div> <% content_for :caboose_css do %> <% @resources[:css].each do |r| %> <!--link type='text/css' rel='stylesheet' href="<%= r %>" /--> <%= stylesheet_link_tag r %> <% end %> <style><%= raw @page.custom_css %></style> <% end %> <% content_for :caboose_js do %> <% @resources[:js].each do |r| %> <!--script type='text/javascript' src="<%= r %>" ></script--> <%= javascript_include_tag r %> <% end %> <script type='text/javascript'><%= raw @page.custom_js %></script> <script type='text/javascript'> $(document).ready(function() { $('#editmode_title_container').click(function() { $.colorbox({ href: '/pages/<%= @page.id %>/edit-title', iframe: true, initialWidth: 500, initialHeight: 80, innerWidth: 500, innerHeight: 80, scrolling: false, transition: 'fade', closeButton: false, onComplete: fix_colorbox, opacity: 0.50 }); }); $('#editmode_content_container').click(function() { $.colorbox({ href: '/pages/<%= @page.id %>/edit-content', iframe: true, initialWidth: 600, initialHeight: 400, innerWidth: 600, innerHeight: 400, scrolling: false, transition: 'fade', closeButton: false, onComplete: fix_colorbox, opacity: 0.50 }); }); }); </script> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems