Sha256: 58baf57cccd0cc9f70a0f9218ff2d9547eac9256ca64b38b46f6d6fa6618cc53

Contents?: true

Size: 1.21 KB

Versions: 3

Compression:

Stored size: 1.21 KB

Contents

- @window_title = "Settings"
- @page_title = "#{link_to "Settings", admin_settings_path} > Locales"

.row-fluid
  = render :partial => "/gluttonberg/admin/settings/main/sidebar"
  .span9
    .row-fluid
      .page-header
        %h1
          = @page_title.html_safe
      .subnav
        = sub_nav do
          = nav_link('New', new_admin_locale_path)

      - if @locales.empty?
        %p.empty No locales
      - else
        %table{:cellpadding => 0, :cellspacing => 0, :summary => "List of Locales", :class => "table table-bordered"}
          %thead
            %tr
              %th Locale
              %th Slug
              %th Type
              %th.controls Controls
          %tbody
            - i = 0
            - for locale in @locales
              - i += 1
              %tr{ :class => "#{i % 2 == 0? "even" : ""}"}
                %td
                  = link_to(locale.name, edit_admin_locale_path(locale), :class => "")
                %td= locale.slug
                %td= locale.slug_type.humanize
                %td.controls
                  = link_to('Edit', edit_admin_locale_path(locale), :class => "btn")
                  = link_to "Delete", delete_admin_locale_path(locale), :class => "btn btn-danger"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 app/views/gluttonberg/admin/settings/locales/index.html.haml
gluttonberg-core-3.0.1 app/views/gluttonberg/admin/settings/locales/index.html.haml
gluttonberg-core-3.0.0 app/views/gluttonberg/admin/settings/locales/index.html.haml