-
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
changed stdout format to be html #948
changed stdout format to be html #948
Conversation
@h-kataria the job output is now in html format. The display component need to be a browser type, showing formatted text based on the html body. It should not show the html text including html tags. |
@bzwei we are using codemirror component that displays raw html in the textbox with line numbers and i do not think there is a way to tell it to evaluate the html tags and show output of that in the box. @dclarizio do you know if we can do that? |
@bzwei @dclarizio another way to display this output would be to eliminate codemirror and show the display in a box, we will loose line numbers in that case, see screenshot below: |
@h-kataria not showing line number is fine. There is no meaning of line number in this case anyway. Curious why the text are not colored. The html contains style sheet defining font colors. |
e3adf16
to
2a2e546
Compare
@bzwei @dclarizio please review/test, updated screeshot in the first comment |
c89ed45
to
423aeb7
Compare
Looks good. Thanks! |
903b477
to
3239eed
Compare
Added new JS controller to handle sanitize and render html on the screen. https://bugzilla.redhat.com/show_bug.cgi?id=1439273
3239eed
to
2f280f9
Compare
Checked commit h-kataria@2f280f9 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
changed stdout format to be html (cherry picked from commit f3c6991) https://bugzilla.redhat.com/show_bug.cgi?id=1441295
Fine backport details:
|
unused since ManageIQ#948 (2f280f9)
https://bugzilla.redhat.com/show_bug.cgi?id=1439273
before:
![before](https://cloud.githubusercontent.com/assets/3450808/24768732/b4d428a6-1ad1-11e7-80ec-4ee3609a0fad.png)
after:
![after](https://cloud.githubusercontent.com/assets/3450808/24807799/a055b154-1b87-11e7-8089-be3e962eee6a.png)
@bzwei please review.