Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
runcon
Plantuml Server
Commits
567a92f1
Commit
567a92f1
authored
Jan 09, 2014
by
Maxime Sinclair
Browse files
[FEATURE] Test of configuration for the social buttons
parent
ae955806
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java
View file @
567a92f1
...
...
@@ -124,9 +124,9 @@ public class PlantUmlServlet extends HttpServlet {
return
;
}
public
void
init
(
ServletConfig
config
)
throws
ServletException
{
config
.
getServletContext
().
setAttribute
(
"cfg"
,
Configuration
.
get
());
}
public
void
init
(
ServletConfig
config
)
throws
ServletException
{
config
.
getServletContext
().
setAttribute
(
"cfg"
,
Configuration
.
get
());
}
private
Transcoder
getTranscoder
()
{
return
TranscoderUtil
.
getDefaultTranscoder
();
...
...
src/main/webapp/index.jsp
View file @
567a92f1
...
...
@@ -32,10 +32,10 @@
<div
id=
"header"
>
<%-- PAGE TITLE --%>
<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'
]
==
'on'
}
"
>
<p>
SOCIAL BUTTONS
</p>
<c:if
test=
"
${
cfg
[
'SHOW_SOCIAL_BUTTONS'
]
eq
'on'
}
"
>
<%@ include
file=
"resource/socialbuttons1.html"
%>
</c:if>
<p>
This application provides a servlet which serves images created by
<a
href=
"http://plantuml.sourceforge.net"
>
PlantUML
</a>
.
</p>
</div>
<div
id=
"content"
>
<%-- CONTENT --%>
...
...
@@ -62,6 +62,9 @@
<c:if
test=
"
${
!
empty
mapurl
}
"
>
<a
href=
"${mapurl}"
>
View Map Data
</a>
</c:if>
<c:if
test=
"
${
cfg
[
'SHOW_SOCIAL_BUTTONS'
]
==
'on'
}
"
>
<%@ include
file=
"resource/socialbuttons2.jspf"
%>
</c:if>
<p
id=
"diagram"
>
<c:choose>
<c:when
test=
"
${
!
empty
mapurl
}
"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment