Changeset 7656:e18837f6dcf6


Ignore:
Timestamp:
11/09/07 21:16:31 (6 years ago)
Author:
Yi Qiang <yqiang@…>
Branch:
default
Message:

Stat style fixes.

Location:
sage/dsage/web
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sage/dsage/web/index.html

    r7655 r7656  
    3636            </ul> 
    3737            </center> 
    38                 <table id='jobs_table' class='tablesorter' display='none'> 
     38                <table id='jobs_table' class='tablesorter' style='display:none;'> 
    3939                </table> 
    40                 <table id='server_details' display='none'> 
     40                <table id='server_details' class='tablesorter' style='display:none;'> 
    4141                </table> 
    42                 <table id='job_details' class='tablesorter' display='none'> 
     42                <table id='job_details' class='tablesorter' style='display:none;'> 
    4343                </table> 
    4444                <div id="navigator"> 
  • sage/dsage/web/static/dsage_web.css

    r7655 r7656  
    4545    font-size:10px; 
    4646    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; 
    6147} 
    6248 
  • sage/dsage/web/static/dsage_web.js

    r7655 r7656  
    100100                // The callback is called at once by present location.hash.  
    101101                $.historyInit(pageload); 
    102                 console.log('historyInit') 
    103102                // set onlick event for buttons 
    104103                $("a[@rel='history']").click(function() {gethash(this); }); 
    105                 console.log('setonclick') 
    106104        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        } 
    108110        // setInterval('getJobs(count)', 5000); // Update it every 5 seconds.   
    109111    }  
  • sage/dsage/web/web_server.py

    r7655 r7656  
    258258        # """ 
    259259        #  
    260         html = """""" 
     260        html = """ 
     261        <thead> 
     262        <tr> 
     263        <th>Stat</th> 
     264        <th>Value</th> 
     265        <tbody>""" 
    261266        # build StringIO object 
    262267        tree = ET() 
     
    272277                html += """ 
    273278                <tr> 
    274                     <td id='key'>%s</td> 
     279                    <td>%s</td> 
    275280                    <td>%s</td> 
    276281                </tr> 
    277282                """ % (mapping[elem.tag], elem.text) 
    278283 
    279         # html += """ 
    280         # </tbody> 
    281         # """ 
     284        html += """ 
     285        </tbody> 
     286        """ 
    282287         
    283288        return html 
Note: See TracChangeset for help on using the changeset viewer.