Changeset 229 for trunk


Ignore:
Timestamp:
Oct 29, 2007, 12:14:12 AM (17 years ago)
Author:
ecprice
Message:

Replace 'megabyte' with 'MiB' to please Anders.

Location:
trunk/web/templates
Files:
2 edited

Legend:

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

    r228 r229  
    2828        <tr>
    2929          <td>Memory</td>
    30           <td><input type="text" name="memory" value="$defaults.memory" size=3/> megabytes ($max_memory max)</td>
     30          <td><input type="text" name="memory" value="$defaults.memory" size=3/> MiB ($max_memory max)</td>
    3131        </tr>
    3232$errorRow('memory', $err)
    3333        <tr>
    3434          <td>Disk</td>
    35           <td><input type="text" name="disk" value="$defaults.disk" size=3/> gigabytes (${"%0.1f" % ($max_disk-0.05)} max)</td>
     35          <td><input type="text" name="disk" value="$defaults.disk" size=3/> GiB (${"%0.1f" % ($max_disk-0.05)} max)</td>
    3636        </tr>
    3737$errorRow('disk', $err)
  • trunk/web/templates/validation.py

    r228 r229  
    113113    if memory > maxMemory(user, machine, on):
    114114        raise InvalidInput('memory', memory,
    115                            'Maximum %s MiB' % maxMemory(user, machine))
     115                           'Maximum %s MiB for %s' % (maxMemory(user, machine),
     116                                                      user))
    116117    return memory
    117118
Note: See TracChangeset for help on using the changeset viewer.