Class: Oversee::Field::Value::String
- Inherits:
-
Oversee::Field::Value
- Object
- Phlex::HTML
- Base
- Oversee::Field::Value
- Oversee::Field::Value::String
- Defined in:
- app/components/oversee/field/value/string.rb
Constant Summary
Constants inherited from Oversee::Field::Value
Instance Attribute Summary
Attributes inherited from Oversee::Field::Value
Instance Method Summary collapse
Methods inherited from Oversee::Field::Value
Constructor Details
This class inherits a constructor from Oversee::Field::Value
Instance Method Details
#view_template ⇒ Object
2 3 4 5 6 |
# File 'app/components/oversee/field/value/string.rb', line 2 def view_template return p(class: "text-gray-400 text-xs uppercase") { "Empty" } if @value == "" return p(class: "text-gray-400 text-xs uppercase") { "Redacted" } if sensitive? p(class: "truncate") { value } end |