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({ ...@@ -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 () { Template.main.onRendered(function () {
Session.set("searchValue", undefined); Session.set("searchValue", undefined);
Meteor.call("initUser"); Meteor.call("initUser");
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<div class="text-center"> <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-dot logo-header-dot"></span>
<span class="color-cards logo-header-chars">cards</span> <span class="color-cards logo-header-chars">{{getLastTitleWord}}</span>
</div> </div>
<span id="slogan"> <span id="slogan">
......
...@@ -199,6 +199,12 @@ Template.welcome.helpers({ ...@@ -199,6 +199,12 @@ Template.welcome.helpers({
} }
loginButtons += "</span>"; loginButtons += "</span>";
return loginButtons; return loginButtons;
},
getFirstTitleWord: function () {
return Meteor.settings.public.welcome.title.first;
},
getLastTitleWord: function () {
return Meteor.settings.public.welcome.title.last;
} }
}); });
......
...@@ -20,6 +20,12 @@ ...@@ -20,6 +20,12 @@
"singleUniversity": true, "singleUniversity": true,
"default": "THM" "default": "THM"
}, },
"welcome": {
"title": {
"first": "informatik",
"last": "cards"
}
},
"env": "Sandbox", "env": "Sandbox",
"BT_MERCHANT_ID": "7jspbjz7zk4vkh67", "BT_MERCHANT_ID": "7jspbjz7zk4vkh67",
"BT_PUBLIC_KEY": "bf7p9crbdv2359gv" "BT_PUBLIC_KEY": "bf7p9crbdv2359gv"
......
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
"singleUniversity": false, "singleUniversity": false,
"default": "THM" "default": "THM"
}, },
"welcome": {
"title": {
"first": "debug",
"last": "cards"
}
},
"env": "Sandbox", "env": "Sandbox",
"BT_MERCHANT_ID": "7jspbjz7zk4vkh67", "BT_MERCHANT_ID": "7jspbjz7zk4vkh67",
"BT_PUBLIC_KEY": "bf7p9crbdv2359gv" "BT_PUBLIC_KEY": "bf7p9crbdv2359gv"
......
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
"singleUniversity": false, "singleUniversity": false,
"default": "THM" "default": "THM"
}, },
"welcome": {
"title": {
"first": "review",
"last": "cards"
}
},
"env": "Sandbox", "env": "Sandbox",
"BT_MERCHANT_ID": "7jspbjz7zk4vkh67", "BT_MERCHANT_ID": "7jspbjz7zk4vkh67",
"BT_PUBLIC_KEY": "bf7p9crbdv2359gv" "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