Sha256: 0b6459a1e9fdc8de586044007ca00239630ca71f24f93f113df72e1db246854c

Contents?: true

Size: 1.17 KB

Versions: 31

Compression:

Stored size: 1.17 KB

Contents

%table.abilities.table.table-bordered{ html_options }
  - for feature in features
    %tr{ id: feature.slug + '_ability'}
      %th= feature.title
      %td
        - case feature.setting_type
          - when 'boolean'
            - if can? :use, feature.slug.to_sym
              = icon 'ok'
            - else
              = icon 'remove'
          - when 'table_rows'
            - if can? :own, feature.feature_model
              = icon 'ok'
            - else
              = icon 'remove'
            - if current_user.table_rows_unlimited?(feature.slug)
              = :unlimited.l
            - else
              = :x_of_y_remaining.l x: current_user.table_rows_remaining(feature.slug), y: current_user.table_rows_allowed(feature.slug)
          - when 'rolify_rows'
            - if can? :own, feature.feature_model
              = icon 'ok'
            - else
              = icon 'remove'
            - if current_user.rolify_rows_unlimited?(feature.slug)
              = :unlimited.l
            - else
              = :x_of_y_remaining.l x: current_user.rolify_rows_remaining(feature.slug), y: current_user.rolify_rows_allowed(feature.slug)
          - else
            = :error.l

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
paid_up-0.9.1 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.9.0 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.8.1 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.11 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.10 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.9 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.8 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.7 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.6 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.5 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.4 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.3 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.2 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.1 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.7.0 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.6.5 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.6.4 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.6.3 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.6.2 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.6.1 app/views/paid_up/features/_abilities_table.html.haml