Dannon Baker  committed 8dba100

Disk usage > 80% displays a warning to increase the volume size.

  • Participants
  • Parent commits 99d72a0

Comments (0)

Files changed (2)

File static/style/base.css

 /*    border: 1px solid #CC0000;*/
+    display:none;
+    width:700px;
+    margin-bottom:10px;
+    padding:7px;
+    border:1px solid ;
+    text-align:center;
+    background: transparent;
+    background-color:#EEEEEE;
+    display: inline-block;
+    border: solid #aaaaaa 1px;
+    clear:both;

File templates/index.mako

 <div class="body" style="max-width: 720px; margin: 0 auto;">
     <h2>Galaxy Cloudman Console</h2>
+    <div id="storage_warning" class="warning"><strong>Warning:</strong> You are running out of disk space.  Use the disk icon below to increase your volume size.</div>
 	<div id="main_text">
 		%if initial_cluster_type is None:
 			Welcome to Galaxy Cloudman.  This application will allow you to manage this cloud and the services provided within. If this is your first time running this cluster, you will need to select an initial data volume size.  Once the data store is configured, default services will start and you will be add and remove additional services as well as 'worker' nodes on which jobs are run.
 			Applications <div id="app-status" style="width:16px;display:inline-block" class="status_green">&nbsp;</div>
 			Data <div id="data-status" style="width:16px;display:inline-block" class="status_green">&nbsp;</div>
-	    <tr><td colspan=2></td></tr>
+	    <tr><td colspan=2>
+	    </td></tr>
+				if (parseInt(data.disk_usage.pct) > 80){
+				    $('#storage_warning').show();
+				}else{
+				    $('#storage_warning').hide();
+				}
 				// DBTODO write generic services display