Changeset 138


Ignore:
Timestamp:
Oct 8, 2007, 2:56:01 AM (16 years ago)
Author:
ecprice
Message:

ParaVM on list

Location:
trunk/web/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/templates/list.tmpl

    r133 r138  
    4545</td>
    4646        <td>#slurp
    47 #if $has_vnc.get($machine.name)
     47#if $has_vnc.get($machine.name) == True
    4848<a href="vnc?machine_id=$machine.machine_id">Console</a>#slurp
    4949#else
    50 off#slurp
     50$has_vnc.get($machine.name)
    5151#end if
    5252</td>
  • trunk/web/templates/main.py

    r136 r138  
    4242
    4343def haveAccess(user, machine):
    44     if user.username == 'quentin':
     44    if user.username == 'moo':
    4545        return True
    4646    return machine.owner == user.username
     
    277277    on = uptimes
    278278    for m in machines:
    279         if on.get(m.name) and m.type.hvm:
     279        if not on.get(m.name):
     280            has_vnc[m.name] = 'Off'
     281        elif m.type.hvm:
    280282            has_vnc[m.name] = True
    281283        else:
    282             has_vnc[m.name] = False
     284            help_name = 'paravm_console'
     285            has_vnc[m.name] = 'ParaVM <span class="helplink"><a href="help?subject=%s&amp;simple=true" target="_blank" onclick="return helppopup(\'%s\')">(?)</a></span>' % (help_name, help_name)
    283286    #     for m in machines:
    284287    #         status = statusInfo(m)
Note: See TracChangeset for help on using the changeset viewer.