ManageIQ/manageiq-ui-classic

View on GitHub
app/presenters/tree_node/snapshot.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
85%
module TreeNode
  class Snapshot < Node
    set_attribute(:tooltip, &:name)
    set_attribute(:text) do
      if @object.current?
        "#{@object.name} (#{_('Active')})"
      else
        @object.name
      end
    end
  end
end