Build server prototype (integration with GitHub / NuGet / etc)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
micro-build-server/BuildServer/views/status-image.jade

13 lines
604 B

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}