aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/search/results/gsx.html
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
commit63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch)
tree555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/search/results/gsx.html
downloadServo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip
Initial commit
First public commit
Diffstat (limited to 'servo/templates/search/results/gsx.html')
-rwxr-xr-xservo/templates/search/results/gsx.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/servo/templates/search/results/gsx.html b/servo/templates/search/results/gsx.html
new file mode 100755
index 0000000..ac8471b
--- /dev/null
+++ b/servo/templates/search/results/gsx.html
@@ -0,0 +1,41 @@
+{% extends "search/spotlight.html" %}
+{% load i18n %}
+
+{% block second_column %}
+{% block tabs %}
+ <ul class="nav nav-tabs" id="gsx-tabs">
+ {% if gsx_type == 'serialNumber' or 'alternateDeviceId' %}
+ <li><a href="{% url 'search-gsx' what='warranty' %}?q={{ query }}">{% trans "Device" %}</a></li>
+ {% else %}
+ <li class="disabled"><a href="#">{% trans "Device" %}</a></li>
+ {% endif %}
+ {% if gsx_type == 'serialNumber' or gsx_type == 'partNumber' %}
+ <li><a href="{% url 'search-gsx' what='parts' %}?q={{ query }}">{% trans "Parts" %}</a></li>
+ {% else %}
+ <li class="disabled"><a href="#">{% trans "Parts" %}</a></li>
+ {% endif %}
+ {% if gsx_type == 'serialNumber' or gsx_type == 'dispatchId' %}
+ <li><a href="{% url 'search-gsx' what='repairs' %}?q={{ query }}">{% trans "Repairs" %}</a></li>
+ {% else %}
+ <li class="disabled"><a href="#">{% trans "Repairs" %}</a></li>
+ {% endif %}
+ <li class="pull-right"><a href="#" class="filter_table"><i class="icon-search"></i></a></li>
+ </ul>
+{% endblock tabs %}
+
+{% block results %}
+ <div id="gsx-container" data-source="{% url 'search-gsx_results' what=what %}?q={{ query }}">
+ <div class="progress active">
+ <div class="bar" style="width:1%;" data-progress="0"></div>
+ </div>
+ </div>
+{% endblock results %}
+
+{% endblock second_column %}
+
+{% block media %}
+<script type="text/javascript">
+ var loc = location.pathname + location.search;
+ $('#gsx-tabs>li>a[href="'+loc+'"]').parent().addClass('active');
+</script>
+{% endblock media %}