summaryrefslogtreecommitdiff
path: root/app/views/switchboards/show.html.erb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-06-22 10:22:48 +0200
committerPeter Kozak <spag@golwen.net>2013-06-22 10:22:48 +0200
commit08ecc91d89a2b6a83daee4a1ffda5520e38e53c6 (patch)
tree2f15799d3948eaa26abacef033c687b4362f602b /app/views/switchboards/show.html.erb
parentd21bf5513aa28187deb6b6c1ba21635b97ff82a4 (diff)
parent4ce04ec03bc8f362d48ded43833645e7f454cb5c (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/views/switchboards/show.html.erb')
-rw-r--r--app/views/switchboards/show.html.erb22
1 files changed, 11 insertions, 11 deletions
diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb
index 2a2765f..4877613 100644
--- a/app/views/switchboards/show.html.erb
+++ b/app/views/switchboards/show.html.erb
@@ -26,16 +26,27 @@
{{avatar_img switchboardEntry.avatar_src}}
<small>
<p>
+ {{#if switchboardEntry.name}}
<span class="label">{{switchboardEntry.name}}</span>
+ {{/if}}
{{#each phoneNumber in switchboardEntry.sipAccount.phoneNumberShortList}}
<span class="label">
{{phoneNumber.number}}
</span>
+
+ {{#if activeCalls.length}}
+ <p>
+ {{#each activeCall in activeCalls}}
+ <button {{action transfer_blind activeCall.id phoneNumber.number}} class="btn btn-small">Blind Transfer ({{activeCall.b_caller_id_number}})</button>
+ {{/each}}
+ </p>
+ {{/if}}
{{/each}}
</p>
{{show_callstate switchboardEntry.callstate}}
+
{{#if switchboardEntry.sipAccount.calls.length}}
<p>
Anrufe:
@@ -51,17 +62,6 @@
</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>
</div>
</li>