43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
<tr>
|
|
<td>
|
|
<div><%= recording[:name] %></div>
|
|
<div class="small text-muted">
|
|
<%= t("recording.recorded_on", date: recording_date(recording[:startTime])) %>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<% p = recording[:playbacks].find do |p| p[:type] == "presentation" end %>
|
|
<% if p %>
|
|
<% p[:preview][:images][:image].each do |img| %>
|
|
<%= image_tag(img[:content].strip, class: "thumbnail px-2") %>
|
|
<% end %>
|
|
<% end %>
|
|
</td>
|
|
<td class="text-left">
|
|
<div class="small text-muted text-uppercase">
|
|
<%= t("recording.table.length") %>
|
|
</div>
|
|
<%= recording_length(recording[:startTime], recording[:endTime]) %>
|
|
</td>
|
|
<td class="text-left">
|
|
<div class="small text-muted text-uppercase">
|
|
<%= t("recording.table.users") %>
|
|
</div>
|
|
<%= recording[:participants] %>
|
|
</td>
|
|
<td class="text-left">
|
|
<div class="dropdown">
|
|
<% if recording[:metadata][:"gl-listed"] == "true" %>
|
|
<i class="dropdown-icon fas fa-globe px-2"></i> <%= t("recording.visibility.public") %>
|
|
<% else %>
|
|
<i class="dropdown-icon fas fa-link px-2"></i> <%= t("recording.visibility.unlisted") %>
|
|
<% end %>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<% recording[:playbacks].each do |p| %>
|
|
<%= link_to p[:type].capitalize, p[:url], class: "btn btn-sm btn-primary", target: "_blank" %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|