Changeset 7656:e18837f6dcf6
- Timestamp:
- 11/09/07 21:16:31 (6 years ago)
- Branch:
- default
- Location:
- sage/dsage/web
- Files:
-
- 4 edited
-
index.html (modified) (1 diff)
-
static/dsage_web.css (modified) (1 diff)
-
static/dsage_web.js (modified) (1 diff)
-
web_server.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sage/dsage/web/index.html
r7655 r7656 36 36 </ul> 37 37 </center> 38 <table id='jobs_table' class='tablesorter' display='none'>38 <table id='jobs_table' class='tablesorter' style='display:none;'> 39 39 </table> 40 <table id='server_details' display='none'>40 <table id='server_details' class='tablesorter' style='display:none;'> 41 41 </table> 42 <table id='job_details' class='tablesorter' display='none'>42 <table id='job_details' class='tablesorter' style='display:none;'> 43 43 </table> 44 44 <div id="navigator"> -
sage/dsage/web/static/dsage_web.css
r7655 r7656 45 45 font-size:10px; 46 46 text-align: center; 47 }48 49 #server_details {50 font-size:14px;51 width:50%;52 color: #3D3D3D;53 vertical-align: top;54 margin-left: auto;55 margin-right: auto;56 }57 58 #key {59 font-size: 16px;60 font-style: italic;61 47 } 62 48 -
sage/dsage/web/static/dsage_web.js
r7655 r7656 100 100 // The callback is called at once by present location.hash. 101 101 $.historyInit(pageload); 102 console.log('historyInit')103 102 // set onlick event for buttons 104 103 $("a[@rel='history']").click(function() {gethash(this); }); 105 console.log('setonclick')106 104 getJobs(count) // Run it the first time 107 // showJobs() // Show jobs 105 106 // Only show jobs if this.href is none or jobs 107 if (this.href == '' || this.href == '#jobs') { 108 showJobs() 109 } 108 110 // setInterval('getJobs(count)', 5000); // Update it every 5 seconds. 109 111 } -
sage/dsage/web/web_server.py
r7655 r7656 258 258 # """ 259 259 # 260 html = """""" 260 html = """ 261 <thead> 262 <tr> 263 <th>Stat</th> 264 <th>Value</th> 265 <tbody>""" 261 266 # build StringIO object 262 267 tree = ET() … … 272 277 html += """ 273 278 <tr> 274 <td id='key'>%s</td>279 <td>%s</td> 275 280 <td>%s</td> 276 281 </tr> 277 282 """ % (mapping[elem.tag], elem.text) 278 283 279 #html += """280 #</tbody>281 #"""284 html += """ 285 </tbody> 286 """ 282 287 283 288 return html
Note: See TracChangeset
for help on using the changeset viewer.
