Sha256: 03acdb2ccd2a8293afa4471df1deac9e6419830274a5f9ad3846707a7aca5db8

Contents?: true

Size: 575 Bytes

Versions: 47

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbLogistic
    class Logistic
      include Playbook::Props

      partial "pb_logistic/logistic"

      prop :dark, type: Playbook::Props::Boolean, default: false
      prop :project_name
      prop :project_number
      prop :date
      prop :link

      def classname
        generate_classname("pb_logistic_kit", dark_class)
      end

      def date_element
        "· #{date.strftime('%m/%d')}".html_safe
      end

    private

      def dark_class
        dark ? "dark" : nil
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
playbook_ui-5.2.0.pre.alpha15 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.2.0.pre.alpha14 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.2.0.pre.alpha13 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.2.0.pre.alpha12 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.2.0.pre.alpha11 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.5.1.pre.alpha4 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.5.1.pre.alpha3 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.5.1.pre.alpha2 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.5.1.pre.alpha1 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.2.0.pre.alpha10 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.5.1 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.5.0 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.5.0.pre.alpha1 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.2.0.pre.alpha9 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.2.0.pre.alpha8 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.2.0.pre.alpha7 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.3.0.pre.alpha1 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.4.0 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.2.0.pre.alpha6 app/pb_kits/playbook/pb_logistic/logistic.rb
playbook_ui-5.2.0.pre.alpha5 app/pb_kits/playbook/pb_logistic/logistic.rb