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