Project

General

Profile

Revision 8179

add logout links to header and footer. https://projects.ecoinformatics.org/ecoinfo/issues/3761

View differences:

lib/admin/header-section.jsp
31 31
%>
32 32
  <div class=small-message>
33 33
    <a href="<%= request.getContextPath() %>/admin?configureType=login">log in as different user</a> |
34
    <a href="<%= request.getContextPath() %>/metacat?action=logout">logout</a> |
34 35
    <a href="<%= request.getContextPath() %>/docs/user/index.html" target="_blank">view metacat user documentation</a>
35 36
  </div>
36 37
<% 
37 38
} else {
38 39
%>
39 40
  <div class=small-message>
40
    <a href="<%= request.getContextPath() %>/admin?configureType=login">log in as different user</a> |
41
    <a href="<%= request.getContextPath() %>/admin?configureType=login">log in</a> |
41 42
    <a href="<%= request.getContextPath() %>/docs/user/index.html" target="_blank">view metacat user documentation</a>
42 43
  </div>
43 44
<%
lib/admin/footer-section.jsp
34 34
  <div class=small-message>
35 35
    <p>You are logged in as: <%= request.getSession().getAttribute("userId") %></p>
36 36
    <a href="<%= request.getContextPath() %>/admin?configureType=login">log in as different user</a> |
37
    <a href="<%= request.getContextPath() %>/metacat?action=logout">logout</a> |
37 38
    <a href="<%= request.getContextPath() %>/docs/user/index.html" target="_blank">view metacat user documentation</a>
38 39
  </div>
39 40
<% 
......
41 42
%>
42 43
  <div class=small-message>
43 44
    <p>You are not logged in.</p>
44
    <a href="<%= request.getContextPath() %>/admin?configureType=login">log in as different user</a> |
45
    <a href="<%= request.getContextPath() %>/admin?configureType=login">log in</a> |
45 46
    <a href="<%= request.getContextPath() %>/docs/user/index.html" target="_blank">view metacat user documentation</a>
46 47
  </div>
47 48
<%

Also available in: Unified diff