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

app helpers: get rid of ui_lookup() with static string argument #2302

Conversation

mzazrivec
Copy link
Contributor

No description provided.

@mzazrivec mzazrivec force-pushed the get_rid_of_static_ui_lookup_in_helpers branch from 40cdceb to 0992371 Compare October 5, 2017 09:53
if vm_template && role_allows?(:feature => "miq_template_show")
h[:title] = _("Show this VM's %{label}") % {:label => label}
h[:title] = _("Show this VM's VM Template")
Copy link
Member

Choose a reason for hiding this comment

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

I know it's a different text, but "Show this VM's Template" ?

num = @record.number_of(:floating_ips)
h = {:label => label, :icon => "ff ff-floating-ip", :value => num}
h = {:label => _('Floatin IPs'), :icon => "ff ff-floating-ip", :value => num}
Copy link
Member

Choose a reason for hiding this comment

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

Floating vs Floatin

@martinpovolny
Copy link
Member

One question and one typo. Otherwise looks good!

@martinpovolny
Copy link
Member

martinpovolny commented Oct 5, 2017

looking at app/helpers/ems_container_helper/textual_summary.rb in CC, I wonder why it has gotten worse ;-)

oh yes, because now the code looks more similar

@mzazrivec mzazrivec force-pushed the get_rid_of_static_ui_lookup_in_helpers branch from 0992371 to df6223f Compare October 5, 2017 14:54
@mzazrivec
Copy link
Contributor Author

mzazrivec commented Oct 5, 2017

@martinpovolny yes, similar code, but that will be subject of a different PR ... :-)

@mzazrivec mzazrivec force-pushed the get_rid_of_static_ui_lookup_in_helpers branch from df6223f to 9309a84 Compare October 5, 2017 16:08
@miq-bot
Copy link
Member

miq-bot commented Oct 5, 2017

Checked commit mzazrivec@9309a84 with ruby 2.3.5, rubocop 0.47.1, and haml-lint 0.20.0
30 files checked, 0 offenses detected
Everything looks fine. 👍

@martinpovolny martinpovolny merged commit f389225 into ManageIQ:master Oct 6, 2017
@martinpovolny martinpovolny self-assigned this Oct 6, 2017
@martinpovolny martinpovolny added this to the Sprint 71 Ending Oct 16, 2017 milestone Oct 6, 2017
AparnaKarve pushed a commit to AparnaKarve/manageiq-ui-classic that referenced this pull request Oct 9, 2017
…lookup_in_helpers

app helpers: get rid of ui_lookup() with static string argument
@mzazrivec mzazrivec deleted the get_rid_of_static_ui_lookup_in_helpers branch February 22, 2018 12:07
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.

3 participants