From ace935fd2793b09925ab4b8a6b352585b5bdf3d2 Mon Sep 17 00:00:00 2001
From: Stefan Wintermeyer
- {{#each phoneNumber in switchboardEntry.sipAccount.phoneNumberShortList}} - - {{phoneNumber.number}} - - {{/each}} -
- {{else}} -+ {{#if switchboardEntry.sipAccount.is_registrated}} + {{#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}} + + {{#if switchboardEntry.sipAccount.calls.length}} ++ {{#each call in switchboardEntry.sipAccount.calls}} + + {{#if call.isRinging}}{{/if}} + von {{call.b_caller_id_number}} an {{call.destination}} + + {{/each}} +
+ {{/if}} + {{else}} +{{#each phoneNumber in switchboardEntry.sipAccount.phoneNumberShortList}} {{phoneNumber.number}} - - {{#if dispatchableIncomingCalls.length}} -
- {{#each dispatchableIncomingCall in dispatchableIncomingCalls}} - - - {{/each}} -
- {{/if}} {{/each}} - - {{/if}} - - {{#if switchboardEntry.sipAccount.calls.length}} -- {{#each call in switchboardEntry.sipAccount.calls}} - - {{#if call.isRinging}}{{/if}} - von {{call.b_caller_id_number}} an {{call.destination}} - - {{/each}} -
- {{/if}} + ++ + offline + +
+ {{/if}} diff --git a/public/js/app.js b/public/js/app.js index 531e4b8..6d4ba65 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -127,6 +127,7 @@ App.SipAccount = DS.Model.extend({ phoneNumbers: DS.hasMany('App.PhoneNumber'), callerName: DS.attr('string'), authName: DS.attr('string'), + is_registrated: DS.attr('boolean'), phoneNumberShortList: Ember.computed(function() { var phoneNumbers = this.get('phoneNumbers'); -- cgit v1.2.3