Skip to content
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

Use decorators for icons/images in the compressed compare view #4146

Merged
merged 1 commit into from
Jun 15, 2018

Conversation

skateman
Copy link
Member

We removed the PNG images that are still being used for comparing clusters. To fix this we should display the fonticon for them, and it's more safe to do so with decorators, for all cases.

Before:
screenshot from 2018-06-15 08-17-00

After:
screenshot from 2018-06-15 08-17-12

@miq-bot add_label bug, gaprindashvili/no, graphics
@miq-bot add_reviewer @epwinchell

html_text <<
"<a href=\"/ems_cluster/show/#{h[:id]}\">
<img src=\"#{img}\" align=\"middle\" border=\"0\" width=\"20\" height=\"20\"/>
<i class=\"#{icon}\" align=\"middle\" border=\"0\" width=\"20\" height=\"20\"/>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@epwinchell I'm not sure if this looks good or not, the fonticon is blue as the link's text (see screenshot)

@miq-bot
Copy link
Member

miq-bot commented Jun 15, 2018

Checked commit skateman@1830391 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍪

Copy link
Contributor

@epwinchell epwinchell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. Looks fine.

@mzazrivec mzazrivec self-assigned this Jun 15, 2018
@mzazrivec mzazrivec added this to the Sprint 88 Ending Jun 18, 2018 milestone Jun 15, 2018
@mzazrivec mzazrivec merged commit 016a2f7 into ManageIQ:master Jun 15, 2018
@skateman skateman deleted the compare-decorators branch June 15, 2018 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants