|
|
|
@ -8,11 +8,33 @@ if (themeDisplay.isSignedIn()) {
|
|
|
|
|
String groupName = context.getGatewayName(request);
|
|
|
|
|
String mySiteURL = context.getSiteLandingPagePath(request);
|
|
|
|
|
String myGatewayURL = context.getGatewayURL(request);
|
|
|
|
|
pageContext.setAttribute("myDashboardUrl", mySiteURL);
|
|
|
|
|
String iconBGColor = "#999";
|
|
|
|
|
if (themeDisplay.getThemeSetting("dockbar-selected-icon-bgcolor") != null)
|
|
|
|
|
iconBGColor = themeDisplay.getThemeSetting("dockbar-selected-icon-bgcolor");
|
|
|
|
|
pageContext.setAttribute("iconBGColor", iconBGColor);
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
var pathname = window.location.pathname;
|
|
|
|
|
var backgroundColorSetting = '${iconBGColor}';
|
|
|
|
|
if (pathname == '${myDashboardUrl}' || pathname == '${myDashboardUrl}'+ '/' || pathname == '${myDashboardUrl}'+ '/home') {
|
|
|
|
|
$('#homeIcon').css("background-color", backgroundColorSetting);
|
|
|
|
|
$('#homeIcon').css("color", "#FFF");
|
|
|
|
|
}
|
|
|
|
|
if (pathname == '${myDashboardUrl}'+ '/workspace') {
|
|
|
|
|
$('#wsIcon').css("background-color", backgroundColorSetting);
|
|
|
|
|
$('#wsIcon').css("color", "#FFF");
|
|
|
|
|
}
|
|
|
|
|
if (pathname == '${myDashboardUrl}'+ '/data-catalogue') {
|
|
|
|
|
$('#catalougueIcon').css("background-color", backgroundColorSetting);
|
|
|
|
|
$('#catalougueIcon').css("color", "#FFF");
|
|
|
|
|
}
|
|
|
|
|
if (pathname == '${myDashboardUrl}'+ '/messages') {
|
|
|
|
|
$('#messagesIcon').css("background-color", backgroundColorSetting);
|
|
|
|
|
$('#messagesIcon').css("color", "#FFF");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//check for notifications on load after 3 seconds
|
|
|
|
|
var username = "<%=themeDisplay.getUser().getScreenName()%>";
|
|
|
|
|
|
|
|
|
@ -112,6 +134,7 @@ if (themeDisplay.isSignedIn()) {
|
|
|
|
|
$('#searchIcon').click(function() {
|
|
|
|
|
$('#searchbox').show();
|
|
|
|
|
$('#searchIcon').hide();
|
|
|
|
|
$("#searchbox").focus();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//search box keyboard handlers
|
|
|
|
@ -186,8 +209,8 @@ if (themeDisplay.isSignedIn()) {
|
|
|
|
|
<ul class="nav nav-add-controls">
|
|
|
|
|
<li class="dockbar-item"><a class=""
|
|
|
|
|
href="<%=mySiteURL%>" id="homeIcon"
|
|
|
|
|
title="<%=groupName%> Home"> <i
|
|
|
|
|
class="icon-home" style="font-size: 24px;"></i>
|
|
|
|
|
title="<%=groupName%> Dashboard"> <i
|
|
|
|
|
class="icon-dashboard" style="font-size: 24px;"></i>
|
|
|
|
|
</a></li>
|
|
|
|
|
<li class="dockbar-item" id="lab-li-sbd" style="display: none;"><a class=""
|
|
|
|
|
href="<%=myGatewayURL + "/group/sobigdata-gateway/explore?siteId=20371853"%>" id="labIcon"
|
|
|
|
|