[jboss-svn-commits] JBL Code SVN: r5122 - labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/profile
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jul 17 16:18:54 EDT 2006
Author: unibrew
Date: 2006-07-17 16:18:53 -0400 (Mon, 17 Jul 2006)
New Revision: 5122
Modified:
labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml
Log:
[JBFORUMS-82] Doing some final changes to UserView.
Modified: labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml
===================================================================
--- labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml 2006-07-17 12:29:02 UTC (rev 5121)
+++ labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml 2006-07-17 20:18:53 UTC (rev 5122)
@@ -33,7 +33,8 @@
<ui:composition template="/views/common/common.xhtml">
<ui:define name="mainContent">
-
+<c:choose>
+ <c:when test="#{profile.poster!=null && profile.poster.id!=-1}">
<table width="100%" cellspacing="2" cellpadding="2" border="0"
align="center">
<tr>
@@ -98,6 +99,7 @@
</td>
<td>
<span class="gen">
+ <c:if test="#{forums:userProperty(profile.poster.user.properties,'INFO_USER_HOMEPAGE')!=null}" >
<b>
<h:outputLink value="${forums:userProperty(profile.poster.user.properties,'INFO_USER_HOMEPAGE')}" style="text-decoration: none;">
<f:verbatim>
@@ -107,6 +109,7 @@
</f:verbatim>
</h:outputLink>
</b>
+ </c:if>
</span>
</td>
</tr>
@@ -149,6 +152,7 @@
<td class="row1" valign="middle" width="100%">
<b>
<span class="gen">
+ <c:if test="#{profile.poster.user.fakeEmail!=null}" >
<h:outputLink value="mailto:${profile.poster.user.fakeEmail}" style="text-decoration: none;">
<f:verbatim>
<img border="0"
@@ -156,6 +160,7 @@
alt="${resource.Send_email}"/>
</f:verbatim>
</h:outputLink>
+ </c:if>
</span>
</b>
</td>
@@ -166,6 +171,7 @@
</td>
<td class="row1" valign="middle">
<span class="gen">
+ <c:if test="#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_SKYPE')!=null}" >
<h:outputLink value="skype:#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_SKYPE')}?add" style="text-decoration: none;">
<f:verbatim>
<img border="0"
@@ -173,6 +179,7 @@
alt="${resource.L_SKYPE}"/>
</f:verbatim>
</h:outputLink>
+ </c:if>
</span>
</td>
</tr>
@@ -192,6 +199,7 @@
</td>
<td class="row1" valign="middle">
<span class="gen">
+ <c:if test="#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_YIM')!=null}" >
<h:outputLink value="http://edit.yahoo.com/config/send_webmesg?.target=#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_YIM')}&.src=pg" style="text-decoration: none;">
<f:verbatim>
<img border="0"
@@ -199,6 +207,7 @@
alt="${resource.YIM}"/>
</f:verbatim>
</h:outputLink>
+ </c:if>
</span>
</td>
</tr>
@@ -208,6 +217,7 @@
</td>
<td class="row1" valign="middle">
<span class="gen">
+ <c:if test="#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_AIM')!=null}" >
<h:outputLink value="aim:goim?screenname=#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_AIM')}&message=Hello+Are+you+there?" style="text-decoration: none;">
<f:verbatim>
<img border="0"
@@ -215,6 +225,7 @@
alt="${resource.AIM}"/>
</f:verbatim>
</h:outputLink>
+ </c:if>
</span>
</td>
</tr>
@@ -223,6 +234,7 @@
<span class="gen">${resource.L_ICQ_NUMBER}:</span>
</td>
<td class="row1">
+ <c:if test="#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_ICQ')!=null}" >
<script language="JavaScript" type="text/javascript"><!--
if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
@@ -238,6 +250,7 @@
alt="${resource.ICQ}"/>
</f:verbatim>
</h:outputLink>
+ </c:if>
</td>
</tr>
</table>
@@ -255,6 +268,29 @@
</td>
</tr>
</table>
+ </c:when>
+ <c:otherwise>
+ <table class="forumline" width="100%" cellspacing="1" cellpadding="4" border="0">
+ <tr>
+ <td>
+ <table width="100%" cellspacing="0" cellpadding="1" border="0">
+ <tr>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td align="center">
+ <span class="gen">${resource.No_such_user}</span>
+ </td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </c:otherwise>
+ </c:choose>
</ui:define>
</ui:composition>
More information about the jboss-svn-commits
mailing list