From 313191540e1f4ec5525e4dfbc6e18d160731965d Mon Sep 17 00:00:00 2001
From: juanf <juanf@bsse-bs-dock-dhcp-490.ethz.ch>
Date: Mon, 29 Oct 2018 13:33:58 +0100
Subject: [PATCH] SSDM-7200 : small changes to allow update logos and titles
 per instance

---
 .../1/as/webapps/eln-lims/html/index.html       |  4 ++--
 .../webapps/eln-lims/html/js/config/Profile.js  | 17 ++++++++++++++++-
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html
index 24817d6e989..b3202347f37 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html
@@ -355,8 +355,8 @@
 </head>
 <body class="bodyLogin">
 	<div id="login-form-div" class="loginForm">
-			<img class="loginLogo" src="./img/openBIS_Logo.png" alt="openBIS" />
-			<h1>Lab Notebook & Inventory Manager</h1>
+			<img id="mainLogo" class="loginLogo" src="" alt="openBIS" />
+			<h1 id="mainLogoTitle"></h1>
 			
 			<form id="login-form" action="javascript:">
 				<fieldset>
diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js
index 3c5e0247edb..7a5b73f75b7 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js
@@ -31,7 +31,22 @@ function DefaultProfile(serverFacade) {
 }
 
 $.extend(DefaultProfile.prototype, {
-	init: function(serverFacade){
+	init: function(serverFacade) {
+		this.mainLogo = "./img/openBIS_Logo.png";
+		this.mainLogoTitle = "Lab Notebook & Inventory Manager";
+		
+		//this.mainLogo = "./img/cross_Logo_alt.png";
+		//this.mainLogoTitle = "ETH RDH";
+		
+		//
+		// Updating title and logo
+		//
+		$("#mainLogo").attr("src", this.mainLogo);
+		$("#mainLogoTitle").append(this.mainLogoTitle);
+		if(this.mainLogoTitle.length < 10) {
+			$("#mainLogoTitle").css("font-weight", "bold");
+		}
+		
 		this.serverFacade = serverFacade;
 		//
 		// DEFAULTS, TYPICALLY DON'T TOUCH IF YOU DON'T KNOW WHAT YOU DO
-- 
GitLab