Sha256: bfb69b077885f99957b066273c0ad4468e78b222ce48febb26531d4f07b5a3f7
Contents?: true
Size: 677 Bytes
Versions: 73
Compression:
Stored size: 677 Bytes
Contents
<% object ||= mirrors return unless @site.is_mirrored? options = case object when Cms::Layout object.mirrors.collect{|m| [m.site.label, edit_cms_admin_site_layout_path(m.site, m)]} when Cms::Page object.mirrors.collect{|m| [m.site.label, edit_cms_admin_site_page_path(m.site, m)]} when Cms::Snippet object.mirrors.collect{|m| [m.site.label, edit_cms_admin_site_snippet_path(m.site, m)]} else (Cms::Site.mirrored - [@site]).collect{|s| [s.label, url_for(params.merge(:site_id => s))]} end options = [[@site.label, request.fullpath]] + options %> <div id='mirrors' class='box'> <%= select_tag :mirror, options_for_select(options) %> </div>
Version data entries
73 entries across 73 versions & 1 rubygems