add participants to recordings table

This commit is contained in:
Zachary Chai
2017-02-16 11:44:46 -05:00
parent 47464d35b2
commit 4d1bbe76a3
4 changed files with 24 additions and 11 deletions

View File

@ -25,6 +25,11 @@ json.recordings do
json.published recording[:published]
json.length recording[:length]
json.listed recording[:listed]
if recording[:participants].is_a? String
json.participants recording[:participants]
else
json.participants nil
end
json.previews do
json.array!(recording[:previews]) do |preview|
json.partial! 'preview', preview: preview

View File

@ -35,6 +35,7 @@
<th><%= t('name') %></th>
<th><%= t('thumbnails') %></th>
<th><%= t('duration') %></th>
<th><%= t('participants') %></th>
<th></th>
<th><%= t('visibility') %></th>
<th>published</th>