Skip to content
Snippets Groups Projects
Unverified Commit 33c07f66 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Add setting to set Google Site Verification id

parent 7b2607cc
No related branches found
No related tags found
No related merge requests found
...@@ -422,6 +422,7 @@ ...@@ -422,6 +422,7 @@
"Give_the_application_a_name_This_will_be_seen_by_your_users" : "Give the application a name. This will be seen by your users.", "Give_the_application_a_name_This_will_be_seen_by_your_users" : "Give the application a name. This will be seen by your users.",
"Global" : "Global", "Global" : "Global",
"GoogleTagManager_id" : "Google Tag Manager Id", "GoogleTagManager_id" : "Google Tag Manager Id",
"GoogleSiteVerification_id" : "Google Site Verification Id",
"Has_more" : "Has more", "Has_more" : "Has more",
"Hash" : "Hash", "Hash" : "Hash",
"Header" : "Header", "Header" : "Header",
...@@ -1162,4 +1163,4 @@ ...@@ -1162,4 +1163,4 @@
"Your_mail_was_sent_to_s" : "Your mail was sent to %s", "Your_mail_was_sent_to_s" : "Your mail was sent to %s",
"Your_password_is_wrong" : "Your password is wrong!", "Your_password_is_wrong" : "Your password is wrong!",
"Your_push_was_sent_to_s_devices" : "Your push was sent to %s devices" "Your_push_was_sent_to_s_devices" : "Your push was sent to %s devices"
} }
\ No newline at end of file
...@@ -91,6 +91,7 @@ RocketChat.settings.addGroup 'General', -> ...@@ -91,6 +91,7 @@ RocketChat.settings.addGroup 'General', ->
@add 'CDN_PREFIX', '', { type: 'string' } @add 'CDN_PREFIX', '', { type: 'string' }
@add 'Force_SSL', false, { type: 'boolean', public: true } @add 'Force_SSL', false, { type: 'boolean', public: true }
@add 'GoogleTagManager_id', '', { type: 'string', public: true } @add 'GoogleTagManager_id', '', { type: 'string', public: true }
@add 'GoogleSiteVerification_id', '', { type: 'string', public: false }
@add 'Restart', 'restart_server', { type: 'action', actionText: 'Restart_the_server' } @add 'Restart', 'restart_server', { type: 'action', actionText: 'Restart_the_server' }
@section 'UTF8', -> @section 'UTF8', ->
......
...@@ -26,3 +26,11 @@ RocketChat.settings.get('Site_Url', function() { ...@@ -26,3 +26,11 @@ RocketChat.settings.get('Site_Url', function() {
Inject.rawHead('base', `<base href="${baseUrl}">`); Inject.rawHead('base', `<base href="${baseUrl}">`);
}); });
}); });
RocketChat.settings.get('GoogleSiteVerification_id', function(key, value) {
if (value) {
Inject.rawHead('google-site-verification', `<meta name="google-site-verification" content="${value}" />`);
} else {
Inject.rawHead('google-site-verification', '');
}
});
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