From c7680d8612049a826f3e17389ae9f74ac33a7df5 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 24 Jan 2011 20:54:14 +0100 Subject: update templates and css --- views/index.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'views/index.tt') diff --git a/views/index.tt b/views/index.tt index 6359157..f82aa5e 100644 --- a/views/index.tt +++ b/views/index.tt @@ -28,11 +28,13 @@

Builds pending

+
+
-- cgit 1.4.1 From 696b319385daa88837af21de1b3a2a3c3c3619ea Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 24 Jan 2011 21:46:43 +0100 Subject: display current build if any --- lib/jitterbug.pm | 3 ++- views/index.tt | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'views/index.tt') diff --git a/lib/jitterbug.pm b/lib/jitterbug.pm index 2da9e09..1bf3aab 100644 --- a/lib/jitterbug.pm +++ b/lib/jitterbug.pm @@ -15,7 +15,8 @@ get '/' => sub { my $projects = _get_projects(); my ( $builds, $runnings ) = _get_builds(); - template 'index', { projects => $projects, builds => $builds }; + template 'index', + { projects => $projects, builds => $builds, runnings => $runnings }; }; sub _get_projects { diff --git a/views/index.tt b/views/index.tt index f82aa5e..d657f48 100644 --- a/views/index.tt +++ b/views/index.tt @@ -2,6 +2,15 @@

Dashboard

+
+ : if $runnings { + The following projects are building: + : for $runnings -> $running { + <: $running.project :> + : } + : } +
+
@@ -26,7 +35,7 @@
-

Builds pending

+

Builds pending (<: $builds.size :>)

    -- cgit 1.4.1 From 37dae747364370453e0d54d1b2a7aec289f71a4b Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sun, 13 Feb 2011 13:58:10 +0100 Subject: update templates to show informations about running tasks --- public/css/style.css | 1 + views/index.tt | 4 +++- views/task/index.tt | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'views/index.tt') diff --git a/public/css/style.css b/public/css/style.css index 00defda..d22b898 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -234,6 +234,7 @@ font-family:Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",m .repo p.updated-at{margin:0;font-size:11px;color:#888;} .comming-builds{border:1px solid #d8d8d8;background-color:#f0f0f0} +.running-build{border:1px solid #d8d8d8;background-color:#f0f0f0} .commit .name{float:left; width: 100%;} .commit .name .date{color:#888;font-size:90%;} diff --git a/views/index.tt b/views/index.tt index d657f48..4e7eba2 100644 --- a/views/index.tt +++ b/views/index.tt @@ -4,10 +4,12 @@
    : if $runnings { - The following projects are building: +
    + The following project is building: : for $runnings -> $running { <: $running.project :> : } +
    : }
    diff --git a/views/task/index.tt b/views/task/index.tt index baa76bf..25bdeb9 100644 --- a/views/task/index.tt +++ b/views/task/index.tt @@ -1,5 +1,6 @@

    Task <: $task.id :>

    + started : <: $task.started_when :>
    -- cgit 1.4.1