diff options
author | Peter Kozak <spag@golwen.net> | 2013-02-27 06:04:50 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-02-27 06:04:50 -0500 |
commit | ed0117210837dd1d0d2dbf403799b70225caf0cd (patch) | |
tree | c7f27eba275bbedf0505e9078592f562f37e2bbe /app/views/calls/_index_core.html.haml | |
parent | 22eb173c74893114350e4b5351a58b48673f63b3 (diff) |
calls views added
Diffstat (limited to 'app/views/calls/_index_core.html.haml')
-rw-r--r-- | app/views/calls/_index_core.html.haml | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/app/views/calls/_index_core.html.haml b/app/views/calls/_index_core.html.haml index 10f79f1..e5b769e 100644 --- a/app/views/calls/_index_core.html.haml +++ b/app/views/calls/_index_core.html.haml @@ -1,10 +1,38 @@ %table.table.table-striped %thead %tr - %th= t('calls.index.uuid') + %th + %th= t('calls.index.created') + %th= t('calls.index.destination') + %th= t('calls.index.caller') + %th= t('calls.index.callee') + %th= t('calls.index.callstate') + %th= t('calls.index.codecs') + %th %tbody - - for call in @calls + - for call in calls %tr %td - = call.uuid + - if call.direction == 'inbound' + %i.icon-arrow-left + - else + %i.icon-arrow-right + %td + = call.created + %td + = call.dest + %td + = "#{call.cid_name} #{call.cid_num}" + %td + = "#{call.callee_name} #{call.callee_num}" + %td + = call.callstate + %td + = "#{call.read_codec}/#{call.write_codec}" + + %td + %p + %a.btn.btn-small.btn-danger{'data-confirm' => t('calls.index.actions.confirm_destroy'), 'data-method' => 'delete', :href => method( :"#{parent.class.name.underscore}_call_path" ).(parent, call), :rel => 'nofollow'} + %i.icon-trash.icon-white + =t('calls.index.actions.destroy') |