Revision f5fd5ffc
Added by Walden Raines about 10 years ago
engines/bastion/app/views/bastion/layouts/application.html.haml | ||
---|---|---|
angular.module('Bastion').value('currentLocale', '#{I18n.locale}');
|
||
angular.module('Bastion').value('CurrentOrganization', "#{current_organization.label if current_organization}");
|
||
angular.module('Bastion').value('CurrentUser', "#{current_user.id if current_user}");
|
||
angular.module('Bastion').value('BastionConfig', {
|
||
consumerCertRPM: "#{Katello.config.consumer_cert_rpm}"
|
||
angular.module('Bastion').constant('BastionConfig', {
|
||
consumerCertRPM: "#{Katello.config.consumer_cert_rpm}",
|
||
markTranslated: #{SETTINGS[:mark_translated]}
|
||
});
|
||
|
||
= render :file => "layouts/base"
|
Also available in: Unified diff
Fixes #4501: rename katello JS i18n/mark translated bastion strings.
There was a javascript error on all katello pages when mark_translation was
turned on. This was because katello was overwriting foreman's i18n global
var with it's own global var. Renamed katello's global var to fix this.
Also added Xs around bastion strings marked for translation.