ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/textual_mixins/textual_protected.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module TextualMixins::TextualProtected
  def textual_protected
    protected = @record.has_policies
    {:label => _("Protected"), :icon => protected ? "fa fa-shield" : "fa fa-remove", :value => protected.to_s}
  end
end