From 16e999bf8ad91595a563a75049db8040d6d85e71 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Tue, 27 Jan 2015 15:29:41 -0800 Subject: [PATCH] red and green observer status icons --- planetstack/core/static/img/green-cloud.gif | Bin 0 -> 335 bytes planetstack/core/static/img/red-cloud.gif | Bin 0 -> 514 bytes planetstack/core/static/observer_status.js | 25 ++++++++++++++++++++ planetstack/templates/admin/base.html | 2 ++ 4 files changed, 27 insertions(+) create mode 100644 planetstack/core/static/img/green-cloud.gif create mode 100644 planetstack/core/static/img/red-cloud.gif create mode 100644 planetstack/core/static/observer_status.js diff --git a/planetstack/core/static/img/green-cloud.gif b/planetstack/core/static/img/green-cloud.gif new file mode 100644 index 0000000000000000000000000000000000000000..0a80d7d0408950adc54a15ecb56cde5f6ca5c278 GIT binary patch literal 335 zcmV-V0kHl@Nk%w1VITk?0E7Sl1cC&F!h}SkM8x96B$6cL^5mq_q-3&W6p9p-%9K>9 zRMhI!G@3N@`t-Egw0ypN42BGh#*9p+Ow8uYES45Fn^@ ztVD>V&}MH4ILF3O>G7mVGSp702UPr7X$`Ni9{F!01hVx5d#f)nTZ+`ZzdH9 z2W+L81P2KPB^Y6^xNQ+55xKrZ4;~A@!~g?`#lBm~z7V&}xX;j;5SY`M3=Y?&UdY=; h0wN9G-x7`^9h4XA?CtLE1PY!$^!4`l`1u|o06SJ0iktud literal 0 HcmV?d00001 diff --git a/planetstack/core/static/img/red-cloud.gif b/planetstack/core/static/img/red-cloud.gif new file mode 100644 index 0000000000000000000000000000000000000000..3025720f269695b5b6643a2f49147ca9a54cf026 GIT binary patch literal 514 zcmZ?wbhEHbRA5kGSjxcg#EIq0qLwe0j=U*yc@m}a=hc%hyOzA^O8N8c%M(A5FYBhf zsSA0MX7cCWl`qG(yqQZx95o)&zDs_e{P+5 zQ|9v|PUp|NCx3o@c@n1brY+@3md&4Mcb+)${JD1KO_9%&D4j3+*1YMZ2mmD^X1f@H+>tMqRDt}& z!1nLJtO5@mss0m7icaQO&A+gsq+`Pxr=EkagJyDROL8RGD0#C4A6XWo*3YQyI=QUT zQf>D46I&Q^gK`&mPgp(Mw zl}tJGgcatuD@(BHHgLF4XV4Jl)|6orY&EhMmjURZO69#;XUL86=9FjNZPw_okhJ-;_7!-q$ZL{}}WNFdT|MP|fsr@68X5 zw`{67Se*neKYOsfMdGBytLcWa$0G%'; + } else { + html = ''; + } + $("#observer-status").html(html); + setTimeout(function() { updateObserverStatus(); }, 60000); + }, + error: function() { + setTimeout(function() { updateObserverStatus(); }, 60000); + } +}); +} + +$( document ).ready(function() { + updateObserverStatus(); +}); diff --git a/planetstack/templates/admin/base.html b/planetstack/templates/admin/base.html index 49c6791..08d19d1 100644 --- a/planetstack/templates/admin/base.html +++ b/planetstack/templates/admin/base.html @@ -14,6 +14,7 @@ + {% if 'SHOW_REQUIRED_ASTERISK'|suit_conf %} @@ -84,6 +85,7 @@
{% trans 'Welcome,' %} {{user.email}} + {% block userlinks %} {% url 'django-admindocs-docroot' as docsroot %} -- 2.43.0