Commit 6640339a authored by Curtis Adam's avatar Curtis Adam

Add tooltips to the login buttons and update the settings_debug.json file

parent 04adebec
......@@ -38,7 +38,13 @@
"cas": "Uni-Login",
"guest": "Gast-Login",
"pro": "Pro-Login",
"backdoor": "Backdoor-Login"
"backdoor": "Backdoor-Login",
"tooltip": {
"cas": "Uni-Login",
"guest": "Gast-Login",
"pro": "Pro-Login",
"backdoor": "Backdoor-Login"
}
},
"buttons": {
"wordcloud": "Karteien",
......
......@@ -123,13 +123,13 @@ Template.welcome.helpers({
}
} else {
if (Meteor.settings.public.login.cas) {
loginButtons += '<button id="cas" class="btn btn-large btn-raised btn-block"><span class="flex-content"><i class="fa fa-graduation-cap"></i>&nbsp;' + TAPi18n.__("landingPage.login.cas") + '</span></button>';
loginButtons += '<button id="cas" class="btn btn-large btn-raised btn-block" title="' + TAPi18n.__("landingPage.login.tooltip.cas") + '"><span class="flex-content"><i class="fa fa-graduation-cap"></i>&nbsp;' + TAPi18n.__("landingPage.login.cas") + '</span></button>';
}
if (Meteor.settings.public.login.guest) {
loginButtons += '<button id="guest" class="btn btn-large btn-raised btn-block" data-toggle="modal" data-target="#underDevelopmentModal"><span class="flex-content"><i class="fa fa-user"></i>&nbsp;' + TAPi18n.__("landingPage.login.guest") + '</span></button>';
loginButtons += '<button id="guest" class="btn btn-large btn-raised btn-block" data-toggle="modal" data-target="#underDevelopmentModal" title="' + TAPi18n.__("landingPage.login.tooltip.guest") + '"><span class="flex-content"><i class="fa fa-user"></i>&nbsp;' + TAPi18n.__("landingPage.login.guest") + '</span></button>';
}
if (Meteor.settings.public.login.pro) {
loginButtons += '<button id="pro" class="btn btn-large btn-raised btn-block" data-toggle="modal" data-target="#underDevelopmentModal"><span class="flex-content"><i class="fa fa-credit-card"></i>&nbsp;' + TAPi18n.__("landingPage.login.pro") + '</span></button>';
loginButtons += '<button id="pro" class="btn btn-large btn-raised btn-block" data-toggle="modal" data-target="#underDevelopmentModal" title="' + TAPi18n.__("landingPage.login.tooltip.pro") + '"><span class="flex-content"><i class="fa fa-credit-card"></i>&nbsp;' + TAPi18n.__("landingPage.login.pro") + '</span></button>';
}
}
// Backdoor for login in acceptance tests
......@@ -146,7 +146,7 @@ Template.welcome.helpers({
if (Meteor.settings.public.login.legacyMode.enabled) {
loginButtons += '<a id="BackdoorLogin" href=""><div class="' + getLoginClass() + '"></div></a>';
} else {
loginButtons += '<button id="BackdoorLogin" class="btn btn-large btn-raised btn-block"><span class="flex-content"><i class="fa fa-key"></i>&nbsp;' + TAPi18n.__("landingPage.login.backdoor") + '</span></button>';
loginButtons += '<button id="BackdoorLogin" class="btn btn-large btn-raised btn-block" title="' + TAPi18n.__("landingPage.login.tooltip.backdoor") + '"><span class="flex-content"><i class="fa fa-key"></i>&nbsp;' + TAPi18n.__("landingPage.login.backdoor") + '</span></button>';
}
loginButtons += '<div class="btn-group backdoorLogin">';
if (Meteor.settings.public.login.legacyMode.enabled) {
......
......@@ -17,7 +17,7 @@
"cas": true,
"guest": true,
"pro": true,
"backdoor": false
"backdoor": true
},
"leitner": {
"dayIntervalHour": 1
......
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