Changeset 138
- Timestamp:
- Oct 8, 2007, 2:56:01 AM (17 years ago)
- Location:
- trunk/web/templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/list.tmpl
r133 r138 45 45 </td> 46 46 <td>#slurp 47 #if $has_vnc.get($machine.name) 47 #if $has_vnc.get($machine.name) == True 48 48 <a href="vnc?machine_id=$machine.machine_id">Console</a>#slurp 49 49 #else 50 off#slurp 50 $has_vnc.get($machine.name) 51 51 #end if 52 52 </td> -
trunk/web/templates/main.py
r136 r138 42 42 43 43 def haveAccess(user, machine): 44 if user.username == ' quentin':44 if user.username == 'moo': 45 45 return True 46 46 return machine.owner == user.username … … 277 277 on = uptimes 278 278 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: 280 282 has_vnc[m.name] = True 281 283 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&simple=true" target="_blank" onclick="return helppopup(\'%s\')">(?)</a></span>' % (help_name, help_name) 283 286 # for m in machines: 284 287 # status = statusInfo(m)
Note: See TracChangeset
for help on using the changeset viewer.