activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [activemq] branch master updated: [AMQ-8046] Add logout button on the WebConsole
Date Fri, 08 Jan 2021 08:05:03 GMT
This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/master by this push:
     new 93a1808  [AMQ-8046] Add logout button on the WebConsole
     new b106efd  Merge pull request #600 from jbonofre/AMQ-8046
93a1808 is described below

commit 93a180874797f652ccec8656c10c2d77baeb63fe
Author: jbonofre <jbonofre@apache.org>
AuthorDate: Wed Jan 6 08:00:35 2021 +0100

    [AMQ-8046] Add logout button on the WebConsole
---
 .../src/main/webapp/decorators/header.jsp          |  4 ++-
 activemq-web-console/src/main/webapp/logout.jsp    | 40 ++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletion(-)

diff --git a/activemq-web-console/src/main/webapp/decorators/header.jsp b/activemq-web-console/src/main/webapp/decorators/header.jsp
index 5b10793..99bd1d4 100644
--- a/activemq-web-console/src/main/webapp/decorators/header.jsp
+++ b/activemq-web-console/src/main/webapp/decorators/header.jsp
@@ -62,7 +62,9 @@
                         </div>
                         <div id="site-quicklinks"><P>
                             <a href="http://activemq.apache.org/support.html"
-                               title="Get help and support using Apache ActiveMQ">Support</a></p>
+                               title="Get help and support using Apache ActiveMQ">Support</a>
+                            &#124;
+                            <a href="logout.jsp" title="Logout">Logout</a></p>
                         </div>
                     </div>
 
diff --git a/activemq-web-console/src/main/webapp/logout.jsp b/activemq-web-console/src/main/webapp/logout.jsp
new file mode 100644
index 0000000..e1bd0bf
--- /dev/null
+++ b/activemq-web-console/src/main/webapp/logout.jsp
@@ -0,0 +1,40 @@
+<%--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+--%>
+<%
+response.setStatus(401);
+%>
+<%@include file="WEB-INF/jspf/headertags.jspf" %>
+<html>
+<head>
+<c:set var="pageTitle" value="ActiveMQ Console"/>
+
+<%@include file="decorators/head.jsp" %>
+</head>
+<body>
+
+<%@include file="decorators/header.jsp" %>
+
+<h2>You have been logout</h2>
+
+<p>
+Go back to <a href="<c:url value='/index.jsp'/>">Home</a> to logon again.
+</p>
+
+<%@include file="decorators/footer.jsp" %>
+
+</body>
+</html>
\ No newline at end of file


Mime
View raw message