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

Fixes #12341 - Added divs to make changes in alerts easier #2872

Closed
wants to merge 1 commit into from

Conversation

alongoldboim
Copy link
Member

No description provided.

@dLobatog
Copy link
Member

@alongoldboim Thanks! This is changing significantly on Patternfly (https://github.com/theforeman/foreman/pull/2137/files#diff-d07b3cdd6c00768e06bfed349d3c808fR428) , perhaps you want to wait until then to make this refactor or is there anything that requires it right now?

@alongoldboim
Copy link
Member Author

I kinda need it sooner, I don't see a real reason for waiting :).

@dLobatog
Copy link
Member

dLobatog commented Nov 2, 2015

@alongoldboim What are you trying to do with these divs exactly? It's basically the same as not having them as you can match deface with alert-xxxx already, the helper creates a div with these classes.

Do you want to wrap alerts in something? You can use closing_selector on deface for that, or surround.

@dLobatog
Copy link
Member

dLobatog commented Nov 2, 2015

@alongoldboim An example that I've tested:

Deface::Override.new(
  :virtual_path => 'templates/_form',
  :name => 'replace-alerts',
  :replace => 'erb[loud]:contains("alert-success")',
  :text => "<h1>hi there</h1>")

@alongoldboim
Copy link
Member Author

@dLobatog ill try it :), thanks.

@alongoldboim
Copy link
Member Author

@dLobatog Works like a charm 👍,
We can wait for Patternfly.

@dLobatog
Copy link
Member

dLobatog commented Nov 3, 2015

Alright, closing this for the moment then, thanks @alongoldboim !

@dLobatog dLobatog closed this Nov 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants