about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-11-27T18·18+0100
committerFlorian Klink <flokli@flokli.de>2019-11-27T18·18+0100
commitfdfcf7967af7dca15eaaa59792f8e90d6b1f3c39 (patch)
treeda684810f406ca20a4076b6c57ab96e28f7ea2b9
parent917db9e9fda521786d4cb738327e2a89dd442ae9 (diff)
submit-queue.tmpl: fix accordion, remove "Current Queue"
The Current Queue in fact is just the latest log element.
-rw-r--r--public/submit-queue.tmpl.html19
1 files changed, 8 insertions, 11 deletions
diff --git a/public/submit-queue.tmpl.html b/public/submit-queue.tmpl.html
index 773a8990f64a..6fe336159545 100644
--- a/public/submit-queue.tmpl.html
+++ b/public/submit-queue.tmpl.html
@@ -42,13 +42,13 @@
         </tr>
         <tr>
           <th scope="row">HEAD:</th>
-	  <td><code>{{ .HEAD }}</code></td>
+	        <td><code>{{ .HEAD }}</code></td>
         </tr>
         <tr>
           <th scope="row">Currently running:</th>
 	  <td>
 	    {{ if .currentlyRunning }}
-	    started at {{ .currentlyRunning.Format "Jan 02, 2006 15:04:05 UTC" }}
+	    started at {{ .currentlyRunning.Format "2006-01-02 15:04:05 UTC" }}
 	    {{ else }}
 	    <span class="text-secondary">Not currently running</span>
 	    {{ end }}
@@ -56,24 +56,21 @@
         </tr>
       </tbody>
     </table>
-    <h2 id="region-queue">Current Queue</h2>
-    {{ block "series" .series }}{{ end }}
-
-    <h2 id="region-log">History</h2>
+    <h2 id="region-log">Log</h2>
 
     <div id="history-accordion">
         {{ range $i, $result := .results }}
         <div class="card">
           <div class="card-header">
-            <h5 class="mb-0">
-              <button class="btn btn-link" data-toggle="collapse" data-target="history-collapse-{{ $i }}">
-                Result Item {{ $i }}, {{ $result.StartTime.Format "Jan 02, 2006 15:04:05 UTC"}} - {{ $result.EndTime.Format "Jan 02, 2006 15:04:05 UTC"}}
+            <h5>
+              <button class="btn btn-link" data-toggle="collapse" data-target="#history-collapse-{{ $i }}">
+                Result Item {{ $i }}, {{ $result.StartTime.Format "2006-01-02 15:04:05 UTC"}} - {{ $result.EndTime.Format "2006-01-02 15:04:05 UTC"}}
               </button>
             </h5>
           </div>
-          <div id="history-collapse-{{ $i }}" class="collapse show" data-parent="#history-accordion">
+          <div id="history-collapse-{{ $i }}" class="collapse {{ if eq $i 0 }} show{{ end }}" data-parent="#history-accordion">
             <div class="card-body">
-              <!--// TODO: currentlyRunning, HEAD-->
+              <!--// TODO: HEAD-->
               {{ if $result.Error }}
               <div class="text-danger">{{ $result.Error }}</div>
               {{ end }}