forked from External/greenlight
make help link configurable (#1161)
* make help link configurable * change default help url * use default help url in setups without env var Co-authored-by: Jesus Federico <jesus@123it.ca>
This commit is contained in:
parent
a06da481db
commit
21cb768fc4
|
@ -81,9 +81,11 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="http://docs.bigbluebutton.org/install/greenlight-v2.html" target="_blank" rel="noopener">
|
||||
<i class="dropdown-icon far fa-question-circle"></i> <%= t("header.dropdown.help") %>
|
||||
</a>
|
||||
<% if Rails.configuration.help_url.present? %>
|
||||
<a class="dropdown-item" href="<%= Rails.configuration.help_url %>" target="_blank" rel="noopener">
|
||||
<i class="dropdown-icon far fa-question-circle"></i> <%= t("header.dropdown.help") %>
|
||||
</a>
|
||||
<% end %>
|
||||
<% if Rails.configuration.report_issue_url.present? %>
|
||||
<a class="dropdown-item" href="<%= Rails.configuration.report_issue_url %>" target="_blank" rel="noopener">
|
||||
<i class="dropdown-icon fas fa-exclamation mr-3"></i><%= t("errors.internal.report") %>
|
||||
|
|
|
@ -126,6 +126,7 @@ module Greenlight
|
|||
config.maintenance_mode = ENV["MAINTENANCE_MODE"] == "true"
|
||||
|
||||
config.report_issue_url = ENV["REPORT_ISSUE_URL"]
|
||||
config.help_url = ENV["HELP_URL"].presence || "https://docs.bigbluebutton.org/greenlight/gl-overview.html"
|
||||
|
||||
# DEFAULTS
|
||||
|
||||
|
|
|
@ -172,6 +172,12 @@ MAINTENANCE_WINDOW=
|
|||
# Button can be disabled by setting the value to blank
|
||||
REPORT_ISSUE_URL=https://github.com/bigbluebutton/greenlight/issues/new
|
||||
|
||||
# The link to the Need help? button that appears on the Account Dropdown
|
||||
#
|
||||
# Defaults to the Greenlight documentation
|
||||
# Button can be disabled by setting the value to blank
|
||||
HELP_URL=https://docs.bigbluebutton.org/greenlight/gl-overview.html
|
||||
|
||||
# Comment this out to send logs to STDOUT in production instead of log/production.log .
|
||||
#
|
||||
# RAILS_LOG_TO_STDOUT=true
|
||||
|
|
Loading…
Reference in New Issue