From a24aee0fdfcbbc2200ad05ee5b789aec5988f1ad Mon Sep 17 00:00:00 2001
From: Stefan Wintermeyer
Date: Mon, 24 Jun 2013 16:43:42 +0200
Subject: First step to provide an attended transfer.
---
app/views/switchboards/show.html.erb | 1 +
1 file changed, 1 insertion(+)
(limited to 'app/views')
diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb
index 1a8e5a0..f3304cf 100644
--- a/app/views/switchboards/show.html.erb
+++ b/app/views/switchboards/show.html.erb
@@ -50,6 +50,7 @@
{{#each activeCall in activeCalls}}
+
{{/each}}
{{/if}}
--
cgit v1.2.3
From 14da4be11fe13d4fcd55143c39b73c0d086b901b Mon Sep 17 00:00:00 2001
From: Stefan Wintermeyer
Date: Tue, 25 Jun 2013 13:09:07 +0200
Subject: Show transfer buttons only for switchable incoming calls.
---
app/views/switchboards/show.html.erb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'app/views')
diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb
index f3304cf..69b0ed6 100644
--- a/app/views/switchboards/show.html.erb
+++ b/app/views/switchboards/show.html.erb
@@ -46,11 +46,11 @@
{{phoneNumber.number}}
- {{#if activeCalls.length}}
+ {{#if dispatchableIncomingCalls.length}}
- {{#each activeCall in activeCalls}}
-
-
+ {{#each dispatchableIncomingCall in dispatchableIncomingCalls}}
+
+
{{/each}}
{{/if}}
--
cgit v1.2.3
From 1c6646bc732def369e54ef4ac576d748c6ba9c92 Mon Sep 17 00:00:00 2001
From: Stefan Wintermeyer
Date: Tue, 25 Jun 2013 13:19:26 +0200
Subject: GUI improvements.
---
app/views/switchboards/show.html.erb | 40 ++++++++++++++++++++++--------------
1 file changed, 25 insertions(+), 15 deletions(-)
(limited to 'app/views')
diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb
index 69b0ed6..b390ce5 100644
--- a/app/views/switchboards/show.html.erb
+++ b/app/views/switchboards/show.html.erb
@@ -40,22 +40,32 @@
{{/if}}
-
- {{#each phoneNumber in switchboardEntry.sipAccount.phoneNumberShortList}}
-
- {{phoneNumber.number}}
-
+ {{#if switchboardEntry.switchable}}
+
+ {{#each phoneNumber in switchboardEntry.sipAccount.phoneNumberShortList}}
+
+ {{phoneNumber.number}}
+
+ {{/each}}
+
+ {{else}}
+
+ {{#each phoneNumber in switchboardEntry.sipAccount.phoneNumberShortList}}
+
+ {{phoneNumber.number}}
+
- {{#if dispatchableIncomingCalls.length}}
-
- {{#each dispatchableIncomingCall in dispatchableIncomingCalls}}
-
-
- {{/each}}
-
- {{/if}}
- {{/each}}
-
+ {{#if dispatchableIncomingCalls.length}}
+
+ {{#each dispatchableIncomingCall in dispatchableIncomingCalls}}
+
+
+ {{/each}}
+
+ {{/if}}
+ {{/each}}
+
+ {{/if}}
{{#if switchboardEntry.sipAccount.calls.length}}
--
cgit v1.2.3