[bugzilla-gnome-org-customizations] Display GNOME spinner while Bugzilla is creating search results



commit 1e235be385c7202648baf9d0030687c56c966928
Author: Andre Klapper <a9016009 gmx de>
Date:   Wed Feb 24 00:19:18 2016 +0100

    Display GNOME spinner while Bugzilla is creating search results
    
    Bug #612937

 extensions/GNOME/spinner48.png                     |  Bin 0 -> 4340 bytes
 .../template/en/default/list/server-push.html.tmpl |   55 ++++++++++++++++++++
 2 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/extensions/GNOME/spinner48.png b/extensions/GNOME/spinner48.png
new file mode 100644
index 0000000..a6eaa54
Binary files /dev/null and b/extensions/GNOME/spinner48.png differ
diff --git a/extensions/GNOME/template/en/default/list/server-push.html.tmpl 
b/extensions/GNOME/template/en/default/list/server-push.html.tmpl
new file mode 100644
index 0000000..3438a01
--- /dev/null
+++ b/extensions/GNOME/template/en/default/list/server-push.html.tmpl
@@ -0,0 +1,55 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+  # License, v. 2.0. If a copy of the MPL was not distributed with this
+  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  #
+  # This Source Code Form is "Incompatible With Secondary Licenses", as
+  # defined by the Mozilla Public License, v. 2.0.
+  #%]
+
+[%# INTERFACE:
+  # debug: boolean. True if we want the search displayed while we wait.
+  # query: string. The SQL query which makes the buglist.
+  #%]
+
+<html>
+  <head>
+    <title>[% terms.Bugzilla %] is pondering your search</title>
+    <link href="[% 'skins/standard/global.css' FILTER mtime %]"
+          rel="stylesheet" type="text/css">
+  <style type="text/css">
+  #spinner {
+    display: block;
+    position: absolute;
+    top: 50%;
+    left: 50%;
+    width: 48px; height: 48px;
+    background: url(../../../../../spinner48.png) no-repeat 0 0;
+    -moz-animation-name: rotate;
+    -moz-animation-duration: 1.5s;
+    -moz-animation-iteration-count: infinite;
+    -moz-animation-timing-function: linear;
+    -webkit-animation-name: rotate;
+    -webkit-animation-duration: 2s;
+    -webkit-animation-iteration-count: infinite;
+    -webkit-animation-timing-function: linear;
+  }
+  @-webkit-keyframes rotate {
+    from {-webkit-transform: rotate(0deg);}
+    to {-webkit-transform: rotate(360deg);}
+  }
+  @-moz-keyframes rotate {
+    from {-moz-transform: rotate(0deg);}
+    to {-moz-transform: rotate(360deg);}
+  }
+  </style>
+  </head>
+  <body>
+    <div id="spinner"></span>
+    [% IF debug %]
+      <p>[% query FILTER html %]</p>
+      [% IF query_explain.defined %]
+        <pre>[% query_explain FILTER html %]</pre>
+      [% END %]
+    [% END %]
+  </body>
+</html>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]