Show tempmon readings when viewing client or probe
also make the probes list more helpful when viewing client
This commit is contained in:
		
							parent
							
								
									7650064b64
								
							
						
					
					
						commit
						29e023096b
					
				
					 5 changed files with 140 additions and 32 deletions
				
			
		|  | @ -40,18 +40,6 @@ | |||
|         display: inline; | ||||
|     } | ||||
|      | ||||
|     .batch-helper { | ||||
|         border: 1px solid black; | ||||
|         float: right; | ||||
|         margin-top: 1em; | ||||
|         padding: 1em; | ||||
|         width: 20em; | ||||
|     } | ||||
| 
 | ||||
|     .batch-helper-content { | ||||
|         margin-top: 1em; | ||||
|     } | ||||
| 
 | ||||
|   </style> | ||||
| </%def> | ||||
| 
 | ||||
|  | @ -92,9 +80,9 @@ | |||
| </ul> | ||||
| 
 | ||||
| % if status_breakdown is not Undefined: | ||||
|     <div class="batch-helper"> | ||||
|     <div class="object-helper"> | ||||
|       <h3>Row Status Breakdown</h3> | ||||
|       <div class="batch-helper-content"> | ||||
|       <div class="object-helper-content"> | ||||
|         % if status_breakdown: | ||||
|             <div class="grid full"> | ||||
|               <table> | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| ## -*- coding: utf-8 -*- | ||||
| ## -*- coding: utf-8; -*- | ||||
| <%inherit file="/master/view.mako" /> | ||||
| 
 | ||||
| <%def name="head_tags()"> | ||||
|  | @ -13,10 +13,23 @@ | |||
|   </script> | ||||
| </%def> | ||||
| 
 | ||||
| ${parent.body()} | ||||
| <ul id="context-menu"> | ||||
|   ${self.context_menu_items()} | ||||
| </ul> | ||||
| 
 | ||||
| % if instance.enabled and master.restartable_client(instance) and request.has_perm('tempmon.clients.restart'): | ||||
|     <div class="buttons"> | ||||
|       <button type="button" id="restart-client">Restart this Client</button> | ||||
| % if instance.enabled and master.restartable_client(instance) and request.has_perm('{}.restart'.format(route_prefix)): | ||||
|     <div class="object-helper"> | ||||
|       <h3>Client Tools</h3> | ||||
|       <div class="object-helper-content"> | ||||
|         <button type="button" id="restart-client">Restart tempmon-client daemon</button> | ||||
|       </div> | ||||
|     </div> | ||||
| % endif | ||||
| 
 | ||||
| <div class="form-wrapper"> | ||||
|   ${form.render()|n} | ||||
| </div><!-- form-wrapper --> | ||||
| 
 | ||||
| % if master.has_rows: | ||||
|     ${rows_grid|n} | ||||
| % endif | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar