Sha256: 12d62f2ec60ffef700294b9da411cbef1d3014ab2b9a54240c3571575c335758

Contents?: true

Size: 1.51 KB

Versions: 3

Compression:

Stored size: 1.51 KB

Contents

.template_chooser
  %table.index
    %tr
      %td.label Template Selector >
      %td.actions
        - @content_template ||= @page.template
        - name = @page.id ? @page.template_name : ::Template.find(params[:template]).name rescue t('normal_page')
        = link_to name, "#template_choices", :class => "action dropdown"
        %ul.menu{:id => "template_choices"}
          %li= link_to t('normal_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.8 app/views/admin/pages/_template_chooser.html.haml
radiant-templates-extension-1.0.7 app/views/admin/pages/_template_chooser.html.haml
radiant-templates-extension-1.0.6 app/views/admin/pages/_template_chooser.html.haml