Sha256: a9dc6a42177532d3afed9bfcf15df13e6eacd8799245c8b64439237a3a3b832c

Contents?: true

Size: 288 Bytes

Versions: 21

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

module Effective
  module TableRows
    class Boolean < Effective::TableRow

      def content
        if value
          template.badge('YES')
        else
          template.badge('NO', class: 'badge badge-light')
        end
      end

    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
effective_bootstrap-1.14.15 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.14 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.13 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.12 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.11 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.10 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.9 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.8 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.7 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.6 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.5 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.4 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.3 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.2 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.1 app/models/effective/table_rows/boolean.rb
effective_bootstrap-1.14.0 app/models/effective/table_rows/boolean.rb
effective_bootstrap-0.13.7 app/models/effective/table_rows/boolean.rb
effective_bootstrap-0.13.6 app/models/effective/table_rows/boolean.rb
effective_bootstrap-0.13.5 app/models/effective/table_rows/boolean.rb
effective_bootstrap-0.13.4 app/models/effective/table_rows/boolean.rb