From 29213546a4468aa4a853dee8091bbd556f7d0f51 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Thu, 27 Jun 2013 13:41:28 +0200 Subject: Fixed show_avatar in the switchboard#show --- app/serializers/switchboard_serializer.rb | 2 +- app/views/switchboards/show.html.erb | 5 ++++- public/js/app.js | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/serializers/switchboard_serializer.rb b/app/serializers/switchboard_serializer.rb index c1cc0fe..7ad7792 100644 --- a/app/serializers/switchboard_serializer.rb +++ b/app/serializers/switchboard_serializer.rb @@ -1,7 +1,7 @@ class SwitchboardSerializer < ActiveModel::Serializer embed :ids, :include => true - attributes :id, :name, :blind_transfer_activated, :attended_transfer_activated + attributes :id, :name, :show_avatars, :blind_transfer_activated, :attended_transfer_activated has_many :switchboard_entries has_many :sip_accounts, :through => :switchboard_entries has_many :phone_numbers diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb index 61adde7..3bc4da4 100644 --- a/app/views/switchboards/show.html.erb +++ b/app/views/switchboards/show.html.erb @@ -26,12 +26,15 @@ {{/each}} {{/if}} + {{#if switchboardEntrys.length}}