Commit c4ef0fab authored by FX Deltombe's avatar FX Deltombe
Browse files

Make portal's css, js and img href working when portal url is not / (Lemonldap-276)

parent ff049cd4
......@@ -6,8 +6,8 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="cache-control" content="no-cache" />
<link href="/skins/common/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/skins/common/favicon.ico" rel="shortcut icon" />
<link href="<TMPL_VAR NAME="SKIN_PATH">/common/favicon.ico" rel="icon" type="image/x-icon" />
<link href="<TMPL_VAR NAME="SKIN_PATH">/common/favicon.ico" rel="shortcut icon" />
<style type="text/css">
body, a {
background: #ddd;
......
<p><img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-lock.png" /></p>
<p><img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-lock.png" /></p>
<h1>
<lang en="Welcome on your secured authentication portal." fr="Bienvenue sur votre portail d'authentification s&eacute;curis&eacute;e." />
</h1>
......
......@@ -3,7 +3,7 @@
<div id="content">
<div id="content-all">
<div class="title">
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-info.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-info.png" />
<lang en="Confirmation" fr="Confirmation" />
</div>
<hr class="solid" />
......
......@@ -4,5 +4,5 @@
<a href="http://lemonldap-ng.org" target="_blank">LemonLDAP::NG</a>,
<lang en="free software covered by the GPL license" fr="logiciel libre prot&eacute;g&eacute; par la licence GPL" />.
</p>
<a href="http://lemonldap-ng.org" target="_blank"><img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo_lemonldap-ng_400px.png" alt="LemonLDAP::NG logo" width="120" /></a>
<a href="http://lemonldap-ng.org" target="_blank"><img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo_lemonldap-ng_400px.png" alt="LemonLDAP::NG logo" width="120" /></a>
......@@ -3,7 +3,7 @@
<div id="content">
<div id="content-all">
<div class="title">
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-warn.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-warn.png" />
<lang en="Warning" fr="Attention" />
</div>
<p></p>
......
......@@ -6,17 +6,17 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="stylesheet" type="text/css" href="/skins/<TMPL_VAR NAME="SKIN">/css/styles.css" />
<link href="/skins/common/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/skins/common/favicon.ico" rel="shortcut icon" />
<link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/css/styles.css" />
<link href="<TMPL_VAR NAME="SKIN_PATH">/common/favicon.ico" rel="icon" type="image/x-icon" />
<link href="<TMPL_VAR NAME="SKIN_PATH">/common/favicon.ico" rel="shortcut icon" />
<TMPL_IF NAME="PROVIDERURI">
<link rel="openid.server" href="<TMPL_VAR NAME="PROVIDERURI">" />
<link rel="openid2.provider" href="<TMPL_VAR NAME="PROVIDERURI">" />
</TMPL_IF>
<script type="text/javascript" src="/skins/common/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/skins/common/jquery-ui-1.8.5.custom.min.js"></script>
<script type="text/javascript" src="/skins/common/jquery.base64.js"></script>
<script type="text/javascript" src="/skins/common/jquery.cookie.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="SKIN_PATH">/common/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="SKIN_PATH">/common/jquery-ui-1.8.5.custom.min.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="SKIN_PATH">/common/jquery.base64.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="SKIN_PATH">/common/jquery.cookie.js"></script>
<script type="text/javascript">//<![CDATA[
var displaytab='<TMPL_VAR NAME="DISPLAY_TAB">';
var choicetab='<TMPL_VAR NAME="CHOICE_VALUE">';
......@@ -25,7 +25,7 @@
var newwindow='<TMPL_VAR NAME="NEWWINDOW">';
var antiframe='<TMPL_VAR NAME="ANTIFRAME">';
//]]></script>
<script type="text/javascript" src="/skins/common/portal.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="SKIN_PATH">/common/portal.js"></script>
<TMPL_INCLUDE NAME="customhead.tpl">
</head>
<body>
......
......@@ -3,7 +3,7 @@
<div id="content">
<div id="content-all">
<div class="title">
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-info.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-info.png" />
<lang en="Information" fr="Information" />
</div>
<hr class="solid" />
......
......@@ -67,7 +67,7 @@
<TMPL_IF NAME="module">
<div class="authLogo">
<img src="/skins/common/<TMPL_VAR NAME="module">.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/<TMPL_VAR NAME="module">.png" />
</div>
</TMPL_IF>
......@@ -181,7 +181,7 @@
<div id="content-all">
<div class="title">
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-info.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-info.png" />
<lang en="Password change" fr="Changement de mot de passe" />
</div>
<hr class="solid" />
......@@ -194,7 +194,7 @@
<TMPL_IF NAME="PORTAL_URL">
<div id="content-all">
<div class="title">
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-info.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-info.png" />
<lang en="SSO session inactive" fr="Session SSO inactive" />
</div>
<hr class="solid" />
......@@ -205,7 +205,7 @@
</div>
</TMPL_IF>
<p>
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/arrow.png" /><a href="<TMPL_VAR NAME="PORTAL_URL">" class="positive"><lang en="Go to portal" fr="Aller au portail" /></a>
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/arrow.png" /><a href="<TMPL_VAR NAME="PORTAL_URL">" class="positive"><lang en="Go to portal" fr="Aller au portail" /></a>
</p>
</div>
</TMPL_IF>
......@@ -213,13 +213,13 @@
<TMPL_IF NAME="LOGOUT_URL">
<div id="content-all">
<div class="title">
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-info.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-info.png" />
<lang en="Close your SSO session" fr="Fermer votre Session SSO" />
</div>
<hr class="solid" />
<p class="text-error"><TMPL_VAR NAME="AUTH_ERROR"></p>
<p>
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/arrow.png" /><a href="<TMPL_VAR NAME="LOGOUT_URL">" class="negative"><lang en="Logout" fr="Se d&eacute;connecter"/></a>
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/arrow.png" /><a href="<TMPL_VAR NAME="LOGOUT_URL">" class="negative"><lang en="Logout" fr="Se d&eacute;connecter"/></a>
</p>
</div>
</TMPL_IF>
......
......@@ -3,7 +3,7 @@
<div id="content">
<div id="content-all">
<div class="title">
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-ok.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-ok.png" />
<lang en="Forgot your password?" fr="Mot de passe oubli&eacute; ?"/>
</div>
<hr class="solid" />
......
......@@ -4,7 +4,7 @@
<div id="content-all">
<div class="title">
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-ok.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-ok.png" />
<TMPL_VAR NAME="AUTH_ERROR">
</div>
<hr class="solid" />
......@@ -18,16 +18,16 @@
<ul>
<TMPL_LOOP NAME="DISPLAY_MODULES">
<TMPL_IF NAME="Appslist">
<li><a href="#appslist"><span><img src="/skins/common/application_cascade.png" width="16" height="16" alt="appslist" /> <lang en="Your applications" fr="Vos applications" /></span></a></li>
<li><a href="#appslist"><span><img src="<TMPL_VAR NAME="SKIN_PATH">/common/application_cascade.png" width="16" height="16" alt="appslist" /> <lang en="Your applications" fr="Vos applications" /></span></a></li>
</TMPL_IF>
<TMPL_IF NAME="ChangePassword">
<li><a href="#password"><span><img src="/skins/common/vcard_edit.png" width="16" height="16" alt="password" /> <lang en="Password" fr="Mot de passe" /></span></a></li>
<li><a href="#password"><span><img src="<TMPL_VAR NAME="SKIN_PATH">/common/vcard_edit.png" width="16" height="16" alt="password" /> <lang en="Password" fr="Mot de passe" /></span></a></li>
</TMPL_IF>
<TMPL_IF NAME="LoginHistory">
<li><a href="#loginHistory"><span><img src="/skins/common/calendar.png" width="16" height="16" alt="login history" /> <lang en="Login history" fr="Historique des connexions" /></span></a></li>
<li><a href="#loginHistory"><span><img src="<TMPL_VAR NAME="SKIN_PATH">/common/calendar.png" width="16" height="16" alt="login history" /> <lang en="Login history" fr="Historique des connexions" /></span></a></li>
</TMPL_IF>
<TMPL_IF NAME="Logout">
<li><a href="#logout"><span><img src="/skins/common/door_out.png" width="16" height="16" alt="logout" /> <lang en="Logout" fr="Se d&eacute;connecter" /></span></a></li>
<li><a href="#logout"><span><img src="<TMPL_VAR NAME="SKIN_PATH">/common/door_out.png" width="16" height="16" alt="logout" /> <lang en="Logout" fr="Se d&eacute;connecter" /></span></a></li>
</TMPL_IF>
</TMPL_LOOP>
</ul>
......@@ -66,7 +66,7 @@
<!-- Logo (optional) -->
<TMPL_IF NAME="applogo">
<img src="/skins/common/apps/<TMPL_VAR NAME="applogo">"
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/apps/<TMPL_VAR NAME="applogo">"
class="applogo <TMPL_VAR NAME="appid">"
alt="<TMPL_VAR NAME="appname">" />
</TMPL_IF>
......@@ -110,7 +110,7 @@
<!-- Logo (optional) -->
<TMPL_IF NAME="applogo">
<img src="/skins/common/apps/<TMPL_VAR NAME="applogo">"
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/apps/<TMPL_VAR NAME="applogo">"
class="applogo <TMPL_VAR NAME="appid">"
alt="<TMPL_VAR NAME="appname">" />
</TMPL_IF>
......
......@@ -3,7 +3,7 @@
<div id="content">
<div id="content-all">
<div class="title">
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-ok.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-ok.png" />
<lang en="You have some new messages" fr="Vous avez de nouveaux messages"/>
</div>
<hr class="solid" />
......
......@@ -3,7 +3,7 @@
<div id="content">
<div id="content-left">
<p><img src="/skins/<TMPL_VAR NAME="SKIN">/images/logo-lock.png" /></p>
<p><img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/logo-lock.png" /></p>
</div>
<div id="content-right">
......@@ -19,7 +19,7 @@
<TMPL_IF NAME="PORTAL_URL">
<p>
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/arrow.png" /><a href="<TMPL_VAR NAME="PORTAL_URL">" class="positive"><lang en="Go to portal" fr="Aller au portail" /></a>
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/arrow.png" /><a href="<TMPL_VAR NAME="PORTAL_URL">" class="positive"><lang en="Go to portal" fr="Aller au portail" /></a>
</p>
</TMPL_IF>
......
......@@ -28,11 +28,11 @@
<tr><td colspan="2">
<div class="buttons">
<button type="reset" class="negative" tabindex="6">
<img src="/skins/common/cancel.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/cancel.png" alt="" />
<lang en="Cancel" fr="Annuler" />
</button>
<button type="submit" class="positive" tabindex="5">
<img src="/skins/common/accept.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
<lang en="Submit" fr="Soumettre" />
</button>
</div>
......
......@@ -19,7 +19,7 @@
<TMPL_IF NAME="DISPLAY_RESETPASSWORD">
<p>
<img src="/skins/<TMPL_VAR NAME="SKIN">/images/arrow.png" /><a href="<TMPL_VAR NAME="MAIL_URL"><TMPL_IF NAME="key">?<TMPL_VAR NAME="CHOICE_PARAM">=<TMPL_VAR NAME="key"></TMPL_IF>"><lang en="Reset my password" fr="R&eacute;initialiser mon mot de passe"/></a>
<img src="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/images/arrow.png" /><a href="<TMPL_VAR NAME="MAIL_URL"><TMPL_IF NAME="key">?<TMPL_VAR NAME="CHOICE_PARAM">=<TMPL_VAR NAME="key"></TMPL_IF>"><lang en="Reset my password" fr="R&eacute;initialiser mon mot de passe"/></a>
</p>
</TMPL_IF>
......@@ -22,11 +22,11 @@
<table><tbody><tr><td>
<div class="buttons">
<button type="submit" class="positive">
<img src="/skins/common/accept.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
<lang en="Accept" fr="Accepter" />
</button>
<button type="submit" class="negative" onclick="$('#confirm').attr('value','-<TMPL_VAR NAME="CONFIRMKEY">');">
<img src="/skins/common/cancel.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/cancel.png" alt="" />
<lang en="Refuse" fr="Refuser" />
</button>
</div>
......
......@@ -24,12 +24,12 @@
<div class="buttons">
<a href="<TMPL_VAR NAME="PORTAL_URL">" class="positive">
<img src="/skins/common/accept.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
<lang en="Go to portal" fr="Aller au portail" />
</a>
<TMPL_IF NAME="LOGOUT_URL">
<a href="<TMPL_VAR NAME="LOGOUT_URL">" class="negative">
<img src="/skins/common/cancel.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/cancel.png" alt="" />
<lang en="Logout" fr="Se d&eacute;connecter" />
</a>
</TMPL_IF>
......
......@@ -6,17 +6,17 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="stylesheet" type="text/css" href="/skins/<TMPL_VAR NAME="SKIN">/css/styles.css" />
<link href="/skins/common/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/skins/common/favicon.ico" rel="shortcut icon" />
<link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/css/styles.css" />
<link href="<TMPL_VAR NAME="SKIN_PATH">/common/favicon.ico" rel="icon" type="image/x-icon" />
<link href="<TMPL_VAR NAME="SKIN_PATH">/common/favicon.ico" rel="shortcut icon" />
<TMPL_IF NAME="PROVIDERURI">
<link rel="openid.server" href="<TMPL_VAR NAME="PROVIDERURI">" />
<link rel="openid2.provider" href="<TMPL_VAR NAME="PROVIDERURI">" />
</TMPL_IF>
<script type="text/javascript" src="/skins/common/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/skins/common/jquery-ui-1.8.5.custom.min.js"></script>
<script type="text/javascript" src="/skins/common/jquery.base64.js"></script>
<script type="text/javascript" src="/skins/common/jquery.cookie.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="SKIN_PATH">/common/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="SKIN_PATH">/common/jquery-ui-1.8.5.custom.min.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="SKIN_PATH">/common/jquery.base64.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="SKIN_PATH">/common/jquery.cookie.js"></script>
<script type="text/javascript">//<![CDATA[
var displaytab='<TMPL_VAR NAME="DISPLAY_TAB">';
var choicetab='<TMPL_VAR NAME="CHOICE_VALUE">';
......@@ -25,7 +25,7 @@
var newwindow='<TMPL_VAR NAME="NEWWINDOW">';
var antiframe='<TMPL_VAR NAME="ANTIFRAME">';
//]]></script>
<script type="text/javascript" src="/skins/common/portal.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="SKIN_PATH">/common/portal.js"></script>
<TMPL_INCLUDE NAME="customhead.tpl">
</head>
<body>
......
......@@ -16,11 +16,11 @@
<table><tbody><tr><td>
<div class="buttons">
<button type="submit" class="positive">
<img src="/skins/common/accept.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
<lang en="Continue" fr="Continuer" />
</button>
<button type="reset" class="negative" onclick="stop();">
<img src="/skins/common/cancel.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/cancel.png" alt="" />
<lang en="Wait" fr="Attendre" />
</button>
</div>
......
......@@ -57,18 +57,18 @@
<table>
<TMPL_IF NAME="module">
<tr class="authLogo"><td>
<img src="/skins/common/<TMPL_VAR NAME="module">.png" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/<TMPL_VAR NAME="module">.png" />
</td></tr>
</TMPL_IF>
<tr><td>
<div class="buttons">
<button type="reset" class="negative" tabindex="4">
<img src="/skins/common/cancel.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/cancel.png" alt="" />
<lang en="Cancel" fr="Annuler" />
</button>
<button type="submit" class="positive" tabindex="3">
<img src="/skins/common/accept.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
<lang en="Connect" fr="Se connecter" />
</button>
</div></td></tr>
......@@ -137,7 +137,7 @@
<TMPL_IF NAME="MSG"><TMPL_VAR NAME="MSG"></TMPL_IF>
<div class="buttons">
<a href="<TMPL_VAR NAME="PORTAL_URL">" class="positive">
<img src="/skins/common/accept.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
<lang en="Go to portal" fr="Aller au portail" />
</a>
</div>
......@@ -148,7 +148,7 @@
<div id="logout">
<div class="buttons">
<a href="<TMPL_VAR NAME="LOGOUT_URL">" class="negative">
<img src="/skins/common/cancel.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/cancel.png" alt="" />
<lang en="Logout" fr="Se d&eacute;connecter"/>
</a>
</div>
......
......@@ -23,7 +23,7 @@
<tr><td colspan="2">
<div class="buttons">
<button type="submit" class="positive">
<img src="/skins/common/accept.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
<lang en="Send me a new password" fr="Envoyez-moi un nouveau mot de passe" />
</button>
</div></td></tr>
......@@ -59,7 +59,7 @@
<tr><td colspan="2">
<div class="buttons">
<button type="submit" class="positive">
<img src="/skins/common/accept.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
<lang en="Submit" fr="Valider" />
</button>
</div></td></tr>
......@@ -90,11 +90,11 @@
<tr><td colspan="2">
<div class="buttons">
<button type="reset" class="negative" tabindex="6">
<img src="/skins/common/cancel.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/cancel.png" alt="" />
<lang en="Cancel" fr="Annuler" />
</button>
<button type="submit" class="positive" tabindex="5">
<img src="/skins/common/accept.png" alt="" />
<img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
<lang en="Submit" fr="Soumettre" />
</button>
</div>
......
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