Improved history view.

This commit is contained in:
Martin Edenhofer 2012-08-08 02:01:42 +02:00
parent e577daaae8
commit 0186c8f70d

View file

@ -38,23 +38,9 @@ class App.TicketHistory extends App.ControllerModal
render: -> render: ->
# create table/overview @html App.view('agent_ticket_history')(
table = @table(
overview_extended: [
{ name: 'history_type', },
{ name: 'history_attribute', },
{ name: 'value_from', },
{ name: 'value_to', },
{ name: 'created_by', class: 'user-data', data: { id: 1 } },
{ name: 'created_at', callback: @humanTime },
],
model: App.History,
objects: App.History.all(), objects: App.History.all(),
) )
@html App.view('agent_ticket_history')()
@el.find('.table_history').append(table)
@modalShow() @modalShow()
@userPopups() @userPopups()