head	1.1;
access;
symbols
	TIGRIS_1_0_5:1.1
	TIGRIS_1_0:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2001.04.27.06.30.26;	author jrobbins;	state Exp;
branches;
next	;


desc
@@


1.1
log
@added custom templates
@
text
@<!-- helm version -->
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%">
  <TR>
    <TD valign="top">

      <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%">
        <TR>
          <TD CLASS="Welcome">Welcome $loginUser.getRealName()</TD>
          <TD CLASS="StatText" ALIGN="right"><A HREF="$res.encodeUrl("/servlets/UserEdit?userID=$loginUser.getID()")">Edit Profile</A> | <A HREF="$res.encodeUrl("/servlets/TLogout")">Logout</A>
        </TR>
#set $projects = $loginUser.getProjectsForUser()
#if ($projects.size() == 0)  
{  
        <TR>  
          <TD COLSPAN="2" CLASS="PlainText"> 
            <HR SIZE="1" NOSHADE>
<SPAN CLASS="PlainTextBold">What is this?</SPAN> Your personal home page summarizes your development project activity status,
and notifies you to any site-wide project opportunities. Your project sessions always begin here.<br> 
<SPAN CLASS="PlainTextBold">First-time users:</SPAN> <a href="$res.encodeUrl("/project/www/docs/Introduction.html")">need more info?</a> 
<br>
<br>
          </TD> 
        </TR> 
}
      </TABLE>

#set $isProjectOwner = false
#if (!$projects.isEmpty())
{
  #foreach $project in $projects
  {
     #if ($acl.hasPermission("Project Role - Grant", $project))
     {
        #set $isProjectOwner = true
     }
  }
}
## Parse Admin Options widget if user has admin perms or project owner perms
#if ($acl.hasPermission("Project - List", $currentDomain) || $acl.hasPermission("User - List", $currentDomain) || ($isProjectOwner))
{
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/mypages/AdminOptions.wm"
}

      <TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
        <TR>
          <TD WIDTH="100%" bgcolor="#cccccc" COLSPAN="4" CLASS="InputHeader">My Projects</TD>
        </TR>
#if (!$projects.size()==0)
{
        <TR>
          <TD class="ProjectDownloadHeader" VALIGN="top">Project:</TD>
          <TD class="ProjectDownloadHeader" VALIGN="top">Description:</TD>
          <TD class="ProjectDownloadHeader" VALIGN="top">&nbsp;</TD>
        </TR>
  #foreach $project in $projects
  {
       <TR>
        <TD COLSPAN="3">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
            <TR>
              <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
            </TR>
          </TABLE>
        </TD>
       </TR>
        <TR>
    #if ($acl.hasPermission("Project Page - View", $project))
    {
          <TD VALIGN="top" class="PlainText"><A HREF="$res.encodeUrl("$project.getProjectHome()")">$project.getWordMark()</A></TD>
          <TD class="PlainText" VALIGN="top">$project.getShortDescription()</TD>
     #if ($acl.hasPermission("Project - Edit", $project))
     {
          <TD class="PlainText" VALIGN="top"><A HREF="$res.encodeUrl("$project.getProjectPageURL(ProjectEdit)")">Admin</A></TD>
     } #else {
          <TD class="PlainText" VALIGN="top">&nbsp;</TD>
     }
    } #else {
          <TD class="PlainText" VALIGN="top">$project.getWordMark()</TD>
          <TD class="PlainText" VALIGN="top">
          #if ($project.isProprietary())
          {
           [Unavailable - proprietary project]
          } #else {
           $project.getShortDescription()
          }
          </TD>
          </TR>
          <TR><TD COLSPAN="2"><FONT COLOR="RED">Your requested roles in this project have not yet been granted.</FONT></TD></TR>         
    }
        </TR>
  }
} #else {
        <TR>
          <TD COLSPAN="4" CLASS="PlainText">This list captures all development projects on this site in which you have a role.</TD>
        </TR>
}
        <TR>
         <TD COLSPAN="4">
           <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
             <TR>
               <TD BGCOLOR="#cccccc" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
            </TR>
           </TABLE>
         </TD>
        </TR>

     #if ($acl.hasPermission("Project - Suggest", $currentDomain))
     {
        <TR>
          <TD COLSPAN="4" CLASS="StatText"><a href="$res.encodeUrl("/servlets/ProjectAddStep1")">Start New Project</a></TD>
        </TR>
     }

        <TR>
          <TD COLSPAN="4"><HR SIZE="1" NOSHADE></TD>
        </TR>
        <TR>
          <TD COLSPAN="4" HEIGHT="6"><SPACER TYPE="block" HEIGHT="6"></TD>
        </TR>
      </TABLE>

<!-- ========= news items ====+++++++======= -->
#set $newsItems = $loginUser.getNewsItemsForUser()
#if (!$newsItems.isEmpty())
{
      <TABLE CELLSPACING="0" CELLPADDING="3" BORDER="0" width="100%">

        <TR>
          <TD WIDTH="100%" COLSPAN="3" class="InputHeader" BGCOLOR="#cccccc">My Project News</TD>
        </TR>
        <TR>
          <TD class="ProjectDownloadHeader" VALIGN="top">Date:</TD>
          <TD class="ProjectDownloadHeader" VALIGN="top">Project:</TD>
          <TD class="ProjectDownloadHeader" VALIGN="top">Description:</TD>
        </TR>  
  #foreach $item in $newsItems
   {
#set $itemURL=$item.getProject().getProjectPageURL("NewsItemView", "newsID=$item.getID()");
        <TR>
         <TD COLSPAN="3">
           <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
             <TR>
               <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
             </TR>
           </TABLE>
         </TD>
        </TR>
        <TR>
          <TD class="PlainText" VALIGN="top" VALIGN="top">$item.getEventDate()</TD>
          <TD class="PlainText" VALIGN="top"><a HREF="$res.encodeUrl("$item.getProject().getProjectHome()")">$item.getProject().getWordMark()</a></TD>
          <TD class="PlainText" VALIGN="top"><A HREF="$res.encodeUrl("$itemURL")">$item.getHeadline()</A></TD>
        </TR>
  }
        <TR> 
          <TD COLSPAN="3"><HR SIZE="1" NOSHADE></TD> 
        </TR> 
        <TR> 
          <TD COLSPAN="3" HEIGHT="6"><SPACER TYPE="block" HEIGHT="6"></TD> 
        </TR> 
      </TABLE>

}


<!-- ========= hosted projects =========== -->

      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="2" CELLPADDING="2">

        <TR>
          <TD WIDTH="100%" COLSPAN="3" class="InputHeader" BGCOLOR="#cccccc">Hosted Project Categories</TD>
        </TR>
#set $count=$counter.reset() 
#set $count=$counter.set(1) 
#foreach $category in $currentDomain.getCategories($acl)
{
  #if (($count==1) || $count.equals("1")) 
  {  
    <TR BGCOLOR="#eeeeee"> 
  } 
  <TD CLASS="PlainText" VALIGN="top" WIDTH="33%" ALIGN="center"><A HREF="$res.encodeUrl("$category.getProjectHome()")">$category.getName()</A></TD>
  #if ($count==3) 
  {    
    </TR> 
    #set $count=$counter.reset() 
    #set $count=$counter.set(0)  
  } 
  #set $count=$counter.increment()
} 
#if ($count==3)  
{  
    <TD CLASS="PlainText" VALIGN="top" WIDTH="33%" ALIGN="center">&nbsp;</TD>  
     </TR>   
} 
#if ($count==2)   
{   
    <TD CLASS="PlainText" VALIGN="top" WIDTH="33%" ALIGN="center">&nbsp;</TD>   
    <TD CLASS="PlainText" VALIGN="top" WIDTH="33%" ALIGN="center">&nbsp;</TD>   
     </TR>    
}
#if ($projects.size()==0)   
{  
        <TR>
          <TD COLSPAN="4" CLASS="PlainText" VALIGN="top">
            All projects currently hosted in this community are listed here by category, and are linked to category home pages
that list projects by name.
          </TD>
        </TR>
}
        <TR>
          <TD COLSPAN="4"><HR SIZE="1" NOSHADE></TD>
        </TR>
      </TABLE>

    </TD>
##    <TD WIDTH="20">&nbsp;&nbsp;</TD>
##    <TD WIDTH="220" VALIGN="top">
## 
## <! -- Begin Right Column -->
## #include "$documentRoot;/www/www/includes/RightColumn.html"
## <! -- end Right Column -->
## 
##     </TD>
  </TR>
</TABLE>
@
