Commit f0cb711c authored by Curtis Adam's avatar Curtis Adam

Use the settings files to load the welcome page title

parent 2a526a56
......@@ -243,6 +243,10 @@ Template.main.helpers({
}
});
Template.main.onCreated(function () {
document.title = Meteor.settings.public.welcome.title.first + "." + Meteor.settings.public.welcome.title.last;
});
Template.main.onRendered(function () {
Session.set("searchValue", undefined);
Meteor.call("initUser");
......
......@@ -4,9 +4,9 @@
<div class="panel panel-default">
<div class="panel-heading">
<div class="text-center">
<span class="color-cards logo-header-chars">informatik</span>
<span class="color-cards logo-header-chars">{{getFirstTitleWord}}</span>
<span class="color-dot logo-header-dot"></span>
<span class="color-cards logo-header-chars">cards</span>
<span class="color-cards logo-header-chars">{{getLastTitleWord}}</span>
</div>
<span id="slogan">
......
......@@ -199,6 +199,12 @@ Template.welcome.helpers({
}
loginButtons += "</span>";
return loginButtons;
},
getFirstTitleWord: function () {
return Meteor.settings.public.welcome.title.first;
},
getLastTitleWord: function () {
return Meteor.settings.public.welcome.title.last;
}
});
......
......@@ -20,6 +20,12 @@
"singleUniversity": true,
"default": "THM"
},
"welcome": {
"title": {
"first": "informatik",
"last": "cards"
}
},
"env": "Sandbox",
"BT_MERCHANT_ID": "7jspbjz7zk4vkh67",
"BT_PUBLIC_KEY": "bf7p9crbdv2359gv"
......
......@@ -21,6 +21,12 @@
"singleUniversity": false,
"default": "THM"
},
"welcome": {
"title": {
"first": "debug",
"last": "cards"
}
},
"env": "Sandbox",
"BT_MERCHANT_ID": "7jspbjz7zk4vkh67",
"BT_PUBLIC_KEY": "bf7p9crbdv2359gv"
......
......@@ -21,6 +21,12 @@
"singleUniversity": false,
"default": "THM"
},
"welcome": {
"title": {
"first": "review",
"last": "cards"
}
},
"env": "Sandbox",
"BT_MERCHANT_ID": "7jspbjz7zk4vkh67",
"BT_PUBLIC_KEY": "bf7p9crbdv2359gv"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment