Sha256: 2b267543db69015f1e48456106e1f29acd23036cf4f014bcab88024d4e75a2d6
Contents?: true
Size: 1.28 KB
Versions: 8
Compression:
Stored size: 1.28 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")}", in: "∋ #{I18n.t("headmin.filters.operators.in")}", not_in: "∌ #{I18n.t("headmin.filters.operators.not_in")}" } end end end end
Version data entries
8 entries across 8 versions & 1 rubygems