<% if @pg -%> <% end -%>
  Edit   Properties Pages Preview Version: <%= form_tag('/' + @pg.path, { :method => 'get' }) do -%>
<%- end -%>
Publish Version: <%- if !UseCmsAccessLevels || user_has_permission?(:manage_cms_publishing) -%> <%= form_remote_tag(:url => { :controller => '/manage/cms_pages', :action => 'set_page_version', :id => @pg }, :loading => "$('set_page_version_loading').show();", :complete => "$('set_page_version_loading').hide();" + (@pg ? "$('pg_published_version_container').style.borderColor = ($('pg_published_version').value == '0' || $('pg_published_version').value == '#{@pg.versions.last.version}') ? '#EBEBEB' : 'red';" : '')) do -%>
<% end %> <%- else -%> <%- if params[:version] && params[:version].to_i != @pg.published_version && !(@pg.published_version == 0 && params[:version].to_i == @pg.versions.count) -%> <%= form_remote_tag(:url => { :controller => '/manage/cms_pages', :action => 'request_review', :id => @pg, :version => (params[:version] || @pg.published_version) }, :loading => "$('set_page_version_loading').show();", :complete => "$('set_page_version_loading').hide();") do -%> <%= submit_tag "Submit Version #{(params[:version])} for Review" %> <% end %> <%- else -%> [ version <%= @pg.version %> is the published version ] <%- end -%> <%- end -%>
" style="text-decoration: none">Logout