Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
57d212bf
Commit
57d212bf
authored
Oct 10, 2014
by
Roman S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-69: Add "Groups user belongs to" column to the User Summary page
parent
0ce9d081
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
user-summary.jsp
src/web/user-summary.jsp
+26
-2
No files found.
src/web/user-summary.jsp
View file @
57d212bf
...
...
@@ -22,6 +22,7 @@
org.jivesoftware.openfire.admin.AdminManager,
org.jivesoftware.openfire.user.User,
org.jivesoftware.openfire.user.UserManager,
org.jivesoftware.openfire.group.Group,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.LocaleUtils,
org.jivesoftware.util.ParamUtils"
...
...
@@ -160,6 +161,7 @@
<th
nowrap
><fmt:message
key=
"session.details.online"
/></th>
<th
nowrap
><fmt:message
key=
"user.create.username"
/></th>
<th
nowrap
><fmt:message
key=
"user.create.name"
/></th>
<th
nowrap
><fmt:message
key=
"user.roster.groups"
/></th>
<th
nowrap
><fmt:message
key=
"user.summary.created"
/></th>
<th
nowrap
><fmt:message
key=
"user.summary.last-logout"
/></th>
<%
// Don't allow editing or deleting if users are read-only.
...
...
@@ -235,13 +237,35 @@
<%
if
(
lockedOut
)
{
%><img
src=
"/images/forbidden-16x16.gif"
height=
"16"
width=
"16"
align=
"top"
alt=
"
<fmt:message
key=
'user.properties.locked'
/>
"
title=
"
<fmt:message
key=
'user.properties.locked'
/>
"
/><%
}
%>
<%
if
(
pendingLockOut
)
{
%><img
src=
"/images/warning-16x16.gif"
height=
"16"
width=
"16"
align=
"top"
alt=
"
<fmt:message
key=
'user.properties.locked_set'
/>
"
title=
"
<fmt:message
key=
'user.properties.locked_set'
/>
"
/><%
}
%>
</td>
<td
width=
"
3
3%"
>
<td
width=
"
2
3%"
>
<%=
StringUtils
.
escapeHTMLTags
(
user
.
getName
())
%>
</td>
<td
width=
"15%"
>
<%
Collection
<
Group
>
groups
=
webManager
.
getGroupManager
().
getGroups
(
user
);
if
(
groups
.
isEmpty
())
{
%>
<i>
None
</i>
<%
}
else
{
int
count
=
0
;
for
(
Group
group
:
groups
)
{
if
(
count
!=
0
)
{
out
.
print
(
", "
);
}
%>
<a
href=
"group-edit.jsp?group=
<%=
URLEncoder
.
encode
(
group
.
getName
(),
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
group
.
getName
()))
%></a>
<%
count
++;
}
}
%>
</td>
<td
width=
"12%"
>
<%=
JiveGlobals
.
formatDate
(
user
.
getCreationDate
())
%>
</td>
<td
width=
"2
5
%"
>
<td
width=
"2
3
%"
>
<%
long
logoutTime
=
presenceManager
.
getLastActivity
(
user
);
if
(
logoutTime
>
-
1
)
{
out
.
println
(
StringUtils
.
getElapsedTime
(
logoutTime
));
...
...
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