Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Greenlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arbeitsgruppe Hardwarenahe IT-Systeme
Greenlight
Commits
9c23c887
Commit
9c23c887
authored
Feb 15, 2019
by
farhatahmad
Committed by
Jesus Federico
Feb 15, 2019
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/views/users/edit.html.erb
+8
-4
8 additions, 4 deletions
app/views/users/edit.html.erb
config/application.rb
+3
-0
3 additions, 0 deletions
config/application.rb
sample.env
+4
-0
4 additions, 0 deletions
sample.env
with
15 additions
and
4 deletions
app/views/users/edit.html.erb
+
8
−
4
View file @
9c23c887
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
config/application.rb
+
3
−
0
View file @
9c23c887
...
...
@@ -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"
)
...
...
This diff is collapsed.
Click to expand it.
sample.env
+
4
−
0
View file @
9c23c887
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment