summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-27 13:41:28 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-27 13:41:28 +0200
commit29213546a4468aa4a853dee8091bbd556f7d0f51 (patch)
tree061431ee9e05e11053b0f56d34490d460f3d9b40 /app/views
parent7ffb10465ecdbd96fc3c3ba9d8df92485f787e62 (diff)
Fixed show_avatar in the switchboard#show
Diffstat (limited to 'app/views')
-rw-r--r--app/views/switchboards/show.html.erb5
1 files changed, 4 insertions, 1 deletions
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}}
<ul class="thumbnails">
{{#each switchboardEntry in switchboardEntrys}}
<li class="span2">
<div class="thumbnail">
- {{avatar_img switchboardEntry.avatar_src}}
+ {{#if switchboardEntry.switchboard.show_avatars}}
+ {{avatar_img switchboardEntry.avatar_src}}
+ {{/if}}
<small>
<p></p>
{{#if switchboardEntry.name}}