-
Notifications
You must be signed in to change notification settings - Fork 90
Add optional image to card aggregate status #222
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 optional image to card aggregate status #222
Conversation
@simon3z @zeari |
re: Is it ok to add kubernetes.svg and openshift.svg to the misc directory ? |
9ad4c79
to
29102db
Compare
cc @abonas |
@jeff-phillips-18 👍 p.s. |
@epwinchell can you please sync with @jeff-phillips-18 on this topic so there won't be 2 places to maintain the same svg icons? |
@epwinchell since you already have a good list of svg files I would continue to use yours as you are probably already maintaining them for other uses as well. I was under the impression this PR was going to be adding the svgs which doesn't seem to be the case. |
@jeff-phillips-18 Sounds good @abonas @simon3z For ManageIQ, the SVG vendor icons are up-to-date and available here: https://github.com/ManageIQ/manageiq/tree/master/app/assets/images/svg |
@jeff-phillips-18 I just wanted nice icons for the demo, not for manageiq that has it's icons mechanism. |
@yaacov , you wrote: "This PR has bad karma because in the html template, image src is an angular var :-( what to do ?", can you elaborate on what the issues is?
|
@dtaylor113 the line:
The preprocessor need to know about it ? |
@yaacov Change from src="{{ to ng-src="{{ Putting ng- in front tells it to evaluate the text as a variable. |
29102db
to
2723ac1
Compare
@jeff-phillips-18 Thanks ! |
2723ac1
to
925086f
Compare
@jeff-phillips-18 @dtaylor113 please review |
Changes LGTM, but speaking of good karma... please add a unit test for the correct setting of the iconImage value. |
925086f
to
15f9528
Compare
15f9528
to
c844af0
Compare
@jeff-phillips-18 👍 added a unit test "should set of the iconImage value". |
LGTM 👍 |
LGTM |
The provider icons are not provided as css class anymore. But they are available as svg files.
This PR makes it possible to optionally use images, in cases where icons are not available.
It adds an optional
iconImage
parameter.