Sha256: 3938cd5d444b184b4908d3d080d3714e47285d20f26843acb6d2125337a4bd6a

Contents?: true

Size: 1.49 KB

Versions: 8

Compression:

Stored size: 1.49 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"4hyper_admin/angularjs/directives/table/table.js;FI"
pathname;TI"v/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/directives/table/table.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+ø–TI"length;TiìI"digest;TI"%96705f0ec9bd713b54da059832bf834c;FI"source;TI"ì(function() {
  angular.module("hyperadmin").directive("resourceTable", function() {
    return {
      template: "<table class=\"table table-striped\">\n  <thead>\n    <tr>\n      <th ng-repeat=\"attribute in resourceClass.attributes\">\n        {{ attribute.human }}\n      </th>\n      <th>Actions</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat=\"resource in resources\">\n      <td ng-repeat=\"attribute in resourceClass.attributes\">\n        {{ resource[attribute.key] }}\n      </th>\n      <td>\n        <a ui-sref=\"{{ resourceClass.plural }}.show({ id: resource.id })\">\n          Show\n        </a>\n        <a ui-sref=\"{{ resourceClass.plural }}.edit({ id: resource.id })\">\n          Edit\n        </a>\n        <a ui-sref=\"{{ resourceClass.plural }}.show({ id: resource.id })\" delete-link>\n          Destroy\n        </a>\n      </td>\n    </tr>\n  </tbody>\n</table>",
      scope: {
        resourceClass: "=",
        resources: "="
      }
    };
  });

}).call(this);
;TI"required_assets_digest;TI"%934f25746946630344b028142635b899;FI"
_version;TI"%3e3098c8a5e9a7f3b984ba95ac600637;F

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
hyper_admin-0.4.0 spec/dummy/tmp/cache/assets/development/sprockets/3573ffec5cfea33d5fee73862c72234b
hyper_admin-0.4.0 spec/dummy/tmp/cache/assets/development/sprockets/5742d73362b0aa851f1078aa701f130e
hyper_admin-0.3.0 spec/dummy/tmp/cache/assets/development/sprockets/3573ffec5cfea33d5fee73862c72234b
hyper_admin-0.3.0 spec/dummy/tmp/cache/assets/development/sprockets/5742d73362b0aa851f1078aa701f130e
hyper_admin-0.2.0 spec/dummy/tmp/cache/assets/development/sprockets/3573ffec5cfea33d5fee73862c72234b
hyper_admin-0.2.0 spec/dummy/tmp/cache/assets/development/sprockets/5742d73362b0aa851f1078aa701f130e
hyper_admin-0.1.0 spec/dummy/tmp/cache/assets/development/sprockets/3573ffec5cfea33d5fee73862c72234b
hyper_admin-0.1.0 spec/dummy/tmp/cache/assets/development/sprockets/5742d73362b0aa851f1078aa701f130e