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

Add template decorator #309

Merged
merged 1 commit into from
Jul 26, 2018
Merged

Conversation

alexander-demicev
Copy link

@alexander-demicev alexander-demicev commented Jun 26, 2018

Add a UI decorator for template. Method provisioning_volume_size_tooltip returns message that will be displayed in instance provisioning.

@alexander-demicev
Copy link
Author

@miq-bot add_reviewer @skateman

@miq-bot
Copy link
Member

miq-bot commented Jun 26, 2018

@alexander-demichev 'skateman' is an invalid reviewer, ignoring...

@@ -0,0 +1,9 @@
class ManageIQ::Providers::Openstack::CloudManager::TemplateDecorator < MiqTemplateDecorator
def single_quad
Copy link
Member

Choose a reason for hiding this comment

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

You don't need this line since you're inheriting the method from MiqTemplateDecorator.

{}
end

def size_tooltip
Copy link
Member

Choose a reason for hiding this comment

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

I think you should give it a little more meaningful name, like provisioning_volume_size_tooltip but you might come up with something better.

@miq-bot
Copy link
Member

miq-bot commented Jun 26, 2018

Checked commit alexander-demicev@20f863d 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. 🍪

@alexander-demicev
Copy link
Author

@aufi
Copy link
Member

aufi commented Jun 28, 2018

@alexander-demichev Could you paste a link to the decorator's PR which should be merged before this PR?

@skateman
Copy link
Member

Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

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

The Seal of Approval

@aufi aufi merged commit 7ea79d4 into ManageIQ:master Jul 26, 2018
@aufi aufi removed the wip label Jul 26, 2018
@aufi aufi added this to the Sprint 91 Ending Jul 30, 2018 milestone Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants