Sha256: 2ec2311cd1fc765ab26c48a5cc1986275df5c5abe7b708458a6fc2e0f6dd84dc
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
angular.module("hyperadmin") .directive "tableRow", -> template: """ <td ng-repeat="attribute in attributes"> <ng-include src="template(attribute)"></ng-include> </td> <td> <a ui-sref=".show({ id: resource.id })">Show</a> <a ui-sref=".edit({ id: resource.id })">Edit</a> <a ui-sref=".show({ id: resource.id })" delete-link>Destroy</a> </td> """ restrict: "A" scope: attributes: "=" resource: "=" link: (scope) -> scope.template = (attr) -> "table-#{attr.type}"
Version data entries
2 entries across 2 versions & 1 rubygems