-
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
Fix quadicons under service catalogs #971
Conversation
app/helpers/quadicon_helper.rb
Outdated
@@ -561,8 +560,8 @@ def render_ems_cluster_quadicon(item, options) | |||
def render_non_listicon_single_quadicon(item, options) | |||
output = [] | |||
|
|||
img_path = if item.decorate | |||
item.decorate.try(:fileicon) | |||
img_path = if item.decorate.try(:fileicon) |
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.
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.
I hate these long lines, but ok :)
Aside, from @skateman's comment, this is good to go. |
@miq-bot assign @dclarizio |
@hayesr let me know when you've addressed the comment above. |
…corate always will be. Also, use `image_tag` instead of `tag(:img)` https://bugzilla.redhat.com/show_bug.cgi?id=1439517
005b420
to
35b2877
Compare
@dclarizio Should be ready when green. |
Checked commit hayesr@35b2877 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Restart CI |
Fix quadicons under service catalogs (cherry picked from commit af4ea85) https://bugzilla.redhat.com/show_bug.cgi?id=1444171
Fine backport details:
|
The change in decorators effects how this quadicon determines which icon to display. This changes the single quadicon to check for the return of
fileicon
explicitly sinceitem.decorate
will usually (always?) be true.Before
After
@epwinchell Can you confirm this is the correct rendering?
Addresses:
https://bugzilla.redhat.com/show_bug.cgi?id=1439517