Sha256: ff2016349f82328dd1aa57371324de72155032314e4f49fb620d46967238b5d0

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

- if notice
  %p.notice= sanitize(notice)

- if alert
  %p.alert= sanitize(alert)

.row
  .column
    = render partial: 'task', collection: Plug.buttons

.row
  .column
    .clearfix
      .float-left
        %h4 Features
      .float-right
        = link_to 'New Feature', new_feature_path, class: 'button'

    %table
      %thead
        %tr
          %th Name
          %th Description
          %th Slug
          %th State
          
          - if Plug.allow_delete
            %th Actions

      %tbody
        - @features.each do |feature|
          %tr
            %td= link_to feature.name, edit_feature_path(feature), class: 'strong'
            %td= feature.description
            %td= feature.slug
            %td
              - if feature.state == 'enabled'
                %i.fas.fa-check-circle.fa-2x.state__enabled
              - else
                %i.fas.fa-times-circle.fa-2x.state__disabled

            - if Plug.allow_delete
              %td= link_to 'Destroy', feature, method: :delete, data: { confirm: 'Are you sure?' }

    

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plug-0.1.19 app/views/plug/features/index.html.haml
plug-0.1.18 app/views/plug/features/index.html.haml
plug-0.1.16 app/views/plug/features/index.html.haml
plug-0.1.15 app/views/plug/features/index.html.haml