1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-10-17 16:43:26 +00:00

improve layout on large screens

This commit is contained in:
Oliver Giles
2020-09-04 13:08:34 +12:00
parent 4316eb8a00
commit e29568f627
3 changed files with 23 additions and 10 deletions

View File

@@ -259,7 +259,7 @@ std::string Laminar::getStatus(MonitorScope scope) {
populateArtifacts(j, scope.job, scope.num);
j.EndArray();
} else if(scope.type == MonitorScope::JOB) {
const uint runsPerPage = 10;
const uint runsPerPage = 20;
j.startArray("recent");
// ORDER BY param cannot be bound
std::string order_by;
@@ -364,7 +364,7 @@ std::string Laminar::getStatus(MonitorScope scope) {
j.EndObject();
} else { // Home page
j.startArray("recent");
db->stmt("SELECT * FROM builds ORDER BY completedAt DESC LIMIT 15")
db->stmt("SELECT * FROM builds ORDER BY completedAt DESC LIMIT 20")
.fetch<str,uint,str,time_t,time_t,time_t,int>([&](str name,uint build,str context,time_t,time_t started,time_t completed,int result){
j.StartObject();
j.set("name", name)