summaryrefslogtreecommitdiff
path: root/app/views/switchboards/show.html.erb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-05-24 16:45:28 +0200
committerPeter Kozak <spag@golwen.net>2013-05-24 16:45:28 +0200
commitd323e95480e675c01c1c5c9fdfb25083c448de7f (patch)
treeaa85ccccccf44a5ab2304dfe385bfef58db6447d /app/views/switchboards/show.html.erb
parentffd1deac7e54df6892a1d6393dda1919b571c919 (diff)
switchboard calls
Diffstat (limited to 'app/views/switchboards/show.html.erb')
-rw-r--r--app/views/switchboards/show.html.erb48
1 files changed, 37 insertions, 11 deletions
diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb
index a240b55..2a2765f 100644
--- a/app/views/switchboards/show.html.erb
+++ b/app/views/switchboards/show.html.erb
@@ -11,7 +11,7 @@
<div class='span12'>
<div id='emberjs-container'></div>
- <script type="text/x-handlebars" data-template-name="application">
+ <script type="text/x-handlebars">
{{outlet}}
</script>
@@ -24,19 +24,45 @@
<li class="span2">
<div class="thumbnail">
{{avatar_img switchboardEntry.avatar_src}}
- <p>
<small>
- {{switchboardEntry.name}}<br>
-
- {{#each phoneNumber in switchboardEntry.sipAccount.phoneNumberShortList}}
- <span class="label">
- {{phoneNumber.number}}
- </span>
- {{/each}}
- <br>
+ <p>
+ <span class="label">{{switchboardEntry.name}}</span>
+
+ {{#each phoneNumber in switchboardEntry.sipAccount.phoneNumberShortList}}
+ <span class="label">
+ {{phoneNumber.number}}
+ </span>
+ {{/each}}
+ </p>
+
{{show_callstate switchboardEntry.callstate}}
+ {{#if switchboardEntry.sipAccount.calls.length}}
+ <p>
+ Anrufe:
+ <br>
+ {{#each call in switchboardEntry.sipAccount.calls}}
+ <span {{bindAttr class=":label call.isActive:label-success"}}>
+ {{call.b_caller_id_number}} -> {{call.destination}}
+ {{#if call.isActive}}
+ *
+ {{/if}}
+ </span>
+ {{/each}}
+ </p>
+ {{/if}}
+
+ {{#if activeCalls.length}}
+ <p>
+ Verbinden mit:
+ <br>
+ {{#each activeCall in activeCalls}}
+ <button {{action blind_transfer}}>
+ {{activeCall.b_caller_id_number}}
+ </button>
+ {{/each}}
+ </p>
+ {{/if}}
</small>
- </p>
</div>
</li>
{{/each}}