Sha256: 8cb62f7069b2fc94630077d26f2cafed21f98516db6ff9355b845f3bfc7453e8
Contents?: true
Size: 1.91 KB
Versions: 15
Compression:
Stored size: 1.91 KB
Contents
- @page_title = "#{link_to "Settings", admin_settings_path} > Stylesheets" - css_prefix_list = [["IE6 Only" , "<!--[if eq IE 6]>"] , ["IE7 Only" , "<!--[if eq IE 7]>"] , ["IE8 Only" , "<!--[if eq IE 8]>"] , ["IE9 Only" , "<!--[if eq IE 9]>"] , ["IE6 & IE7" , "<!--[if lte IE 7]>"] , ["IE6 & IE7 & IE8" , "<!--[if lte IE 8]>"] , ["Webkit based browsers (Safari, Chrome, etc)" , "if Webkit"] , ["Firefox" , "if Gecko"]] = sub_nav do - if can? :manage, Gluttonberg::Stylesheet = nav_link('New', new_admin_stylesheet_path) - if @stylesheets.empty? %p.empty No Stylesheets - else %table{:id => 'pages_table', :class => (can?(:reorder , Gluttonberg::Page) ? "#{drag_tree_table_class} " : " " ), :cellpadding => 0, :cellspacing => 0, :rel => "" , :summary => "Stylesheets" , :rel => drag_tree_url } %thead %tr %th CSS %th URL %th Target Browser(s) %th Version %th.controls Controls %tbody - @stylesheets.each do |stylesheet| %tr{:id => drag_tree_row_id(stylesheet), :class => drag_tree_row_class(stylesheet) + "#{cycle("even", "odd")}"} %td %span{:class => "#{drag_tree_drag_point_class} page" , :rel => drag_tree_row_id(stylesheet)} = stylesheet.name %td= link_to stylesheets_path(stylesheet.slug) + ".css?#{stylesheet.version}" , stylesheets_path(stylesheet.slug) + ".css?#{stylesheet.version}" %td -css = css_prefix_list.find{|c| c.last == stylesheet.css_prefix} - unless css.blank? = css.first - else All Browsers %td = stylesheet.version %td.controls - if can? :manage , Gluttonberg::Stylesheet = link_to "Edit", edit_admin_stylesheet_path(stylesheet) - if can? :destroy , Gluttonberg::Stylesheet = link_to "Delete", delete_admin_stylesheet_path(stylesheet)
Version data entries
15 entries across 15 versions & 1 rubygems