-
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
app helpers: get rid of ui_lookup() with static string argument #2302
app helpers: get rid of ui_lookup() with static string argument #2302
Conversation
40cdceb
to
0992371
Compare
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") |
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 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} |
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.
Floating vs Floatin
One question and one typo. Otherwise looks good! |
looking at oh yes, because now the code looks more similar |
0992371
to
df6223f
Compare
@martinpovolny yes, similar code, but that will be subject of a different PR ... :-) |
df6223f
to
9309a84
Compare
Checked commit mzazrivec@9309a84 with ruby 2.3.5, rubocop 0.47.1, and haml-lint 0.20.0 |
…lookup_in_helpers app helpers: get rid of ui_lookup() with static string argument
No description provided.