Changeset 147 for trunk/web/templates
- Timestamp:
- Oct 9, 2007, 2:31:30 AM (17 years ago)
- Location:
- trunk/web/templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/info.tmpl
r144 r147 70 70 #if not $on 71 71 <tr><td>Ram:</td><td><input type="text" size=3 value="$machine.memory"/>MB (max $max_mem)</td></tr> 72 <tr><td>Disk:</td><td><input type="text" size=3 value="${machine.disks[0].size/1024.}"/>GB (max $max_disk)</td>< /tr>72 <tr><td>Disk:</td><td><input type="text" size=3 value="${machine.disks[0].size/1024.}"/>GB (max $max_disk)</td><td>WARNING: Modifying disk size may corrupt your data.</td></tr> 73 73 #end if 74 74 <tr><td><input type="submit" class="button" name="action" value="Change"/></td></tr> -
trunk/web/templates/main.py
r145 r147 213 213 lines = value_string.splitlines() 214 214 d = {} 215 for line in lines [1:]:215 for line in lines: 216 216 lst = line.split() 217 217 name, id = lst[:2] … … 593 593 fields = [] 594 594 machine_info = {} 595 machine_info['name'] = machine.name 595 596 machine_info['type'] = machine.type.hvm and 'HVM' or 'ParaVM' 596 597 machine_info['owner'] = machine.owner … … 609 610 if field in ('uptime', 'cputime'): 610 611 fields.append((disp, locals()[field])) 612 elif field in machine_info: 613 fields.append((disp, machine_info[field])) 611 614 elif field in main_status: 612 615 fields.append((disp, main_status[field])) 613 elif field in machine_info:614 fields.append((disp, machine_info[field]))615 616 else: 616 617 pass
Note: See TracChangeset
for help on using the changeset viewer.