Sha256: 2809362cac4ac73a747e271a1f7d7030a438ff159807fb8145db8244fab35fd0

Contents?: true

Size: 1.89 KB

Versions: 4

Compression:

Stored size: 1.89 KB

Contents

.box.slice-box
  .box-body.no-padding
    %table.table
      %thead
        - if views.size.zero?
          %tr
            %th{style: 'text-align: center;'}
              %h6= t('keppler.messages.not_found_records', model:  t("keppler_frontend.models.pluralize.views"))
        - else
          %tr
            %th.hidden-xs= t('activerecord.attributes.method')
            %th.hidden-xs= t('activerecord.attributes.route')
            %th.hidden-xs= t('activerecord.attributes.type')
            %th.hidden-xs= t('keppler_frontend.models.singularize.theme')
            %th.hidden-xs
      %tbody.objects-container
        - views.each_with_index do |view, i|
          - unless view.last.eql?('')
            %tr
              %td.hidden-xs{ style: "width: 10%"}
                = link_to "#", remote: true, class: 'show-row' do
                  %span.badge
                    = view.last.upcase
              %td
                = link_to "#", remote: true, class: 'show-row' do
                  %span
                    - if view.last.upcase.eql?('ROOT')
                      = '/'
                    - else
                      = view.second
              %td.hidden-xs{ style: "width: 10%"}
                = link_to "#", remote: true, class: 'show-row' do
                  %span
                    = view.first.split('.').last.capitalize
              %td{ style: "width: 10%"}
                = link_to "#", remote: true, class: 'show-row', title: t('keppler.actions.add_theme'), "data-toggle": "modal",  "data-target": "#asign-theme-#{i}" do
                  %span
                    %i.bx.bxs-magic-wand
              %td{ style: "width: 10%"}
                = link_to admin_frontend_views_remove_path(i), remote: true, method: :delete, class: 'show-row', title: t('keppler.actions.delete') do
                  %span
                    %i.bx.bx-trash
            = render 'select_theme', view: view, index: i

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/views/_views_listing.html.haml
keppler-2.1.21 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/views/_views_listing.html.haml
keppler-2.1.20 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/views/_views_listing.html.haml
keppler-2.1.19 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/views/_views_listing.html.haml