This repository has been archived on 2021-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
greenlight/app/views/rooms/show.html.erb

70 lines
3.0 KiB
Plaintext
Raw Normal View History

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/>.
%>
2018-06-13 15:51:10 -04:00
<div class="background pb-1">
2018-05-31 16:54:48 -04:00
<div class="container">
2018-06-01 11:55:52 -04:00
<div class="row pt-9">
2018-05-31 16:54:48 -04:00
<div class="col-lg-9 col-sm-12">
2018-06-01 17:28:39 -04:00
<h1 id="user-text" class="display-3 text-left mb-3 font-weight-400"><%= @room.name %>
2018-05-31 22:15:18 -04:00
<% if current_user.main_room == @room %>
2018-06-13 15:51:10 -04:00
<i class="fas fa-home align-top home-indicator"></i>
2018-05-31 22:15:18 -04:00
<% end %>
</h1>
2018-07-17 11:57:49 -04:00
<h4 class="text-left mb-6"><%= @room.sessions %> <%= t("room.sessions") %> | <%= @recordings.length %> <%= t("room.recordings") %></h4>
<label class="form-label"><%= t("room.invite_participants") %></label>
2018-05-31 16:54:48 -04:00
<form class="form-inline">
2018-06-13 15:51:10 -04:00
<div class="input-icon invite-link-input">
2018-05-31 16:54:48 -04:00
<span class="input-icon-addon">
2018-06-20 15:18:05 -04:00
<i class="fas fa-link"></i>
2018-05-31 16:54:48 -04:00
</span>
2018-06-13 15:51:10 -04:00
<input id="invite-url" type="text" class="form-control w-100" value="<%= request.base_url + @room.invite_path %>" readonly="">
2018-05-31 16:54:48 -04:00
</div>
<div id="copy" class="btn btn-primary mx-2">
<i class="fas fa-copy"></i>
2018-07-17 11:57:49 -04:00
<%= t("copy") %>
2018-05-31 16:54:48 -04:00
</div>
</form>
</div>
2018-06-13 15:51:10 -04:00
<div class="col-lg-3 col-sm-12 force-bottom mt-5">
2018-06-07 16:39:25 -04:00
<% if @is_running %>
2018-07-17 11:57:49 -04:00
<%= button_to t("room.join"), room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
2018-06-07 16:39:25 -04:00
<% else %>
2018-07-17 11:57:49 -04:00
<%= button_to t("room.start"), start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
2018-06-07 16:39:25 -04:00
<% end %>
2018-05-31 16:54:48 -04:00
</div>
2018-05-31 15:04:18 -04:00
</div>
2018-05-07 16:06:01 -04:00
2018-06-11 17:32:08 -04:00
<div class="row pt-7 pb-2">
2018-06-01 17:28:39 -04:00
<% if current_user.rooms.length > 1 %>
2018-06-13 13:27:29 -04:00
<div class="col-lg-4 col-md-6 col-sm-12">
<%= link_to current_user.main_room do %>
<%= render "shared/components/room_block", room: current_user.main_room %>
<% end %>
</div>
<% current_user.secondary_rooms.each do |room| %>
2018-06-01 17:28:39 -04:00
<div class="col-lg-4 col-md-6 col-sm-12">
<%= link_to room do %>
<%= render "shared/components/room_block", room: room %>
<% end %>
</div>
2018-07-04 15:20:12 -04:00
<%= render "shared/modals/delete_room_modal", room: room %>
2018-06-01 17:28:39 -04:00
<% end %>
2018-05-31 16:54:48 -04:00
<% end %>
</div>
2018-05-31 15:04:18 -04:00
</div>
</div>
2018-05-07 16:06:01 -04:00
2018-06-12 17:28:02 -04:00
<%= render "shared/sessions", recordings: @recordings, only_public: false %>