Sha256: 5f85b7c53b27bb329dd104c9a66998d975e60a4e9ebb81bc7ceb3f69af9d6a26

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

angular.module("hyperadmin")
  .controller "NavbarCtrl", (Restangular) ->
    Restangular.all("admin/resource_classes").getList().then (resources) =>
      @resources = resources.map (resource) ->
        list_state: "#{resource.plural}"
        label: resource.menu_label

    this

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyper_admin-0.4.0 app/assets/javascripts/hyper_admin/angularjs/controllers/navbar_ctrl.js.coffee
hyper_admin-0.3.0 app/assets/javascripts/hyper_admin/angularjs/controllers/navbar_ctrl.js.coffee