[FEATURE] Test of configuration for the social buttons
This commit is contained in:
@@ -124,9 +124,9 @@ public class PlantUmlServlet extends HttpServlet {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void init(ServletConfig config) throws ServletException {
|
public void init(ServletConfig config) throws ServletException {
|
||||||
config.getServletContext().setAttribute("cfg", Configuration.get());
|
config.getServletContext().setAttribute("cfg", Configuration.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
private Transcoder getTranscoder() {
|
private Transcoder getTranscoder() {
|
||||||
return TranscoderUtil.getDefaultTranscoder();
|
return TranscoderUtil.getDefaultTranscoder();
|
||||||
|
|||||||
@@ -32,10 +32,10 @@
|
|||||||
<div id="header">
|
<div id="header">
|
||||||
<%-- PAGE TITLE --%>
|
<%-- PAGE TITLE --%>
|
||||||
<h1>PlantUML Server</h1>
|
<h1>PlantUML Server</h1>
|
||||||
<p>This application provides a servlet which serves images created by <a href="http://plantuml.sourceforge.net">PlantUML</a>.</p>
|
<c:if test="${cfg['SHOW_SOCIAL_BUTTONS'] eq 'on' }">
|
||||||
<c:if test="${cfg['SHOW_SOCIAL_BUTTONS'] == 'on' }">
|
<%@ include file="resource/socialbuttons1.html" %>
|
||||||
<p>SOCIAL BUTTONS</p>
|
|
||||||
</c:if>
|
</c:if>
|
||||||
|
<p>This application provides a servlet which serves images created by <a href="http://plantuml.sourceforge.net">PlantUML</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<%-- CONTENT --%>
|
<%-- CONTENT --%>
|
||||||
@@ -62,6 +62,9 @@
|
|||||||
<c:if test="${!empty mapurl}">
|
<c:if test="${!empty mapurl}">
|
||||||
<a href="${mapurl}">View Map Data</a>
|
<a href="${mapurl}">View Map Data</a>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
<c:if test="${cfg['SHOW_SOCIAL_BUTTONS'] == 'on' }">
|
||||||
|
<%@ include file="resource/socialbuttons2.jspf" %>
|
||||||
|
</c:if>
|
||||||
<p id="diagram">
|
<p id="diagram">
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${!empty mapurl}">
|
<c:when test="${!empty mapurl}">
|
||||||
|
|||||||
Reference in New Issue
Block a user