From 69d6f9e8a1856aa43cd974c111e936c9484917f8 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 18 Mar 2015 11:35:25 +0100 Subject: [PATCH] Add loading indicator for jobs list This also fixes an occasional bug which occurs when jobs list is being displayed, but job data is not loaded yet and links are not rendering properly. --- app/templates/jobs.hbs | 98 ++++++++++++++++++++++-------------------- 1 file changed, 51 insertions(+), 47 deletions(-) diff --git a/app/templates/jobs.hbs b/app/templates/jobs.hbs index 7ad45d1e..f1b3229e 100644 --- a/app/templates/jobs.hbs +++ b/app/templates/jobs.hbs @@ -15,61 +15,65 @@ {{#each job in view.jobs}} {{#view 'jobs-item' context=job}}
- {{#link-to "job" repo job}} + {{#if job.config}} + {{#link-to "job" job.repo job}} -
- -
+
+ +
-

- - {{#if job.id}} - {{#if job.repo.slug}} - {{number}} +

+ + {{#if job.id}} + {{#if job.repo.slug}} + {{number}} + {{/if}} {{/if}} +

+ +

+ + {{!-- {{config.os}} --}} +

+ + {{#if view.languages}} +

+ + {{view.languages}} +

+ {{else}} +

+ + no language set +

+ {{/if}} + + {{#if config.env}} +

+ + {{config.env}} +

+ {{else}} +

+ + no environments set +

{{/if}} -

-

- - {{!-- {{config.os}} --}} -

- - {{#if view.languages}} -

- - {{view.languages}} +

+ + {{format-duration duration}}

- {{else}} -

- - no language set -

- {{/if}} - - {{#if config.env}} -

- - {{config.env}} -

- {{else}} -

- - no environments set -

- {{/if}} -

- - {{format-duration duration}} -

+ {{!--

+ + {{format-time finishedAt}} +

--}} - {{!--

- - {{format-time finishedAt}} -

--}} - - {{/link-to}} + {{/link-to}} + {{else}} + + {{/if}}
{{/view}} {{!-- {{job.configKeys}} --}}