forked from External/greenlight
67 lines
3.1 KiB
Plaintext
67 lines
3.1 KiB
Plaintext
<%
|
|
# BigBlueButton open source conferencing system - http://www.bigbluebutton.org/.
|
|
# Copyright (c) 2018 BigBlueButton Inc. and by respective authors (see below).
|
|
# This program is free software; you can redistribute it and/or modify it under the
|
|
# terms of the GNU Lesser General Public License as published by the Free Software
|
|
# Foundation; either version 3.0 of the License, or (at your option) any later
|
|
# version.
|
|
#
|
|
# BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
# PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
|
# You should have received a copy of the GNU Lesser General Public License along
|
|
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|
%>
|
|
|
|
<div id="<%= if room == current_user.main_room then 'home_room_block' else 'room-block' end %>" data-room-uid="<%= room.uid %>" data-room-settings=<%= room.room_settings %> data-room-access-code="<%= room.access_code %>" class="card">
|
|
<div class="card-body p-1">
|
|
<table class="table table-hover table-vcenter text-wrap table-no-border">
|
|
<tbody class="no-border-top">
|
|
<td>
|
|
<span class="stamp stamp-md bg-primary">
|
|
<% if room == current_user.main_room %>
|
|
<i class="fas fa-home"></i>
|
|
<% else %>
|
|
<i class="fas fa-chalkboard-teacher"></i>
|
|
<% end %>
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<div id="room-name">
|
|
<% if room == current_user.main_room %>
|
|
<h4 contenteditable="false" class="m-0 force-text-normal" ><%= t("home_room") %></h4>
|
|
<% else %>
|
|
<h4 contenteditable="false" class="m-0 force-text-normal" ><%= room.name %></h4>
|
|
<% end %>
|
|
</div>
|
|
<div id="room-name-editable" style="display: none">
|
|
<input id="room-name-editable-input" class="form-control input-sm w-100 h-4" value="<%= room.name %>">
|
|
</div>
|
|
<div class="small text-muted">
|
|
<% if room.sessions > 0 %>
|
|
<i><%= t("room.last_session", session: recording_date(room.last_session)) %></i>
|
|
<% else %>
|
|
<i><%= t("room.no_sessions") %></i>
|
|
<% end %>
|
|
</div>
|
|
</td>
|
|
<td class="text-right">
|
|
<div class="item-action dropdown">
|
|
<a href="javascript:void(0)" data-toggle="dropdown" class="icon <%= 'invisible' if room == current_user.main_room %>">
|
|
<i class="fas fa-ellipsis-v px-4"></i>
|
|
</a>
|
|
<div class="dropdown-menu">
|
|
<a href="" data-toggle="modal" data-target="#createRoomModal" class="update-room dropdown-item">
|
|
<i class="dropdown-icon fas fa-cog"></i> <%= t("room.settings") %>
|
|
</a>
|
|
<a href="" data-toggle="modal" data-target="#deleteRoomModal_<%= room.uid %>"class="dropdown-item">
|
|
<i class="dropdown-icon far fa-trash-alt"></i> <%= t("delete") %>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|