Sha256: 203f0ac4cee015b963fc9d15ca380d8f99b14774b948208066b28f15dd0dde12

Contents?: true

Size: 788 Bytes

Versions: 6

Compression:

Stored size: 788 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

6 entries across 6 versions & 1 rubygems

Version Path
paid_up-0.2.4 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.2.3 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.2.2 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.2.1 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.2.0 app/views/paid_up/features/_abilities_table.html.haml
paid_up-0.1.9 app/views/paid_up/features/_abilities_table.html.haml