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

Split flash, navbar and listnav related bits off ApplicationHelper #3873

Merged
merged 8 commits into from
May 3, 2018
Merged

Split flash, navbar and listnav related bits off ApplicationHelper #3873

merged 8 commits into from
May 3, 2018

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Apr 27, 2018

This should be a straightforward move of a bunch of methods to 3 new ApplicationHelper concerns:

  • ApplicationHelper::Flash - flash_to_session, render_flash_msg?, javascript_flash
  • ApplicationHelper::Listnav - miq_accordion_panel, single_relationship_link, multiple_relationship_link, valid_html_id, li_link, build_link_text, link_to_with_icon, render_listnav_filename
  • ApplicationHelper::Navbar - item_nav_class, section_nav_class_iframe, section_nav_class

And removes a dead ApplicationHelper method - link_image_if, last used before #1376.

(The idea is to make the application helper rating a bit better, and maybe to clean up any issues CC finds in the new files. => wip)

@himdel himdel changed the title Split flash, navbar and listnav related bits off ApplicationHelper [WIP] Split flash, navbar and listnav related bits off ApplicationHelper Apr 27, 2018
@himdel himdel requested a review from skateman May 3, 2018 09:30
@himdel
Copy link
Contributor Author

himdel commented May 3, 2018

@miq-bot remove_label wip

@martinpovolny This should be ready..

@miq-bot miq-bot changed the title [WIP] Split flash, navbar and listnav related bits off ApplicationHelper Split flash, navbar and listnav related bits off ApplicationHelper May 3, 2018
@miq-bot miq-bot removed the wip label May 3, 2018
@miq-bot
Copy link
Member

miq-bot commented May 3, 2018

Checked commits https://github.com/himdel/manageiq-ui-classic/compare/74cf5a8219851ca83b4ae0cb101065990d03e543~...c293b554eb21f24453e6f08820065cc8f2259459 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
4 files checked, 1 offense detected

app/helpers/application_helper/listnav.rb

@martinpovolny martinpovolny self-assigned this May 3, 2018
@martinpovolny martinpovolny added this to the Sprint 85 Ending May 7, 2018 milestone May 3, 2018
@martinpovolny martinpovolny merged commit a8766b9 into ManageIQ:master May 3, 2018
@himdel himdel deleted the apphelper branch May 4, 2018 11:50
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