Przeglądaj źródła

Add report and index links when a run fails

Gaël Métais 10 lat temu
rodzic
commit
f601044645
3 zmienionych plików z 11 dodań i 36 usunięć
  1. 3 21
      front/src/css/queue.css
  2. 3 14
      front/src/less/queue.less
  3. 5 1
      front/src/views/queue.html

+ 3 - 21
front/src/css/queue.css

@@ -1,25 +1,7 @@
 .status {
-  margin-top: 2em;
+  margin: 2em;
   font-size: 2.5em;
 }
-@-webkit-keyframes rotating {
-  from {
-    -webkit-transform: rotate(0deg);
-  }
-  to {
-    -webkit-transform: rotate(360deg);
-  }
-}
-@keyframes rotating {
-  from {
-    transform: rotate(0deg);
-  }
-  to {
-    transform: rotate(360deg);
-  }
-}
-.waiting .icon-lab {
-  -webkit-animation: rotating 3s linear 0s infinite;
-  -webkit-transform: translateZ(0);
-  animation: rotating 3s linear 0s infinite;
+.queueLink {
+  color: #FFF;
 }

+ 3 - 14
front/src/less/queue.less

@@ -1,19 +1,8 @@
 .status {
-    margin-top: 2em;
+    margin: 2em;
     font-size: 2.5em;
 }
 
-@-webkit-keyframes rotating {
-    from { -webkit-transform: rotate(0deg); }
-    to { -webkit-transform: rotate(360deg); }
-}
-@keyframes rotating {
-    from { transform: rotate(0deg); }
-    to { transform: rotate(360deg); }
-}
-
-.waiting .icon-lab {
-    -webkit-animation: rotating 3s linear 0s infinite;
-    -webkit-transform: translateZ(0);
-    animation: rotating 3s linear 0s infinite;
+.queueLink {
+    color: #FFF;
 }

+ 5 - 1
front/src/views/queue.html

@@ -1,6 +1,10 @@
 <p>Tested url: &nbsp; <a href="{{url}}" target="_blank" class="testedUrl">{{url}}</a></p>
 
-<div class="status" ng-if="status.statusCode == 'failed'">Test failed</div>
+<div ng-if="status.statusCode == 'failed'">
+    <div class="status">Test failed :(</div>
+    <p><a class="queueLink" href="https://github.com/gmetais/YellowLabTools/issues" target="_blank">Report a bug on GitHub</a></p>
+    <p><a class="queueLink" href="/">Back to index</a></p>
+</div>
 <div class="status" ng-if="status.statusCode == 'awaiting'">
     <ng-pluralize count="status.position" when="{
                      'one': 'Waiting behind 1 other test',