Skip to content
Snippets Groups Projects
Commit 9c23c887 authored by farhatahmad's avatar farhatahmad Committed by Jesus Federico
Browse files

Added a env variable to toggle visibilty of the customize tab in user settings (#369)

parent c38032ac
No related branches found
No related tags found
No related merge requests found
......@@ -30,9 +30,11 @@
</button>
<% end %>
<% if Rails.configuration.allow_custom_branding %>
<button id="design" class="list-group-item list-group-item-action setting-btn <%= "active" if params[:setting] == "design"%>">
<span class="icon mr-3"><i class="fas fa-edit"></i></span><%= t("settings.design.title") %>
</button>
<% end %>
<button id="delete" class="list-group-item list-group-item-action setting-btn <%= "active" if params[:setting] == "delete"%>">
<span class="icon mr-3"><i class="fas fa-trash-alt"></i></span><%= t("settings.delete.title") %>
......@@ -61,7 +63,9 @@
<%= render "shared/settings/setting_view", setting_id: "password", setting_title: t("settings.password.subtitle") %>
<% end %>
<% if Rails.configuration.allow_custom_branding %>
<%= render "shared/settings/setting_view", setting_id: "design", setting_title: t("settings.design.subtitle") %>
<% end %>
<%= render "shared/settings/setting_view", setting_id: "delete", setting_title: t("settings.delete.subtitle") %>
</div>
......
......@@ -81,6 +81,9 @@ module Greenlight
# Configure custom branding image.
config.branding_image = ENV['BRANDING_IMAGE'] || "https://raw.githubusercontent.com/bigbluebutton/greenlight/master/app/assets/images/logo_with_text.png"
# Show/Hide cutomization tab in user settings
config.allow_custom_branding = (ENV['ALLOW_CUSTOM_BRANDING'] == "true")
# Enable/disable recording thumbnails.
config.recording_thumbnails = (ENV['RECORDING_THUMBNAILS'] != "false")
......
......@@ -111,6 +111,10 @@ RELATIVE_URL_ROOT=/b
# By default, this is the BigBlueButton logo.
BRANDING_IMAGE=
# Shows/Hides a tab in User Settings which allows the user to customize their own instance of GreenLight
# Customization is currently unimplemented, so this will default to false
ALLOW_CUSTOM_BRANDING=false
# Specify which settings you would like the users to configure on room creation
# or edit after the room has been created
# By default, all settings are turned OFF.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment