From c9ecacc70ccb3db0d99398fb7ae3e5633f03557f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Sat, 4 May 2024 11:57:07 +0100 Subject: [PATCH] Display only parts of the UI which are relevant --- .../src/main/resources/views/LineStatus.hbs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/web/status-history/src/main/resources/views/LineStatus.hbs b/web/status-history/src/main/resources/views/LineStatus.hbs index 8f2ba6fd..9da258df 100644 --- a/web/status-history/src/main/resources/views/LineStatus.hbs +++ b/web/status-history/src/main/resources/views/LineStatus.hbs @@ -99,14 +99,21 @@ {{status.lineTitle}} - {{#if (or (empty status.description) (empty status.branchDescription))}} - {{status.delayType}} - {{else}} + {{#if (or (not (empty status.description)) (not (empty status.branchDescription)))}} {{status.delayType}}
-

{{status.description}}

-

{{status.branchDescription}}

+ {{#if (not (empty status.description))}} + {{status.description}} + {{/if}} + {{#if (and (not (empty status.description)) (not (empty status.branchDescription)))}} +

+ {{/if}} + {{#if (not (empty status.branchDescription))}} + {{status.branchDescription}} + {{/if}}
+ {{else}} + {{status.delayType}} {{/if}}