# 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