Skip to content

Commit

Permalink
Merge pull request #1 from Huljo/add-prefix-to-layout
Browse files Browse the repository at this point in the history
issue #4798: add path prefix to sidenav layout
  • Loading branch information
Huljo authored Nov 2, 2016
2 parents 8d70374 + 444b927 commit 51e9f68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-lib/server/startup/settings.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,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 style="left: 10px; position: absolute;" src="'+(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX || '')+'/assets/logo.png" />', { 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 }
Expand Down
10 changes: 10 additions & 0 deletions server/startup/migrations/v065.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RocketChat.Migrations.add({
version: 65,
up: function() {
RocketChat.models.Settings.update({ _id: 'Layout_Sidenav_Footer' }, {
$set: {
value: '<img style="left: 10px; position: absolute;" src="'+(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX || '')+'/assets/logo.png" />'
}
});
}
});

0 comments on commit 51e9f68

Please sign in to comment.