<%= link_to('CMS', controller: 'dc_common', action: 'toggle_edit_mode', return_to: request.url) %> <% if session[:edit_mode] > 1 %>
<% end %>
<% if false %> <%= javascript_tag do %> // $('#cmsedit-edit-button').click(function() { $('#iframe_cms').attr('src', $('#record_select').val() ); }); $('#record_select').change( function(e) { $('#iframe_cms').attr('src', e.target.value ); }); <% end %> <% end %>