summaryrefslogtreecommitdiff
path: root/app/views/conferences/_index_members.html.haml
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-19 01:57:10 -0400
committerPeter Kozak <spag@golwen.net>2013-03-19 01:57:10 -0400
commit2470988e06ff861c92d3dc833755f4b262798a12 (patch)
treea8f2bda8b4ccdbe1ad56cb69fcaae38380a508bb /app/views/conferences/_index_members.html.haml
parent60cfb6fce49928c7ff45c3e4a58dd7c55dd08f00 (diff)
members list view added
Diffstat (limited to 'app/views/conferences/_index_members.html.haml')
-rw-r--r--app/views/conferences/_index_members.html.haml40
1 files changed, 40 insertions, 0 deletions
diff --git a/app/views/conferences/_index_members.html.haml b/app/views/conferences/_index_members.html.haml
new file mode 100644
index 0000000..3837f25
--- /dev/null
+++ b/app/views/conferences/_index_members.html.haml
@@ -0,0 +1,40 @@
+%table.table.table-striped
+ %thead
+ %tr
+ %th= t('conferences.index_members.caller')
+ %th= t('conferences.index_members.join_time')
+ %th= t('conferences.index_members.talking')
+ %th= t('conferences.index_members.flags')
+
+
+ %tbody
+ - for member in members
+ %tr
+ %td
+ -if member[:call]
+ - if member[:call_bleg]
+ = member[:call].b_caller_id_name
+ = member[:call].b_caller_id_number
+ - else
+ = member[:call].caller_id_name
+ = member[:call].caller_id_number
+ %td
+ = member['join_time']
+ %td
+ = member['flags']['talking']
+ %td
+ - if member['flags']['can_hear'] == 'true'
+ %span.label
+ = t('conferences.index_members.can_hear')
+ - if member['flags']['can_speak'] == 'true'
+ %span.label
+ = t('conferences.index_members.can_speak')
+ - if member['flags']['is_moderator'] == 'true'
+ %span.label
+ = t('conferences.index_members.moderator')
+ - if member['flags']['has_floor'] == 'true'
+ %span.label
+ = t('conferences.index_members.has_floor')
+ - if member['flags']['has_video'] == 'true'
+ %span.label
+ = t('conferences.index_members.video')