Commit 270a172e authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Added favicon.ico next to the hostname.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1599 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1d79171a
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
org.jivesoftware.util.LocaleUtils, org.jivesoftware.util.LocaleUtils,
org.jivesoftware.util.JiveGlobals, org.jivesoftware.util.JiveGlobals,
java.util.Date, java.util.Date,
java.util.Calendar"%> java.util.Calendar,
javax.swing.*,
java.net.URL"%>
<%-- <%--
- $RCSfile$ - $RCSfile$
- $Revision$ - $Revision$
...@@ -22,7 +24,21 @@ ...@@ -22,7 +24,21 @@
<tr class="jive-<%= (((count % 2) == 0) ? "even" : "odd") %>"> <tr class="jive-<%= (((count % 2) == 0) ? "even" : "odd") %>">
<td width="1%" nowrap><%= count %></td> <td width="1%" nowrap><%= count %></td>
<td width="47%" nowrap> <td width="47%" nowrap>
<a href="server-session-details.jsp?hostname=<%= URLEncoder.encode(host, "UTF-8") %>" title="<fmt:message key="session.row.cliked" />"><%= host %></a> <table cellpadding="0" cellspacing="0" border="0">
<tr>
<% Object content = null;
try {
content = new URL("http://"+host+"/favicon.ico").openConnection().getContent();
}
catch (Exception e) {}
if (content != null) { %>
<td width="1%" ><img src="http://<%=host%>/favicon.ico" width="16" height="16"></td>
<% } else { %>
<td width="1%" ><img src="images/server_16x16.gif" width="16" height="16"></td>
<% } %>
<td><a href="server-session-details.jsp?hostname=<%= URLEncoder.encode(host, "UTF-8") %>" title="<fmt:message key="session.row.cliked" />"><%= host %></a></td>
</tr>
</table>
</td> </td>
<% if (inSession != null && outSession == null) { %> <% if (inSession != null && outSession == null) { %>
<td width="1%"> <td width="1%">
......
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