Changeset 2416 for package_branches/invirt-web/cherrypy/code
- Timestamp:
- Aug 9, 2009, 8:08:33 PM (15 years ago)
- Location:
- package_branches/invirt-web/cherrypy/code/templates
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/templates/functions.mako
r2406 r2416 44 44 def jquote(string): 45 45 return "'" + string.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n') + "'" 46 47 def nl2br(string): 48 return string.replace('\n', '<br/>') 46 49 %> 47 50 -
package_branches/invirt-web/cherrypy/code/templates/info.mako
r2413 r2416 61 61 <input type="hidden" name="machine_id" value="${defaults.machine_id}"/> 62 62 <table> 63 <tr><td>Description:</td><td colspan="2"><textarea name="description" rows="4" cols="60">${defaults.description }</textarea></td></tr>63 <tr><td>Description:</td><td colspan="2"><textarea name="description" rows="4" cols="60">${defaults.description|self.fn.module.nl2br}</textarea></td></tr> 64 64 <tr><td>Owner${self.fn.helppopup("Owner")}:</td><td><input type="text" name="owner", value="${defaults.owner}"/></td></tr> 65 65 ${self.fn.errorRow('owner', err)} -
package_branches/invirt-web/cherrypy/code/templates/list.mako
r2413 r2416 121 121 </tr> 122 122 <tr> 123 <td colspan="7" style="padding-left: 1em; color: #666">${machine.description }</td>123 <td colspan="7" style="padding-left: 1em; color: #666">${machine.description|self.fn.module.nl2br}</td> 124 124 </tr> 125 125 </%def>
Note: See TracChangeset
for help on using the changeset viewer.