class Dashing.GitlabBuildStatus extends Dashing.Widget onData: (data) -> if data.failed $(@node).find('div.gitlab-build-failed').show() $(@node).find('div.gitlab-build-succeeded').hide() $(@node).css("background-color", "red") else $(@node).find('div.gitlab-build-failed').hide() $(@node).find('div.gitlab-build-succeeded').show() $(@node).css("background-color", "#50BA5B")