File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -351,12 +351,19 @@ sub create-cro-app ($pool) {
351
351
352
352
$ dbh . dispose;
353
353
354
- template ' templates/projects.crotmp' , {
354
+ my @ q = find-triggers($ root );
355
+ my $ st = qx [ uptime] . chomp . subst (/.* "load" /," load" );
356
+ my $ core = qx [ nproc --all] . chomp ;
355
357
358
+ template ' templates/projects.crotmp' , {
359
+ state => $ st ,
360
+ core => $ core ,
361
+ queue => @ q . elems ,
356
362
http-root => sparky-http-root(),
357
363
css => css($ theme ),
358
364
navbar => navbar(),
359
365
projects => @ projects . sort (*. <project >),
366
+ theme => " $ theme" ,
360
367
361
368
}
362
369
Original file line number Diff line number Diff line change 5
5
<&HTML-AND-JAVASCRIPT(.navbar)>
6
6
<nav class="panel is-primary">
7
7
<p class="panel-heading">Projects</p>
8
- <!-- <div class="panel-block" id="notification"></div> -->
8
+ <div class="panel-block" id="notification">
9
+ <.state> | <.core> cpu cores | <.queue> builds in queue | theme: <.theme>
10
+ </div>
9
11
<table class="table panel-block is-fullwidth">
10
12
<tr>
11
13
<td>Project</td>
You can’t perform that action at this time.
0 commit comments