Sha256: 5f1bee582bc3953c75ec8592899e9769082d8ae78a0eafcfe323b8d8f5d95f1b

Contents?: true

Size: 869 Bytes

Versions: 8

Compression:

Stored size: 869 Bytes

Contents

%tr
  %th.label Template
  %td{:class => "field", :style => "text-align: left;"}
    - @content_template ||= @page.template
    %ul#template-chooser
      - ::Template.find(:all).each do |template|
        %li{:class => template == @content_template ? 'selected' : nil}= link_to_unless(template == @content_template, template.name.humanize.titleize, "?template=#{template.id}")
      %li{:class => @content_template.blank? ? 'selected' : nil}
        = link_to_unless(@content_template.blank?, "Blank Page", @page.id.nil? ? "?template=" : "?template=0")

- content_for :page_css do
  :sass
    @import "compass/utilities/lists/inline-list"
    ul#template-chooser
      +inline-list
      li, li a
        padding: 0.2em
        line-height: 1.5em
        color: white
        white-space: nowrap
        &.selected
          font-weight: bold
          font-size: 110%

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
radiant-templates-extension-1.0.8 app/views/admin/pages/_switch_templates.html.haml
radiant-templates-extension-1.0.7 app/views/admin/pages/_switch_templates.html.haml
radiant-templates-extension-1.0.6 app/views/admin/pages/_switch_templates.html.haml
radiant-templates-extension-1.0.5 app/views/admin/pages/_switch_templates.html.haml
radiant-templates-extension-1.0.4 app/views/admin/pages/_switch_templates.html.haml
radiant-templates-extension-1.0.3 app/views/admin/pages/_switch_templates.html.haml
radiant-templates-extension-1.0.2 app/views/admin/pages/_switch_templates.html.haml
radiant-templates-extension-1.0.1 app/views/admin/pages/_switch_templates.html.haml