mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-02 15:09:58 +00:00
45 lines
1.2 KiB
CoffeeScript
45 lines
1.2 KiB
CoffeeScript
define ['backbone', 'models/user/userItem', 'app.lib/backbone.dss.model.collection'], \
|
|
(Backbone, UserItem, DssCollection) ->
|
|
class UserCollection extends DssCollection
|
|
model: UserItem
|
|
url:com.podnoms.settings.urlRoot + "user/"
|
|
|
|
_columns: [
|
|
property: 'toponymName'
|
|
label: 'Name'
|
|
sortable: true
|
|
,
|
|
property: 'uploads'
|
|
label: 'Uploads'
|
|
sortable: true
|
|
,
|
|
property: 'likes'
|
|
label: 'Likes'
|
|
sortable: true
|
|
,
|
|
property: 'favourites'
|
|
label: 'Favourites'
|
|
sortable: true
|
|
,
|
|
property: 'followers'
|
|
label: 'Followers'
|
|
sortable: true
|
|
,
|
|
property: 'following'
|
|
label: 'Following'
|
|
sortable: true
|
|
,
|
|
property: 'lastseen'
|
|
label: 'Last seen'
|
|
sortable: true
|
|
]
|
|
|
|
columns: ->
|
|
@_columns
|
|
|
|
data: ->
|
|
@toJSON
|
|
|
|
UserCollection
|
|
|