-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for fonticons in TreeBuilder root nodes #100
Conversation
17616f1
to
492c933
Compare
This pull request is not mergeable. Please rebase and repush. |
492c933
to
bec2093
Compare
@skateman Cannot apply the following label because they are not recognized: technical_debt |
@miq-bot add_label technical debt |
bec2093
to
ed74d2a
Compare
ed74d2a
to
a8fac8e
Compare
@himdel I love free 🍻 😉 |
a8fac8e
to
d7a3ba5
Compare
Checked commits skateman/manageiq-ui-classic@7e02ea5~...d7a3ba5 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 spec/presenters/tree_builder_policy_simulation_results_spec.rb
spec/presenters/tree_builder_spec.rb
|
{ | ||
:title => @root.name, | ||
:tooltip => _("Host: %{name}") % {:name => @root.name}, | ||
:image => '100/host.png', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@epwinchell there's a few more pngs in the TreeBuilders to convert...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@himdel we know :) but no one likes monstercommits
LGTM, tested in the UI :) |
Because we're supporting images and icons at the same time, it was necessary to modify all the
root_options
methods to return with a Hash instead of an Array. This way it will be possible to specify an:icon
or an:image
the same way as forTreeNode::Hash
. Also the fallback folder image has been changed to a folder fonticon.