-
Notifications
You must be signed in to change notification settings - Fork 35
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 support for text/html Accept header #16
Conversation
func LabelColor(status string) string { | ||
switch status { | ||
case "TASK_FAILED": | ||
return "red" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
colours feels more like a css thing. should the class perhaps just be "task-failed" or so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is very true, maybe I should just export a ToLower function
LGTM. Will give it a spin. |
If accessing a route with text/html in the Accept header render a HTML page instead of returning a JSON.
</div> | ||
<div class="ui main container" style="padding-top: 50px;"> | ||
<div class="ui image content"> | ||
<img src="static/images/disappointed_minion.png"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guess this should be /static/..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes! that's probably why it breaks on that one route
Add support for text/html Accept header
If accessing a route with text/html in the Accept header render a HTML
page instead of returning a JSON.