aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeongjun Park <aha310510@gmail.com>2025-04-27 19:34:10 +0900
committerDmitry Vyukov <dvyukov@google.com>2025-04-29 12:42:27 +0000
commit9e70464425eebd2fa590c49a04f09e407d4bc3d4 (patch)
treeffac12718b4a58fb68d0ed2f5fc710893ca503cd
parent4a62c0b1c427faab93b443697e66d2f1a9ae3f23 (diff)
dashboard/app/templates: fix incorrect use of *Sort function
We are using incorrect *Sort functions when using some sortTable functions. Also, this is causing the current syz repro sort to not work. Thereforce we need to modify it to use the correct *Sort functions and remove unnecessary tab spaces to pass the intended text to the *Sort functions.
-rw-r--r--AUTHORS1
-rw-r--r--CONTRIBUTORS1
-rw-r--r--dashboard/app/templates/templates.html12
3 files changed, 6 insertions, 8 deletions
diff --git a/AUTHORS b/AUTHORS
index 4f7a5834b..fdaad0dc6 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -53,3 +53,4 @@ Arm Ltd
Tudor Ambarus
Elektrobit Automotive GmbH
Rivos Inc.
+Jeongjun Park
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 20c8c8b29..1b6946cc2 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -138,3 +138,4 @@ Ramneet Singh
Ji Hyeon Jeong
Rivos Inc.
Alexandre Ghiti
+Jeongjun Park
diff --git a/dashboard/app/templates/templates.html b/dashboard/app/templates/templates.html
index 571e262cd..66db3a4e6 100644
--- a/dashboard/app/templates/templates.html
+++ b/dashboard/app/templates/templates.html
@@ -433,8 +433,8 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
<th><a onclick="return sortTable(this, 'Syzkaller', textSort)" href="#">Syzkaller</a></th>
<th><a onclick="return sortTable(this, 'Config', textSort)" href="#">Config</a></th>
<th><a onclick="return sortTable(this, 'Log', textSort)" href="#">Log</a></th>
- <th><a onclick="return sortTable(this, 'Report', reproSort)" href="#">Report</a></th>
- <th><a onclick="return sortTable(this, 'Syz repro', reproSort)" href="#">Syz repro</a></th>
+ <th><a onclick="return sortTable(this, 'Report', textSort)" href="#">Report</a></th>
+ <th><a onclick="return sortTable(this, 'Syz repro', textSort)" href="#">Syz repro</a></th>
<th><a onclick="return sortTable(this, 'C repro', textSort)" href="#">C repro</a></th>
<th><a onclick="return sortTable(this, 'VM info', textSort)" href="#">VM info</a></th>
<th><a onclick="return sortTable(this, 'Assets', textSort)" href="#">Assets</a> (<a href="https://github.com/google/syzkaller/blob/master/docs/syzbot_assets.md">help?</a>)</th>
@@ -447,16 +447,12 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
<tr>
<td class="time">{{formatTime $b.Time}}</td>
<td class="kernel" title="{{$b.KernelAlias}}">{{$b.KernelAlias}}</td>
- <td class="tag" title="{{$b.KernelCommit}}
- {{formatTime $b.KernelCommitDate}}">{{link $b.KernelCommitLink (formatTagHash $b.KernelCommit)}}</td>
+ <td class="tag" title="{{$b.KernelCommit}} {{formatTime $b.KernelCommitDate}}">{{link $b.KernelCommitLink (formatTagHash $b.KernelCommit)}}</td>
<td class="tag">{{link $b.SyzkallerCommitLink (formatShortHash $b.SyzkallerCommit)}}</td>
<td class="config">{{if $b.KernelConfigLink}}<a href="{{$b.KernelConfigLink}}">.config</a>{{end}}</td>
<td class="repro">{{if $b.LogLink}}<a href="{{$b.LogLink}}">{{if $b.LogHasStrace}}strace{{else}}console{{end}} log</a>{{end}}</td>
<td class="repro">{{if $b.ReportLink}}<a href="{{$b.ReportLink}}">report</a>{{end}}</td>
- <td class="repro{{if $b.ReproIsRevoked}} stale_repro{{end}}">
- {{if $b.ReproSyzLink}}<a href="{{$b.ReproSyzLink}}">syz</a>{{end}}
- {{if $b.ReproLogLink}} / <a href="{{$b.ReproLogLink}}">log</a>{{end}}
- </td>
+ <td class="repro{{if $b.ReproIsRevoked}} stale_repro{{end}}">{{if $b.ReproSyzLink}}<a href="{{$b.ReproSyzLink}}">syz</a>{{end}}{{if $b.ReproLogLink}} / <a href="{{$b.ReproLogLink}}">log</a>{{end}}</td>
<td class="repro{{if $b.ReproIsRevoked}} stale_repro{{end}}">{{if $b.ReproCLink}}<a href="{{$b.ReproCLink}}">C</a>{{end}}</td>
<td class="repro">{{if $b.MachineInfoLink}}<a href="{{$b.MachineInfoLink}}">info</a>{{end}}</td>
<td class="assets">{{range $i, $asset := .Assets}}