mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
Output log "skinning"
Not definely best solution, but there will be no need to patch/recompile app to just switch colors of log output.
This commit is contained in:
parent
e1a0c7bd0b
commit
13bc22b1f3
@ -193,6 +193,7 @@ void Laminar::sendStatus(LaminarClient* client) {
|
||||
});
|
||||
}
|
||||
j.set("latestNum", int(buildNums[client->scope.job]));
|
||||
j.set("skin", getenv("LAMINAR_SKIN") ?: "");
|
||||
j.startArray("artifacts");
|
||||
populateArtifacts(j, client->scope.job, client->scope.num);
|
||||
j.EndArray();
|
||||
|
@ -44,6 +44,10 @@
|
||||
right: 10px;
|
||||
padding: 20px;
|
||||
}
|
||||
pre.black {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@ -102,9 +106,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
</div></div>
|
||||
</div></div>
|
||||
</div></template>
|
||||
|
||||
|
||||
<template id="jobs"><div>
|
||||
<ol class="breadcrumb"><li><router-link to="/">Home</router-link></li><li class="active">Jobs</li></ol>
|
||||
<div class="container-fluid"><div class="row">
|
||||
@ -127,7 +131,7 @@
|
||||
</div>
|
||||
</div></div>
|
||||
</div></template>
|
||||
|
||||
|
||||
<template id="job"><div>
|
||||
<ol class="breadcrumb"><li><router-link to="/">Home</router-link></li><li><router-link to="/jobs">Jobs</router-link></li><li class="active">{{$route.params.name}}</li></ol></ol>
|
||||
<div class="container-fluid">
|
||||
@ -172,7 +176,7 @@
|
||||
</div></div>
|
||||
</div>
|
||||
</div></template>
|
||||
|
||||
|
||||
<template id="run"><div>
|
||||
<ol class="breadcrumb"><li><router-link to="/">Home</router-link></li><li><router-link to="/jobs">Jobs</router-link></li><li><router-link :to="'/jobs/'+$route.params.name">{{$route.params.name}}</router-link></li><li class="active">#{{$route.params.number}}</li></ol></ol>
|
||||
<div class="container-fluid">
|
||||
@ -211,7 +215,7 @@
|
||||
<div class="row"><div class="col-xs-12">
|
||||
<button type="button" class="btn btn-default btn-xs pull-right" :class="{'active':autoscroll}" v-on:click="autoscroll = !autoscroll" style="margin-top:10px">Autoscroll</button>
|
||||
<h4>Console output</h4>
|
||||
<pre v-html="log"></pre>
|
||||
<pre :class="job.skin" v-html="log"></pre>
|
||||
</div></div>
|
||||
</div>
|
||||
</div></template>
|
||||
|
Loading…
Reference in New Issue
Block a user