Sha256: 64886de3726cb14af3f61427746b39f9a4226df9262060054466493e940af74c

Contents?: true

Size: 1.41 KB

Versions: 3

Compression:

Stored size: 1.41 KB

Contents

.template_chooser
  %table.index
    %tr
      %td.label Template Selector >
      %td.actions
        - @content_template ||= @page.template
        = link_to @page.template_name, "#template_choices", :class => "action dropdown"
        %ul.menu{:id => "template_choices"}
          %li= link_to "Blank Page", @page.id.nil? ? "?template=" : "?template=0"
          %li.separator
          - ::Template.find(:all).each do |template|
            %li= link_to image('template') + ' ' + template.name.humanize.titleize, "?template=#{template.id}"
          %li{:class => @content_template.blank? ? 'selected' : nil}

- content_for :page_css do
  :sass
    .template_chooser
      position: absolute
      left: 150px
      background: #7E7E7E
      table.index
        margin: -2px 0 0 0px
        border: none
        tr, td.label, td.actions
          border: none
          padding: 0px
          background: #7E7E7E
        td.label
          text-align: right
          padding-right: 6px
        td.actions
          width: 178px
          a.action, span.action.disabled
            color: white
            text-decoration: underline
            margin: 0
            &:hover
              color: black
              text-decoration: none
              background: #eee image_url('admin/buttons_background.png') repeat-x
            &.selected
              color: black
              text-decoration: none
              background: #c5e0f5

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-templates-extension-1.0.5 app/views/admin/pages/_template_chooser.html.haml
radiant-templates-extension-1.0.4 app/views/admin/pages/_template_chooser.html.haml
radiant-templates-extension-1.0.3 app/views/admin/pages/_template_chooser.html.haml