diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-04-26 12:04:41 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-04-26 12:15:29 +0000 |
| commit | 07b455f928ae5c2cd07f4d61c1b499f56ea3dd08 (patch) | |
| tree | 9a4824d4ac860ed2d95053c3538e3df55f7d3e74 /dashboard | |
| parent | 719eea2fe74cb5d7485be9f8d4b4709b745c4d2f (diff) | |
dashboard/app: don't print discussion info where there are none
Currently we print somewhat verbose "💬 0 [3d18h]" when there are
no discussions, the date repeats the reporting date.
It' makes it hard to visually see when there are conversations
and when there are none. Print nothing when there are no discussions.
Diffstat (limited to 'dashboard')
| -rw-r--r-- | dashboard/app/templates.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dashboard/app/templates.html b/dashboard/app/templates.html index e37772bc8..84f733a06 100644 --- a/dashboard/app/templates.html +++ b/dashboard/app/templates.html @@ -190,10 +190,10 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the {{if $.DispDiscuss}} {{$d := $b.Discussions}} <td class="discussions" sort-value="{{formatLateness $.Now $d.LastMessage}}"> - {{- if $d.LastPatchMessage.IsZero -}} - <span class="icon">💬</span> {{$d.ExternalMessages}} [{{formatLateness $.Now $d.LastMessage}}] - {{else}} + {{- if not $d.LastPatchMessage.IsZero -}} <b>PATCH</b> [{{formatLateness $.Now $d.LastPatchMessage}}] + {{- else if $d.ExternalMessages -}} + <span class="icon">💬</span> {{$d.ExternalMessages}} [{{formatLateness $.Now $d.LastMessage}}] {{- end -}} </td> {{end}} |
