2011-12-07 01:09:13 +00:00
|
|
|
#= require ../shared/list_view
|
2011-12-06 11:39:32 +00:00
|
|
|
|
2011-12-07 01:09:13 +00:00
|
|
|
Locomotive.Views.Snippets ||= {}
|
2011-12-06 11:39:32 +00:00
|
|
|
|
2011-12-07 01:09:13 +00:00
|
|
|
class Locomotive.Views.Snippets.ListView extends Locomotive.Views.Shared.ListView
|
2011-12-06 11:39:32 +00:00
|
|
|
|
|
|
|
className: 'box'
|
|
|
|
|
|
|
|
initialize: ->
|
|
|
|
@collection = new Locomotive.Models.SnippetsCollection(@options.collection)
|
|
|
|
super
|
|
|
|
|
2011-12-07 01:09:13 +00:00
|
|
|
template: ->
|
|
|
|
ich.snippets_list
|
2011-12-06 11:39:32 +00:00
|
|
|
|
2011-12-07 01:09:13 +00:00
|
|
|
item_view_class: ->
|
|
|
|
Locomotive.Views.Snippets.ListItemView
|