Skip to content

Commit

Permalink
Display only parts of the UI which are relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed May 4, 2024
1 parent f550332 commit c9ecacc
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions web/status-history/src/main/resources/views/LineStatus.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,21 @@
<tr>
<td class="line-{{status.lineId}}">{{status.lineTitle}}</td>
<td class="delay {{status.changeStatus.cssClass}} {{delayStyle}}">
{{#if (or (empty status.description) (empty status.branchDescription))}}
{{status.delayType}}
{{else}}
{{#if (or (not (empty status.description)) (not (empty status.branchDescription)))}}
<a rel="htmltooltip">{{status.delayType}}</a>
<div class="htmltooltip">
<p>{{status.description}}</p>
<p>{{status.branchDescription}}</p>
{{#if (not (empty status.description))}}
<span>{{status.description}}</span>
{{/if}}
{{#if (and (not (empty status.description)) (not (empty status.branchDescription)))}}
<br/><br/>
{{/if}}
{{#if (not (empty status.branchDescription))}}
<span>{{status.branchDescription}}</span>
{{/if}}
</div>
{{else}}
{{status.delayType}}
{{/if}}
</td>
<td class="change {{status.changeStatus.cssClass}}">
Expand Down

0 comments on commit c9ecacc

Please sign in to comment.