doctype xml -var fills = {Warn: "yellow", OK: "green" } -var colors = {Warn: "black", OK: "black" } -var fill = fills[status] || "red" -var color = colors[status] || "white" svg(xmlns="http://www.w3.org/2000/svg", xmlns:xlink="http://www.w3.org/1999/xlink", version="1.1", width="800px", height=(message?"100px":"80px")) a(xlink:href="/status/" + [owner, reponame, branchName, rev].join("/")) rect(width="100%", height="100%", fill=fill) text(x=20, y=50, font-size=36, font-weight="bold", fill=color) Build status: #{status} if (message) text(x=20, y=80, font-size=18, fill=color) #{message}