[jboss-svn-commits] JBL Code SVN: r38402 - labs/jbossforums/branches/forums130P27/forums/src/resources/portal-forums-war/views/profile.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sat Aug 24 01:05:51 EDT 2013
Author: sviluppatorefico
Date: 2013-08-24 01:05:51 -0400 (Sat, 24 Aug 2013)
New Revision: 38402
Modified:
labs/jbossforums/branches/forums130P27/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml
Log:
bug fixing on view profile
Modified: labs/jbossforums/branches/forums130P27/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml
===================================================================
--- labs/jbossforums/branches/forums130P27/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml 2013-08-15 06:33:59 UTC (rev 38401)
+++ labs/jbossforums/branches/forums130P27/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml 2013-08-24 05:05:51 UTC (rev 38402)
@@ -24,173 +24,161 @@
-->
<div xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:forums="http://www.jboss.com/products/jbossportal/forums"
- class="forumscontainer">
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:c="http://java.sun.com/jstl/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:forums="http://www.jboss.com/products/jbossportal/forums"
+ class="forumscontainer">
-<ui:composition template="/views/common/common.xhtml">
-<ui:define name="mainContent">
-<c:choose>
+ <ui:composition template="/views/common/common.xhtml">
+ <ui:define name="mainContent">
+ <c:choose>
- <c:when test="#{profile.poster!=null && profile.poster.id!=-1}">
-
- <div class="forumbread">
- <ul>
- <li class="first">
-
- <h:commandLink action="viewCategory" value="#{shared.mainPageName}"/>
-
- <ul>
- <li>
- > 
- <h:commandLink action="viewProfile" value="${resource.L_VIEWING_PROFILE}">
- <f:param name="uid" value="${profile.poster.user.id}"/>
- </h:commandLink>
- </li>
- </ul>
-
- </li>
- </ul>
- </div>
-
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="forumtablestyle">
- <tr class="header">
- <td class="forumheaderfirst" colspan="4">
- ${forums:userProperty(profile.poster.user,'INFO_USER_NAME_GIVEN')}
- </td>
- </tr>
- <tr>
- <td class="labelCell" width="10%">
- ${resource.L_JOINED}: 
- </td>
- <td class="valueCell" width="40%">
- ${forums:userProperty(profile.poster.user,'INFO_USER_REGISTRATION_DATE')}
- </td>
- <td class="labelCell" width="10%">
- ${resource.L_EMAIL_ADDRESS}:
- </td>
- <td class="valueCell" width="40%">
- <c:if test="#{forums:userProperty(profile.poster.user,'INFO_USER_EMAIL_FAKE')!=null}" >
- <a href="mailto:${forums:userProperty(profile.poster.user,'INFO_USER_EMAIL_FAKE')}"
- style="text-decoration: none;">
- <img border="0"
- src="#{forums:themeURL('resourceIconEmailURL')}"
- alt="${resource.Send_email}"/>
- </a>
- </c:if>
- </td>
- </tr>
- <tr>
- <td class="labelCell">${resource.L_TOTAL_POSTS}: </td>
- <td class="valueCell">${profile.poster.postCount}</td>
- <td class="labelCell">${resource.L_SKYPE}:</td>
- <td class="valueCell">
- <c:if test="#{forums:userProperty(profile.poster.user,'INFO_USER_IM_SKYPE')!=null}" >
- <a href="skype:#{forums:userProperty(profile.poster.user,'INFO_USER_IM_SKYPE')}?add"
- style="text-decoration: none;">
- <img border="0"
- src="#{forums:themeURL('resourceIconSkypeURL')}"
- alt="${resource.L_SKYPE}"/>
- </a>
- </c:if>
- </td>
- </tr>
- <tr>
- <td class="labelCell">${resource.L_LOCATION}: </td>
- <td class="valueCell">#{forums:userProperty(profile.poster.user,'INFO_USER_LOCATION')}</td>
- <td class="labelCell">${resource.L_MESSENGER}:</td>
- <td class="valueCell">#{forums:userProperty(profile.poster.user,'INFO_USER_IM_MSNM')}</td>
- </tr>
- <tr>
- <td class="labelCell">${resource.L_WEBSITE}: </td>
- <td class="valueCell">
- <c:if test="#{forums:userProperty(profile.poster.user,'INFO_USER_HOMEPAGE')!=null}" >
- <a href="${forums:userProperty(profile.poster.user,'INFO_USER_HOMEPAGE')}"
- style="text-decoration: none;">
- <img border="0"
- src="#{forums:themeURL('resourceIconWWWURL')}"
- alt="${resource.Visit_website}"/>
- </a>
- </c:if>
- </td>
- <td class="labelCell">${resource.L_YAHOO}:</td>
- <td class="valueCell">
- <c:if test="#{forums:userProperty(profile.poster.user,'INFO_USER_IM_YIM')!=null}" >
- <a href="http://edit.yahoo.com/config/send_webmesg?.target=#{forums:userProperty(profile.poster.user,'INFO_USER_IM_YIM')}&.src=pg"
- style="text-decoration: none;">
- <img border="0"
- src="#{forums:themeURL('resourceIconYIMURL')}"
- alt="${resource.YIM}"/>
- </a>
- </c:if>
- </td>
- </tr>
- <tr>
- <td class="labelCell">${resource.L_OCCUPATION}: </td>
- <td class="valueCell">#{forums:userProperty(profile.poster.user,'INFO_USER_OCCUPATION')}</td>
- <td class="labelCell">${resource.L_AIM}:</td>
- <td class="valueCell">
- <c:if test="#{forums:userProperty(profile.poster.user,'INFO_USER_IM_AIM')!=null}" >
- <a href="aim:goim?screenname=#{forums:userProperty(profile.poster.user,'INFO_USER_IM_AIM')}&message=Hello+Are+you+there?"
- style="text-decoration: none;">
- <img border="0"
- src="#{forums:themeURL('resourceIconAIMURL')}"
- alt="${resource.AIM}"/>
- </a>
- </c:if>
- </td>
- </tr>
- <tr>
- <td class="labelCell bottomline">${resource.L_INTERESTS}:</td>
- <td class="valueCell bottomline">#{forums:userProperty(profile.poster.user,'INFO_USER_INTERESTS')}</td>
- <td class="labelCell bottomline">${resource.L_ICQ_NUMBER}:</td>
- <td class="valueCell bottomline">
- <c:if test="#{forums:userProperty(profile.poster.user,'INFO_USER_IM_ICQ')!=null}" >
- <a href="http://www.icq.com/scripts/search.dll?to=#{forums:userProperty(profile.poster.user,'INFO_USER_IM_ICQ')}"
- style="text-decoration: none;">
- <img border="0"
- src="#{forums:themeURL('resourceIconICQURL')}"
- alt="${resource.ICQ}"/>
- </a>
- </c:if>
- </td>
- </tr>
- </table>
-
- <br />
-
- <div class="forumlegendjumpboxfloat">
- <ui:include src="/views/jumpbox.xhtml"/>
- </div>
-
- </c:when>
-
- <c:otherwise>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="forumtablestyle">
- <tr>
- <td>
- <table width="100%" cellspacing="0" cellpadding="1" border="0">
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td align="center">
- ${resource.No_such_user}
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </c:otherwise>
+ <c:when
+ test="#{profile.poster!=null && profile.poster.id!=-1}">
+ <h:form>
+ <div class="forumbread">
+ <ul>
+ <li class="first"><h:commandLink action="viewCategory"
+ value="#{shared.mainPageName}" />
-</c:choose>
-</ui:define>
-</ui:composition>
+ <ul>
+ <li>>  <h:commandLink action="viewProfile"
+ value="${resource.L_VIEWING_PROFILE}">
+ <f:param name="uid" value="${profile.poster.user.id}" />
+ </h:commandLink>
+ </li>
+ </ul></li>
+ </ul>
+ </div>
+ </h:form>
+ <table width="100%" border="0" cellpadding="0" cellspacing="0"
+ class="forumtablestyle">
+ <tr class="header">
+ <td class="forumheaderfirst" colspan="4">
+ ${forums:userProperty(profile.poster.user,'INFO_USER_NAME_GIVEN')}
+ </td>
+ </tr>
+ <tr>
+ <td class="labelCell" width="10%">
+ ${resource.L_JOINED}: </td>
+ <td class="valueCell" width="40%">
+ ${forums:userProperty(profile.poster.user,'INFO_USER_REGISTRATION_DATE')}
+ </td>
+ <td class="labelCell" width="10%">
+ ${resource.L_EMAIL_ADDRESS}:</td>
+ <td class="valueCell" width="40%"><c:if
+ test="#{forums:userProperty(profile.poster.user,'INFO_USER_EMAIL_FAKE')!=null}">
+ <a
+ href="mailto:${forums:userProperty(profile.poster.user,'INFO_USER_EMAIL_FAKE')}"
+ style="text-decoration: none;"> <img border="0"
+ src="#{forums:themeURL('resourceIconEmailURL')}"
+ alt="${resource.Send_email}" />
+ </a>
+ </c:if></td>
+ </tr>
+ <tr>
+ <td class="labelCell">${resource.L_TOTAL_POSTS}: </td>
+ <td class="valueCell">${profile.poster.postCount}</td>
+ <td class="labelCell">${resource.L_SKYPE}:</td>
+ <td class="valueCell"><c:if
+ test="#{forums:userProperty(profile.poster.user,'INFO_USER_IM_SKYPE')!=null}">
+ <a
+ href="skype:#{forums:userProperty(profile.poster.user,'INFO_USER_IM_SKYPE')}?add"
+ style="text-decoration: none;"> <img border="0"
+ src="#{forums:themeURL('resourceIconSkypeURL')}"
+ alt="${resource.L_SKYPE}" />
+ </a>
+ </c:if></td>
+ </tr>
+ <tr>
+ <td class="labelCell">${resource.L_LOCATION}: </td>
+ <td class="valueCell">#{forums:userProperty(profile.poster.user,'INFO_USER_LOCATION')}</td>
+ <td class="labelCell">${resource.L_MESSENGER}:</td>
+ <td class="valueCell">#{forums:userProperty(profile.poster.user,'INFO_USER_IM_MSNM')}</td>
+ </tr>
+ <tr>
+ <td class="labelCell">${resource.L_WEBSITE}: </td>
+ <td class="valueCell"><c:if
+ test="#{forums:userProperty(profile.poster.user,'INFO_USER_HOMEPAGE')!=null}">
+ <a
+ href="${forums:userProperty(profile.poster.user,'INFO_USER_HOMEPAGE')}"
+ style="text-decoration: none;"> <img border="0"
+ src="#{forums:themeURL('resourceIconWWWURL')}"
+ alt="${resource.Visit_website}" />
+ </a>
+ </c:if></td>
+ <td class="labelCell">${resource.L_YAHOO}:</td>
+ <td class="valueCell"><c:if
+ test="#{forums:userProperty(profile.poster.user,'INFO_USER_IM_YIM')!=null}">
+ <a
+ href="http://edit.yahoo.com/config/send_webmesg?.target=#{forums:userProperty(profile.poster.user,'INFO_USER_IM_YIM')}&.src=pg"
+ style="text-decoration: none;"> <img border="0"
+ src="#{forums:themeURL('resourceIconYIMURL')}"
+ alt="${resource.YIM}" />
+ </a>
+ </c:if></td>
+ </tr>
+ <tr>
+ <td class="labelCell">${resource.L_OCCUPATION}: </td>
+ <td class="valueCell">#{forums:userProperty(profile.poster.user,'INFO_USER_OCCUPATION')}</td>
+ <td class="labelCell">${resource.L_AIM}:</td>
+ <td class="valueCell"><c:if
+ test="#{forums:userProperty(profile.poster.user,'INFO_USER_IM_AIM')!=null}">
+ <a
+ href="aim:goim?screenname=#{forums:userProperty(profile.poster.user,'INFO_USER_IM_AIM')}&message=Hello+Are+you+there?"
+ style="text-decoration: none;"> <img border="0"
+ src="#{forums:themeURL('resourceIconAIMURL')}"
+ alt="${resource.AIM}" />
+ </a>
+ </c:if></td>
+ </tr>
+ <tr>
+ <td class="labelCell bottomline">${resource.L_INTERESTS}:</td>
+ <td class="valueCell bottomline">#{forums:userProperty(profile.poster.user,'INFO_USER_INTERESTS')}</td>
+ <td class="labelCell bottomline">${resource.L_ICQ_NUMBER}:</td>
+ <td class="valueCell bottomline"><c:if
+ test="#{forums:userProperty(profile.poster.user,'INFO_USER_IM_ICQ')!=null}">
+ <a
+ href="http://www.icq.com/scripts/search.dll?to=#{forums:userProperty(profile.poster.user,'INFO_USER_IM_ICQ')}"
+ style="text-decoration: none;"> <img border="0"
+ src="#{forums:themeURL('resourceIconICQURL')}"
+ alt="${resource.ICQ}" />
+ </a>
+ </c:if></td>
+ </tr>
+ </table>
+
+ <br />
+
+ <div class="forumlegendjumpboxfloat">
+ <ui:include src="/views/jumpbox.xhtml" />
+ </div>
+ </c:when>
+
+ <c:otherwise>
+ <table width="100%" border="0" cellpadding="0" cellspacing="0"
+ class="forumtablestyle">
+ <tr>
+ <td>
+ <table width="100%" cellspacing="0" cellpadding="1" border="0">
+ <tr>
+ <td> </td>
+ </tr>
+ <tr>
+ <td align="center">${resource.No_such_user}</td>
+ </tr>
+ <tr>
+ <td> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </c:otherwise>
+
+ </c:choose>
+ </ui:define>
+ </ui:composition>
</div>
More information about the jboss-svn-commits
mailing list