Changeset 817 for trunk/grails-app/taglib
- Timestamp:
- Feb 21, 2011, 8:57:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/CustomTagLib.groovy
r808 r817 278 278 279 279 /** 280 * Get a list of the machines assigned on a taskProcedureRevision. 281 * 282 * Fields: 283 * taskProcedureRevision - TaskProcedureRevision to use. 284 * 285 * Example: 286 * <!-- 287 * <custom:taskProcedureMachines taskProcedureRevision="${taskInstance.taskProcedureRevision}" /> 288 * --> 289 */ 290 def taskProcedureMachines = {attrs -> 291 def taskProcedureRevision = attrs.taskProcedureRevision 292 def machines = taskProcedureRevision.maintenanceActions.collect {it.assetSubItem.parentItem}.unique() 293 out << machines.encodeAsHTML() 294 } 295 296 /** 280 297 * Determine if a supplied string is considered a url or not. 281 298 * The scheme/protocol can be adjusted, file:// has been excluded here.
Note: See TracChangeset
for help on using the changeset viewer.