Sha256: 8727b6bf4b753c371add3260cc4739440ec807e15181c3dfab535d243ec5d86e

Contents?: true

Size: 754 Bytes

Versions: 8

Compression:

Stored size: 754 Bytes

Contents

%table.abilities.table.table-bordered{ html_options }
  - for feature in features
    %tr{ id: feature.name + '_ability'}
      %th= feature.title
      %td
      - case feature.setting_type
        - when 'boolean'
          - if can? :use, feature.name.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.name)
            = :unlimited.l
          - else
            = :x_of_y_remaining.l x: current_user.table_rows_remaining(feature.name), y: current_user.table_rows_allowed(feature.name)
        - else
          = :error.l

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
paid_up-0.1.8 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.1.7 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.1.6 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.1.5 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.1.4 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.1.3 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.1.1 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.1.0 app/views/paid_up/features/_abilities_table.html.haml