Skip to content
Snippets Groups Projects
Commit f5e3fe65 authored by Gabriel Engel's avatar Gabriel Engel Committed by GitHub
Browse files

Merge pull request #5976 from RocketChat/sidenav-footer-logo

fix sidenav logo position
parents c84642c5 c468e6e8
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,7 @@ RocketChat.settings.addGroup 'Layout', ->
@add 'Layout_Terms_of_Service', 'Terms of Service <br> Go to APP SETTINGS -> Layout to customize this page.', { type: 'code', code: 'text/html', multiline: true, public: true }
@add 'Layout_Login_Terms', 'By proceeding you are agreeing to our <a href="/terms-of-service">Terms of Service</a> and <a href="/privacy-policy">Privacy Policy</a>.', { type: 'string', multiline: true, public: true }
@add 'Layout_Privacy_Policy', 'Privacy Policy <br> Go to APP SETTINGS -> Layout to customize this page.', { type: 'code', code: 'text/html', multiline: true, public: true }
@add 'Layout_Sidenav_Footer', '<img style="left: 10px; position: absolute;" src="/assets/logo.png" />', { type: 'code', code: 'text/html', public: true, i18nDescription: 'Layout_Sidenav_Footer_description' }
@add 'Layout_Sidenav_Footer', '<img src="/assets/logo" />', { type: 'code', code: 'text/html', public: true, i18nDescription: 'Layout_Sidenav_Footer_description' }
@section 'Custom Scripts', ->
@add 'Custom_Script_Logged_Out', '//Add your script', { type: 'code', multiline: true, public: true }
......
......@@ -1422,7 +1422,6 @@ label.required::after {
display: inline-block;
max-width: 222px;
max-height: 43px;
margin-bottom: -10px;
}
}
......
RocketChat.Migrations.add({
version: 88,
up: function() {
if (RocketChat && RocketChat.models && RocketChat.models.Settings) {
const setting = RocketChat.models.Settings.findOne({ _id: 'Layout_Sidenav_Footer' });
if (setting && setting.value && setting.packageValue) {
if (setting.value === '<img style="left: 10px; position: absolute;" src="/assets/logo.png" />') {
RocketChat.models.Settings.update({ _id: 'Layout_Sidenav_Footer' }, { $set: { value: setting.packageValue } });
}
}
}
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment