Sha256: da10fbef62afcecb83b02698e72df7b81aaab0d231194fbfb9c966df26604ece

Contents?: true

Size: 419 Bytes

Versions: 7

Compression:

Stored size: 419 Bytes

Contents

class App.Views.Admin.Users.List extends App.Views.Base
  constructor: (opts = {}) ->
    super opts
    @users = opts.users

  render: ->
    $("table tbody").empty()

  renderUsers: (users, order = 'append') ->
    for user in users
      if order is 'append'
        $("table").append JST["templates/admin/users/user"] {user: user}
      else
        $("table").prepend JST["templates/admin/users/user"] {user: user}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
loco-rails-3.0.3 test/dummy/node_modules/loco-js/spec_coffee/dummy/views/admin/users/list.coffee
loco-rails-3.0.2 test/dummy/node_modules/loco-js/spec_coffee/dummy/views/admin/users/list.coffee
loco-rails-3.0.1 test/dummy/node_modules/loco-js/spec_coffee/dummy/views/admin/users/list.coffee
loco-rails-3.0.0 test/dummy/node_modules/loco-js/spec_coffee/dummy/views/admin/users/list.coffee
loco-rails-1.0.2 test/dummy/app/assets/javascripts/views/admin/users/list.coffee
loco-rails-1.0.1 test/dummy/app/assets/javascripts/views/admin/users/list.coffee
loco-rails-1.0.0 test/dummy/app/assets/javascripts/views/admin/users/list.coffee