Sha256: 189d1997cc88ff44dd0656ef3993541b82791aa69a0997db76112ded91399a97
Contents?: true
Size: 1.14 KB
Versions: 4
Compression:
Stored size: 1.14 KB
Contents
module Headmin module Filter class OperatorView < ViewModel def allowed_operators @allowed_operators || [] end def selected @selected || nil end def operator_symbol { eq: "= #{I18n.t("headmin.filters.operators.eq")}", not_eq: "≠ #{I18n.t("headmin.filters.operators.not_eq")}", gt: "> #{I18n.t("headmin.filters.operators.gt")}", gteq: "≥ #{I18n.t("headmin.filters.operators.gteq")}", lt: "< #{I18n.t("headmin.filters.operators.lt")}", lteq: "≤ #{I18n.t("headmin.filters.operators.lteq")}", starts_with: "⊏ #{I18n.t("headmin.filters.operators.starts_with")}", ends_with: "⊐ #{I18n.t("headmin.filters.operators.ends_with")}", matches: "≈ #{I18n.t("headmin.filters.operators.matches")}", does_not_match: "≉ #{I18n.t("headmin.filters.operators.does_not_match")}", is_null: "○ #{I18n.t("headmin.filters.operators.is_null")}", is_not_null: "● #{I18n.t("headmin.filters.operators.is_not_null")}" } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems