Improved caller log view.

This commit is contained in:
Martin Edenhofer 2016-05-03 13:41:04 +02:00
parent 5385d5da89
commit a4a9433d2b
3 changed files with 27 additions and 5 deletions

View file

@ -167,6 +167,17 @@ job_integration_clearbit:
- ruby -I test test/integration/clearbit_test.rb
- rake db:drop
job_integration_sipgate:
stage: test
tags:
- core
script:
- export RAILS_ENV=test
- rake db:create
- rake db:migrate
- ruby -I test test/integration/sipgate_controller_test.rb
- rake db:drop
job_integration_es_mysql:
stage: test
tags:

View file

@ -38,11 +38,16 @@
<% end %>
<% end %>
<% end %>
<% if !shown: %>
<% if !shown && item.from_comment: %>
<% shown = true %>
<% if item.from_comment: %><%= item.from_comment %><% end %>
<br>
<% end %>
<small><%= item.from %></small>
<% if shown: %>
<small><%= item.from %></small>
<% else: %>
<%= item.from %>
<% end %>
</td>
<td>
<% shown = false %>
@ -59,11 +64,16 @@
<% end %>
<% end %>
<% end %>
<% if !shown: %>
<% if !shown && item.to_comment: %>
<% shown = true %>
<% if item.to_comment: %><%= item.to_comment %><% end %>
<br>
<% end %>
<small><%= item.to %></small>
<% if shown: %>
<small><%= item.to %></small>
<% else: %>
<%= item.to %>
<% end %>
</td>
<td style="vertical-align: middle">
<% if item.state_human: %>

View file

@ -12,7 +12,8 @@ class CreateCtiLog < ActiveRecord::Migration
t.timestamp :start, null: true
t.timestamp :end, null: true
t.boolean :done, null: false, default: true
t.timestamps null: false
t.text :preferences, limit: 500.kilobytes + 1, null: true
t.timestamps null: false
end
add_index :cti_logs, [:call_id], unique: true
add_index :cti_logs, [:direction]