Browse Source

Removed Site Status

Yoginth 7 years ago
parent
commit
af6d7bd812

File diff suppressed because it is too large
+ 1 - 1
public/css/gitote.min.css


+ 0 - 17
public/js/gitote.js

@@ -1498,23 +1498,6 @@ function showMessageMaxLength(maxLen, textElemId, counterId) {
     $msg.keyup(onMessageKey).keydown(onMessageKey);
 }
 
-// Detect Site Status
-$.ajax({
-    url:'https://srhpyqt94yxb.statuspage.io/api/v2/summary.json',
-    success: function(json) {
-        var status = "";
-        var message = "";
-        status += json.components[0].status;
-        message += json.status.description;
-        if (status == "operational") {
-            $('.sitestatus').addClass('green');
-        } else {
-            $('.sitestatus').addClass('red');
-            $(".statuscontact").append("<div style=\"margin-bottom:2em\" class=\"ui tertiary inverted red segment center\"> <h3>⚠️ " + message + " ⚠️</h3> </div>");
-        }
-    }
-});
-
 function hideBootcamp() {
     var x = document.getElementsByClassName("bcamp");
     var i;

+ 0 - 5
templates/misc/admin_bar.tmpl

@@ -38,11 +38,6 @@
                 <a href="{{AppURL}}admin">
                     <span style="font-size:12px;color:white;margin-left:10px" class="octicon octicon-rocket"></span>
                 </a>
-                <img 
-                    class="adminbar align hide-mobile" 
-                    style="width:55px;margin-top:-3px" 
-                    src="https://img.shields.io/uptimerobot/status/m780912498-752f7edbb4dbba05feb9e8ec.svg?style=flat-square&maxAge=2592000"
-                >
             </div>
         </div>
     </div>

+ 1 - 4
templates/user/dashboard/dashboard.tmpl

@@ -253,10 +253,7 @@
 					<a class="contents" href="{{AppURL}}about">About</a>
 					<a class="contents" href="{{AppURL}}faq">FAQ</a>
 					<a class="contents" href="{{AppURL}}help">Help</a>
-					<a class="contents" href="https://status.gitote.in" target="_blank">
-						Status
-						<span style="font-size:8px" class="sitestatus ui empty circular label mini"></span>
-					</a>
+					<a class="contents" href="https://status.gitote.in" target="_blank">Status</a>
 					<a class="contents" href="{{AppURL}}tos">Terms</a>
 					<a class="contents" href="{{AppURL}}privacy">Privacy</a>
 					<a class="contents" href="{{AppURL}}brand">Brand</a>