2018-08-01 09:45:12 -04:00
|
|
|
<%
|
|
|
|
# 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/>.
|
|
|
|
%>
|
|
|
|
|
2021-03-14 14:24:30 -04:00
|
|
|
<div data-path="<%= update_settings_path(room) %>" data-room-access-code="<%= room.access_code %>" data-room-moderator-access-code="<%= room.moderator_access_code %>" class="card room-block">
|
2018-05-29 15:28:29 -04:00
|
|
|
<div class="card-body p-1">
|
2018-10-03 14:08:50 -04:00
|
|
|
<table class="table table-hover table-vcenter text-wrap table-no-border">
|
2018-06-13 15:51:10 -04:00
|
|
|
<tbody class="no-border-top">
|
|
|
|
<td>
|
2019-05-03 13:05:12 -04:00
|
|
|
<span class="stamp stamp-md bg-primary">
|
2018-05-31 22:15:18 -04:00
|
|
|
<% if room == current_user.main_room %>
|
|
|
|
<i class="fas fa-home"></i>
|
|
|
|
<% else %>
|
2018-06-01 14:20:40 -04:00
|
|
|
<i class="fas fa-chalkboard-teacher"></i>
|
2018-05-31 22:15:18 -04:00
|
|
|
<% end %>
|
2018-05-31 15:04:18 -04:00
|
|
|
</span>
|
2018-05-29 15:28:29 -04:00
|
|
|
</td>
|
2018-06-13 15:51:10 -04:00
|
|
|
<td>
|
2020-04-16 11:21:57 -04:00
|
|
|
<div>
|
2021-01-18 17:45:54 -05:00
|
|
|
<h4 contenteditable="false" class="m-0 force-text-normal room-name-text text-break" ><%= room.name %></h4>
|
2018-12-04 10:48:51 -05:00
|
|
|
</div>
|
2020-04-16 11:21:57 -04:00
|
|
|
<div style="display: none">
|
|
|
|
<input class="form-control input-sm w-100 h-4 room-name-editable" value="<%= room.name %>">
|
2018-12-04 10:48:51 -05:00
|
|
|
</div>
|
2018-05-29 15:28:29 -04:00
|
|
|
<div class="small text-muted">
|
2018-06-07 15:52:42 -04:00
|
|
|
<% if room.sessions > 0 %>
|
2021-01-17 14:48:51 -05:00
|
|
|
<i><%= t("room.last_session", session: view_date(room.last_session)).html_safe %></i>
|
2018-06-07 15:52:42 -04:00
|
|
|
<% else %>
|
2018-07-17 11:57:49 -04:00
|
|
|
<i><%= t("room.no_sessions") %></i>
|
2018-06-07 15:52:42 -04:00
|
|
|
<% end %>
|
2018-05-29 15:28:29 -04:00
|
|
|
</div>
|
|
|
|
</td>
|
2020-04-16 11:21:57 -04:00
|
|
|
<td class="text-right">
|
2020-02-11 13:47:11 -05:00
|
|
|
<div class="item-action dropdown" data-display="static">
|
2020-04-16 11:21:57 -04:00
|
|
|
<a href="#" data-toggle="dropdown" data-display="static" class="icon">
|
2020-02-11 13:47:11 -05:00
|
|
|
<i class="fas fa-ellipsis-v px-4"></i>
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right dropdown-menu-md-left">
|
2020-02-21 09:20:22 -05:00
|
|
|
<a href="" data-toggle="modal" data-target="#createRoomModal" class="update-room dropdown-item" data-settings-path="<%= room_settings_path(room) %>">
|
2020-02-11 13:47:11 -05:00
|
|
|
<i class="dropdown-icon fas fa-cog"></i> <%= t("room.settings") %>
|
2018-07-24 14:55:54 -04:00
|
|
|
</a>
|
2020-07-29 11:03:22 -04:00
|
|
|
<% if preupload_allowed? %>
|
|
|
|
<a href="" data-toggle="modal" data-target="#preuploadPresentationModal" class="preupload-room dropdown-item" data-path="<%= preupload_presentation_path(room) %>" data-settings-path="<%= current_presentation_path(room) %>" data-remove="<%= remove_presentation_path(room) %>">
|
|
|
|
<i class="dropdown-icon fas fa-file-upload"></i> <%= t("room.add_presentation") %>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
2020-02-11 13:47:11 -05:00
|
|
|
<% if shared_access_allowed %>
|
2021-01-18 18:34:42 -05:00
|
|
|
<a href="" data-toggle="modal" data-target="#shareRoomModal" class="share-room dropdown-item" data-path="<%= room_shared_access_path(room) %>" data-users-path="<%= room_shared_users_path(room) %>" data-owner="<%= room.owner.uid %>">
|
2020-02-11 13:47:11 -05:00
|
|
|
<i class="dropdown-icon fas fa-users"></i> <%= t("room.share") %>
|
2020-01-23 09:04:41 -05:00
|
|
|
</a>
|
2020-02-11 13:47:11 -05:00
|
|
|
<% end %>
|
2020-02-24 12:31:30 -05:00
|
|
|
<% unless room == current_user.main_room %>
|
2020-02-14 09:47:17 -05:00
|
|
|
<a href="" data-toggle="modal" data-target="#deleteRoomModal" data-path="<%= room_path(room) %>" data-name="<%= room.name %>" class="delete-room dropdown-item">
|
|
|
|
<i class="dropdown-icon far fa-trash-alt"></i> <%= t("delete") %>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
2018-05-29 15:28:29 -04:00
|
|
|
</div>
|
2020-04-16 11:21:57 -04:00
|
|
|
</div>
|
2018-05-29 15:28:29 -04:00
|
|
|
</td>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|