Skip to content

Commit

Permalink
LTI-232: hide build tag through broker settings (#274)
Browse files Browse the repository at this point in the history
* LTI-303 - Added a copy icon with clipboard feature

* LTI-303: Added a copy icon with copy to clipboard feature

* Update Gemfile.lock

* LTI-303: Added a copy icon with copy to clipboard feature

* hide_build_tag feature

* Update _form.html.erb

---------

Co-authored-by: Jesus Federico <[email protected]>
Co-authored-by: Mariam A <[email protected]>
  • Loading branch information
3 people authored Feb 20, 2024
1 parent e639018 commit f112b9c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/controllers/concerns/broker_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ def shared_rooms_enabled(tenant)
tenant_settings(tenant: tenant)&.[]('settings')&.[]('enable_shared_rooms') == 'true' || false
end
end

def hide_build_tag(tenant)
tenant_settings(tenant: tenant)&.[]('settings')&.[]('hide_build_tag') == 'true' || false
end
end
2 changes: 1 addition & 1 deletion app/controllers/rooms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def individual_recording
end

helper_method :recording_date, :recording_length, :meeting_running?, :bigbluebutton_moderator_roles,
:bigbluebutton_recording_public_formats, :meeting_info, :bigbluebutton_recording_enabled, :server_running?, :shared_rooms_enabled
:bigbluebutton_recording_public_formats, :meeting_info, :bigbluebutton_recording_enabled, :server_running?, :shared_rooms_enabled, :hide_build_tag

private

Expand Down
4 changes: 3 additions & 1 deletion app/views/shared/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
%>

<div id="footer">
<% unless hide_build_tag(@room.tenant) %>
<div class="navbar fixed-bottom">
<div class="text-center">
<p class>Build number <%= Rails.configuration.build_number || 'v1' %>.</p>
</div>
</div>
</div>
<% end %>
</div>

0 comments on commit f112b9c

Please sign in to comment.