Commit d6a51732 authored by Daryl Herzmann's avatar Daryl Herzmann Committed by akrherz

Add Last Logout column on search plugin console output to match

the basic console search JM-1358


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11086 b35dd754-fafc-0310-a699-88a17e54d16e
parent bb5f8629
...@@ -44,6 +44,12 @@ ...@@ -44,6 +44,12 @@
Search Plugin Changelog Search Plugin Changelog
</h1> </h1>
<p><b>1.4.4</b> -- Jun 24, 2009</p>
<ul>
<li>Added "Last Logout" to user listing result on admin console. (Daryl Herzmann)</li>
</ul>
<p><b>1.4.3</b> -- August 26, 2008</p> <p><b>1.4.3</b> -- August 26, 2008</p>
<ul> <ul>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<name>Search</name> <name>Search</name>
<description>Provides support for Jabber Search (XEP-0055)</description> <description>Provides support for Jabber Search (XEP-0055)</description>
<author>Ryan Graham</author> <author>Ryan Graham</author>
<version>1.4.3</version> <version>1.4.4</version>
<date>8/26/2008</date> <date>6/24/2009</date>
<minServerVersion>3.5.0</minServerVersion> <minServerVersion>3.5.0</minServerVersion>
<adminconsole> <adminconsole>
......
...@@ -47,6 +47,7 @@ advance.user.search.away=Away ...@@ -47,6 +47,7 @@ advance.user.search.away=Away
advance.user.search.extended=Extended away advance.user.search.extended=Extended away
advance.user.search.not_disturb=Do Not Disturb advance.user.search.not_disturb=Do Not Disturb
advance.user.search.offline=Offline advance.user.search.offline=Offline
advance.user.search.last-logout=Last Logout
search.props.edit.form.title=Search Service Properties search.props.edit.form.title=Search Service Properties
search.props.edit.form.description=Edit search service properties search.props.edit.form.description=Edit search service properties
......
...@@ -27,6 +27,7 @@ advance.user.search.away=Ausente ...@@ -27,6 +27,7 @@ advance.user.search.away=Ausente
advance.user.search.extended=Ausente extendido advance.user.search.extended=Ausente extendido
advance.user.search.not_disturb=N\u00e3o perturbe advance.user.search.not_disturb=N\u00e3o perturbe
advance.user.search.offline=Desconectado advance.user.search.offline=Desconectado
advance.user.search.last-logout=\u00daltima Desconex\u00e3o
search.props.edit.form.title=Propriedades do Servi\u00e7o de Pesquisa search.props.edit.form.title=Propriedades do Servi\u00e7o de Pesquisa
search.props.edit.form.description=xEdit search service properties search.props.edit.form.description=xEdit search service properties
......
...@@ -105,6 +105,7 @@ ...@@ -105,6 +105,7 @@
<th nowrap><fmt:message key="advance.user.search.username" /></th> <th nowrap><fmt:message key="advance.user.search.username" /></th>
<th nowrap><fmt:message key="advance.user.search.name" /></th> <th nowrap><fmt:message key="advance.user.search.name" /></th>
<th nowrap><fmt:message key="advance.user.search.created" /></th> <th nowrap><fmt:message key="advance.user.search.created" /></th>
<th nowrap><fmt:message key="advance.user.search.last-logout" /></th>
<% // Don't allow editing or deleting if users are read-only. <% // Don't allow editing or deleting if users are read-only.
if (!UserManager.getUserProvider().isReadOnly()) { %> if (!UserManager.getUserProvider().isReadOnly()) { %>
<th nowrap><fmt:message key="advance.user.search.edit" /></th> <th nowrap><fmt:message key="advance.user.search.edit" /></th>
...@@ -116,7 +117,7 @@ ...@@ -116,7 +117,7 @@
<% if (users.isEmpty()) { %> <% if (users.isEmpty()) { %>
<tr> <tr>
<td align="center" colspan="7"><fmt:message key="advance.user.search.no_users" /></td> <td align="center" colspan="8"><fmt:message key="advance.user.search.no_users" /></td>
</tr> </tr>
<% <%
...@@ -159,15 +160,24 @@ ...@@ -159,15 +160,24 @@
} }
%> %>
</td> </td>
<td width="30%"> <td width="23%">
<a href="../../user-properties.jsp?username=<%= URLEncoder.encode(user.getUsername(), "UTF-8") %>"><%= JID.unescapeNode(user.getUsername()) %></a> <a href="../../user-properties.jsp?username=<%= URLEncoder.encode(user.getUsername(), "UTF-8") %>"><%= JID.unescapeNode(user.getUsername()) %></a>
</td> </td>
<td width="35"> <td width="33">
<%= user.getName() %> &nbsp; <%= user.getName() %> &nbsp;
</td> </td>
<td width="35%"> <td width="15%">
<%= JiveGlobals.formatDate(user.getCreationDate()) %> &nbsp; <%= JiveGlobals.formatDate(user.getCreationDate()) %> &nbsp;
</td> </td>
<td width="25%">
<% long logoutTime = presenceManager.getLastActivity(user);
if (logoutTime > -1) {
out.println(StringUtils.getElapsedTime(logoutTime));
}
else {
out.println("&nbsp;");
} %>
</td>
<% // Don't allow editing or deleting if users are read-only. <% // Don't allow editing or deleting if users are read-only.
if (!UserManager.getUserProvider().isReadOnly()) { %> if (!UserManager.getUserProvider().isReadOnly()) { %>
<td width="1%" align="center"> <td width="1%" align="center">
...@@ -198,4 +208,4 @@ document.f.criteria.focus(); ...@@ -198,4 +208,4 @@ document.f.criteria.focus();
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment