Skip to content

Commit

Permalink
fixing bug #11030 : removing reference of help which does not exist a…
Browse files Browse the repository at this point in the history
…nymore (https://extranet.silverpeas.com/help_fr and /help_fr/Silverpeas.htm)
  • Loading branch information
NicolasEYSSERIC committed Oct 16, 2019
1 parent 7e1c741 commit ebdd2f3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
Expand Up @@ -84,7 +84,7 @@ scheduleEventVisible = true
display.all.components=false

# URL aide en ligne
helpURL = https://extranet.silverpeas.com/help_fr
helpURL =

# Domain's Bar frameset
domainsBarFramesetWidth = 281
Expand Down
7 changes: 5 additions & 2 deletions core-war/src/main/webapp/admin/jsp/silverpeas-header-part.jsp
Expand Up @@ -28,6 +28,7 @@
<%@ include file="importFrameSet.jsp" %>
<%@ page import="org.silverpeas.core.web.look.LookHelper"%>
<%@ page import="org.silverpeas.core.web.look.TopItem"%>
<%@ page import="org.silverpeas.core.util.StringUtil" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.silverpeas.com/tld/viewGenerator" prefix="view"%>
Expand Down Expand Up @@ -59,6 +60,8 @@ if (wallPaper == null) {
wallPaper = m_sContext+"/admin/jsp/icons/silverpeasV5/bandeauTop.jpg";
}
String helpURL = helper.getSettings("helpURL", "");
boolean outilDisplayed = false;
%>
<c:set var="isAnonymousAccess" value="<%=helper.isAnonymousAccess()%>"/>
Expand Down Expand Up @@ -184,13 +187,13 @@ window.USERSESSION_PROMISE.then(function() {
%>
<a href="<%=m_sContext + "/admin/jsp/Map.jsp"%>" target="MyMain"><%=helper.getString("lookSilverpeasV5.Map")%></a>
<% } %>
<% if (helper.getSettings("helpVisible", true)) {
<% if (helper.getSettings("helpVisible", true) && StringUtil.isDefined(helpURL)) {
if (outilDisplayed) {
out.print(" | ");
}
outilDisplayed = true;
%>
<a href="<%=helper.getSettings("helpURL", "/help_fr/Silverpeas.htm")%>" target="_blank"><%=helper.getString("lookSilverpeasV5.Help")%></a>
<a href="<%=helpURL%>" target="_blank"><%=helper.getString("lookSilverpeasV5.Help")%></a>
<% } %>
<% if (!isAnonymousAccess && helper.getSettings("logVisible", true)) {
if (outilDisplayed) {
Expand Down
6 changes: 4 additions & 2 deletions core-war/src/main/webapp/jobManagerPeas/jsp/topBarManager.jsp
Expand Up @@ -45,7 +45,7 @@
<fmt:message var="clipboardIconUrl" key="JMP.clipboardIcon" bundle="${icons}"/>
<c:url var="clipboardIconUrl" value="${clipboardIconUrl}"/>
<c:url var="clipboardUrl" value='<%=URLUtil.getURL(URLUtil.CMP_CLIPBOARD) + "Idle.jsp?message=SHOWCLIPBOARD"%>'/>
<c:set var="helpUrl" value='<%=helper.getSettings("helpURL", "/help_fr/Silverpeas.htm")%>'/>
<c:set var="helpUrl" value='<%=helper.getSettings("helpURL", "")%>'/>
<fmt:message var="helpLabel" key="JMP.help"/>
<fmt:message var="helpIconUrl" key="JMP.help" bundle="${icons}"/>
<c:url var="helpIconUrl" value="${helpIconUrl}"/>
Expand All @@ -61,7 +61,9 @@
<div id="outilsAdmin">
<a class="sp_back_front" href="javascript:void(0);" onclick="window.top.spWindow.leaveAdmin()">${backToSilverpeasLabel}</a>
<a href="${clipboardUrl}" target="IdleFrame"><img src="${clipboardIconUrl}" border="0" alt="${clipboardLabel}" onfocus="self.blur()" title="${clipboardLabel}"/><span>${clipboardLabel}</span></a>
<a href="${helpUrl}" target="_blank"><img border="0" src="${helpIconUrl}" alt="${helpLabel}" title="${helpLabel}"/><span>${helpLabel}</span></a>
<c:if test="${not empty helpUrl}">
<a href="${helpUrl}" target="_blank"><img border="0" src="${helpIconUrl}" alt="${helpLabel}" title="${helpLabel}"/><span>${helpLabel}</span></a>
</c:if>
<a class="sp_logout" href="javascript:onclick=window.top.spUserSession.logout();"><img border="0" src="${logoutIconUrl}" alt="${logoutLabel}" title="${logoutLabel}"/><span>${logoutLabel}</span></a>
</div>
<ul class="sp_menuAdmin">
Expand Down
Expand Up @@ -84,7 +84,7 @@ scheduleEventVisible = true
display.all.components=false

# URL aide en ligne
helpURL = https://extranet.silverpeas.com/help_fr
helpURL =

# Domain's Bar frameset
domainsBarFramesetWidth = 281
Expand Down
Expand Up @@ -84,7 +84,7 @@ scheduleEventVisible = true
display.all.components=false

# URL aide en ligne
helpURL = https://extranet.silverpeas.com/help_fr
helpURL =

# Domain's Bar frameset
domainsBarFramesetWidth = 281
Expand Down

0 comments on commit ebdd2f3

Please sign in to comment.