summaryrefslogtreecommitdiff
path: root/examples/lib/okpush/templates/index.liquid
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-10-06 17:08:38 -0400
committerJules Laplace <jules@okfoc.us>2016-10-06 17:08:38 -0400
commitd2299d24a23c9d0d835631b72e4f1d1974958f94 (patch)
tree2133ec4d5701767d9fd8d51051eaea768e07629f /examples/lib/okpush/templates/index.liquid
parentc8c0b465d9796b526d268ea0e641fd7ba00e44bb (diff)
js component
Diffstat (limited to 'examples/lib/okpush/templates/index.liquid')
-rw-r--r--examples/lib/okpush/templates/index.liquid18
1 files changed, 10 insertions, 8 deletions
diff --git a/examples/lib/okpush/templates/index.liquid b/examples/lib/okpush/templates/index.liquid
index e0547c3..10772b5 100644
--- a/examples/lib/okpush/templates/index.liquid
+++ b/examples/lib/okpush/templates/index.liquid
@@ -11,6 +11,9 @@ th {
th:nth-child(2) {
min-width: 300px;
}
+th:nth-child(3) {
+ min-width: 170px;
+}
table,tr,th,td {
margin: 0;
padding: 0;
@@ -31,6 +34,8 @@ tr:nth-child(2n+1) {
<h2>Push Notifications</h2>
+ <div class="device-count" data-count="{{ device_count }}">Device count: {{ device_count }}</div>
+
<table class="notifications" cellpadding="0" cellspacing="0">
<tr>
<th>Key</th>
@@ -48,11 +53,11 @@ tr:nth-child(2n+1) {
<td>
{{spec.alert}}
</td>
- <td>
- {% unless spec.last_fired %}
+ <td class="notification-date">
+ {% unless spec.last_push %}
Never
{% else %}
- {{spec.last_fired}}
+ {{ spec.last_push | date: "%a %d-%b-%Y %H:%M" }}
{% endunless %}
</td>
<td>
@@ -64,9 +69,6 @@ tr:nth-child(2n+1) {
</section>
-<script>
-$(function(){
- $("
-})
-</script>
{% include 'partials/tail' %}
+
+<script src="public/push.js"></script> \ No newline at end of file