head	1.10;
access;
symbols
	TIGRIS_1_1_0RC2:1.9
	TIGRIS_1_1_0RC1:1.9
	TIGRIS_1_1:1.9.0.4
	TIGRIS_1_0_8:1.9
	TIGRIS_1_0_8RC3:1.9
	TIGRIS_1_0_8RC2:1.9
	TIGRIS_1_0_8RC1:1.9
	TIGRIS_1_0_7:1.9
	TIGRIS_1_0_7RC3:1.9
	TIGRIS_1_0_7RC2:1.9
	TIGRIS_1_0_7RC1:1.9
	TIGRIS_1_0_6:1.9
	TIGRIS_1_0_6RC5:1.9
	TIGRIS_1_0_6RC4:1.9
	TIGRIS_1_0_6RC3:1.9
	TIGRIS_1_0_6RC2:1.9
	TIGRIS_1_0_6RC1:1.9
	TIGRIS_1_0_5:1.9
	TIGRIS_1_0_5RC6:1.9
	TIGRIS_1_0_5RC5:1.9
	TIGRIS_1_0_5RC4:1.9
	TIGRIS_1_0_5RC3:1.9
	TIGRIS_1_0_5RC2:1.9
	TIGRIS_1_0_5RC1:1.9
	TIGRIS_1_0_4:1.9
	TIGRIS_1_0_3:1.9
	TIGRIS_1_0_2:1.9
	TIGRIS_1_0_1:1.9
	TIGRIS_1_0:1.9.0.6
	TIGRIS_1_0_0:1.9
	TIGRIS_1_0_0_RC1:1.9.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.6
	TIGRIS_0_9_2_3:1.6
	HELM_PEER_PORT_BRANCH:1.1.1.2
	TURBINE_PEER:1.6
	TIGRIS_0_9_2_1:1.6
	TIGRIS_0_9_2:1.6.0.4
	TIGRIS_0_9_0:1.6.0.2
	TIGRIS_0_8_4:1.3.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1;
locks; strict;
comment	@# @;


1.10
date	2001.05.23.02.04.14;	author dlr;	state dead;
branches;
next	1.9;

1.9
date	2001.03.06.22.26.25;	author elicia;	state Exp;
branches;
next	1.8;

1.8
date	2001.02.23.22.52.03;	author jody;	state Exp;
branches;
next	1.7;

1.7
date	2001.02.21.01.08.29;	author dlr;	state Exp;
branches;
next	1.6;

1.6
date	2000.12.14.18.28.52;	author leonardr;	state Exp;
branches
	1.6.6.1;
next	1.5;

1.5
date	2000.12.07.20.42.53;	author jrobbins;	state Exp;
branches;
next	1.4;

1.4
date	2000.12.04.19.53.54;	author elicia;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.29.20.54.39;	author cameron;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2000.11.15.16.18.05;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.12.21.18.03;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.18.03;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.36.50;	author dlr;	state Exp;
branches;
next	;

1.3.2.1
date	2000.12.05.06.34.18;	author jrobbins;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	2000.12.09.06.59.34;	author jrobbins;	state Exp;
branches;
next	;

1.6.6.1
date	2001.01.31.02.05.50;	author leonardr;	state Exp;
branches;
next	1.6.6.2;

1.6.6.2
date	2001.02.12.17.20.30;	author leonardr;	state Exp;
branches;
next	1.6.6.3;

1.6.6.3
date	2001.02.13.00.10.19;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Removed WM templates in favor of Velocity templates.
@
text
@<FORM NAME="DomainProjectsForm" METHOD="post" ACTION="DomainProjects">

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="2" WIDTH="100%">
 <TR>
  <TD class="Header" nowrap>
   Hosted Projects: 
   <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN>
  </TD>  

<!--
    <TD CLASS="Welcome">View by <select name="viewSelect">
    <option value="">Topical Categories</option> 
    <option value="">Alphabetically</option>
    <option value="">License</option>
    </select>
    <input type="submit" name="submit_Go" value="Go">
    </TD>
-->

  <TD CLASS="PlainText" ALIGN="right">
   #if ($acl.hasPermission("Project - Suggest", $currentDomain))
   {
    <a href="/servlets/ProjectAdd">Start New Project</a> 
   }
<!-- | <a href="/servlets/DomainProjectCategories">Edit Categories</a> -->
  </TD>
 </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" width="100%">
 <TR>
  <TD COLSPAN="6"><HR SIZE="1" NOSHADE></TD>
 </TR>

 #set $categories=$currentDomain.getCategories($acl)
 #if ($categories.size()==0)
 { 
   <TR> 
     <td colspan="2" class="PlainText"><b>No projects in domain.</b></td> 
   </TR> 
 } 
  <TR>  
    <TD CLASS="ProjectDownloadHeader" VALIGN="top">Category:</TD>  
    <TD CLASS="ProjectDownloadHeader" VALIGN="top">Projects:</TD>  
  </TR> 
#foreach $category in $categories 
{ 
    #set $projects = $category.getProjects($acl) 
    #set $projectHome=$category.getProjectHome( ) 
   <TR> 
      <TD CLASS="ResourcesHeader" VALIGN="top"><a href="$projectHome">$category.getName()</a></TD> 
      <TD CLASS="PlainText" VALIGN="top">$category.getProjects($acl).size()</TD>
   </TR>
   <TR>
      <TD class="PlainText" colspan="2">$category.getShortDescription()</TD> 
   </TR> 
      <TR>
        <TD COLSPAN="2">
          <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>
} 
</TABLE>

@


1.9
log
@put description on a separate line and added gray separator bars between categories, since as it was it was too sparse
@
text
@@


1.8
log
@condensed the listings in DomainProjects.wm :jody
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d39 1
a39 1
     <td class="PlainText"><b>No projects in domain.</b></td> 
a44 1
    <TD CLASS="ProjectDownloadHeader" VALIGN="top">Description:</TD>  
d52 4
a55 2
      <TD CLASS="PlainText" VALIGN="top">$category.getProjects($acl).size()</TD> 
      <TD CLASS="PlainText" VALIGN="top">$category.getShortDescription()</TD> 
d57 9
@


1.7
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d37 20
a56 71
 {
  <tr>
   <td class="PlainText"><b>No projects in domain.</b></td>
  </tr>
 }

 #foreach $category in $categories
 {
  #set $projects = $category.getProjects($acl)
  #set $projectHome=$category.getProjectHome()
  <TR>
   <TD class="ResourcesHeader" COLSPAN="6" width="100%">
    <a href="$projectHome">$category.getName()</a>:
    <SPAN class="PlainText">$category.getShortDescription()</SPAN>
   </TD>
   </TR>
   #if ($projects.isEmpty())
   {
    <TR>
     <TD class="PlainText" colspan="6">
      There are no visible projects for this category.
     </TD>
    </TR>
   } #else {
    <TR>
     <TD>&nbsp;</TD>
     <TD class="ProjectDownloadHeader">Project</TD>
     <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD> 
     <TD class="ProjectDownloadHeader">License</TD>
     <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD> 
     <TD class="ProjectDownloadHeader">Description</TD>
    </TR>
    #foreach $project in $projects
    {
     <TR> 
      <TD COLSPAN="6">  
       <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>&nbsp;</TD> 
    <TD class="PlainText">
    #set $projectHome=$project.getProjectHome()
    <a href="$projectHome">$project.getName()</a></TD>
    <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD>  
    <TD class="PlainText">$project.getLicense()</TD>
    <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD>  
    <TD class="PlainText">
    #if (!$project.isApproved())
    {
     #if ($acl.hasPermission("Project - Edit", $currentProject))
     {
      <font color="red"><a href="ProjectApproval">Pending Approval</a>:</font>
     } #else {
      <font color="red">Pending Approval:</font>
     } 
    } 
    $project.getShortDescription()</TD>
   </TR>
  } 
 }
 <TR>
  <TD COLSPAN="6"><HR SIZE="1" NOSHADE></TD>
 </TR>
}
@


1.6
log
@Treat categories as project groups.
@
text
@d4 14
a17 9
    <TR>
       <TD class="Header" nowrap>Hosted Projects: <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN></TD>  
<!--               <TD CLASS="Welcome">View by <select name="viewSelect">
                  <option value="">Topical Categories</option> 
                  <option value="">Alphabetically</option>
                  <option value="">License</option>
                  </select>
                  <input type="submit" name="submit_Go" value="Go">
               </TD>
d20 5
a24 6

       <TD CLASS="PlainText" ALIGN="right">
       #if ($acl.hasPermissionForDomain("Project - Suggest", $currentDomain.getID()))
        {
         <a href="/servlets/ProjectAdd">Start New Project</a> 
        }
d26 2
a27 2
      </TD>
    </TR>
d31 3
a33 3
    <TR>
       <TD COLSPAN="6"><HR SIZE="1" NOSHADE></TD>
    </TR>
d35 3
a37 3
#set $categories=$currentDomain.getCategories()
#if ($categories.size()==0)
{
d39 1
a39 1
    <td class="PlainText"><b>No projects in domain.</b></td>
d41 1
a41 1
}
d43 9
a51 7
#foreach $category in $categories
{
    #set $projects = $category.getProjects($acl)
    #set $projectHome=$category.getProjectHome( )
   <TR>
      <TD class="ResourcesHeader" COLSPAN="6" width="100%"><a href="$projectHome">$category.getName()</a>:
      <SPAN class="PlainText">$category.getShortDescription()</SPAN></TD>
d53 20
a72 18
     #if ($projects.size()==0)
     {
       <TR>
         <TD class="PlainText" colspan="6">There are no visible projects for this category.</TD>
       </TR>
     } #else {
   <TR>
       <TD>&nbsp;</TD>
       <TD class="ProjectDownloadHeader">Project</TD>
       <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD> 
       <TD class="ProjectDownloadHeader">License</TD>
       <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD> 
       <TD class="ProjectDownloadHeader">Description</TD>
   </TR>
      #foreach $project in $projects
      {
   <TR> 
     <TD COLSPAN="6">  
d75 3
a77 1
           <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
d83 16
a98 19
       <TD>&nbsp;</TD> 
       <TD class="PlainText">
       #set $projectHome=$project.getProjectHome( )
	   <a href="$projectHome">$project.getName()</a></TD>
       <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD>  
       <TD class="PlainText">$project.getLicense()</TD>
       <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD>  
       <TD class="PlainText">
	 #if (!$project.isApproved())
	 {
	   #if ($acl.hasPermissionForProject("Project - Edit", $currentProject.getID()))
	   {
	      <font color="red"><a href="ProjectApproval">Pending Approval</a>:</font>
	   } #else {
	      <font color="red">Pending Approval:</font>
	   } 
         } 
       $project.getShortDescription()</TD>
   </TR>
d100 1
a100 3
   }
   <TR>
       <TD COLSPAN="6"><HR SIZE="1" NOSHADE></TD>
d102 5
@


1.6.6.1
log
@Converted permission checking somewhat.
@
text
@d17 1
a17 1
       #if ($acl.hasPermissionForDomain("Project - Suggest", $currentDomain))
d83 1
a83 1
	   #if ($acl.hasPermissionForProject("Project - Edit", $currentProject))
@


1.6.6.2
log
@Got rid of calls to deprecated permission checking methods.
@
text
@d17 1
a17 1
       #if ($acl.hasPermission("Project - Suggest", $currentDomain))
d83 1
a83 1
	   #if ($acl.hasPermission("Project - Edit", $currentProject))
@


1.6.6.3
log
@Ported DomainProjects servlet.
@
text
@d4 10
a13 5
 <TR>
  <TD class="Header" nowrap>
   Hosted Projects: 
   <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN>
  </TD>  
a14 9
<!--
    <TD CLASS="Welcome">View by <select name="viewSelect">
    <option value="">Topical Categories</option> 
    <option value="">Alphabetically</option>
    <option value="">License</option>
    </select>
    <input type="submit" name="submit_Go" value="Go">
    </TD>
-->
d16 5
a20 5
  <TD CLASS="PlainText" ALIGN="right">
   #if ($acl.hasPermission("Project - Suggest", $currentDomain))
   {
    <a href="/servlets/ProjectAdd">Start New Project</a> 
   }
d22 2
a23 2
  </TD>
 </TR>
d27 3
a29 3
 <TR>
  <TD COLSPAN="6"><HR SIZE="1" NOSHADE></TD>
 </TR>
d31 3
a33 3
 #set $categories=$currentDomain.getCategories($acl)
 #if ($categories.size()==0)
 {
d35 1
a35 1
   <td class="PlainText"><b>No projects in domain.</b></td>
d37 1
a37 1
 }
d39 21
a59 9
 #foreach $category in $categories
 {
  #set $projects = $category.getProjects($acl)
  #set $projectHome=$category.getProjectHome()
  <TR>
   <TD class="ResourcesHeader" COLSPAN="6" width="100%">
    <a href="$projectHome">$category.getName()</a>:
    <SPAN class="PlainText">$category.getShortDescription()</SPAN>
   </TD>
d61 4
a64 20
   #if ($projects.isEmpty())
   {
    <TR>
     <TD class="PlainText" colspan="6">
      There are no visible projects for this category.
     </TD>
    </TR>
   } #else {
    <TR>
     <TD>&nbsp;</TD>
     <TD class="ProjectDownloadHeader">Project</TD>
     <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD> 
     <TD class="ProjectDownloadHeader">License</TD>
     <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD> 
     <TD class="ProjectDownloadHeader">Description</TD>
    </TR>
    #foreach $project in $projects
    {
     <TR> 
      <TD COLSPAN="6">  
d67 1
a67 3
           <TD BGCOLOR="#efefef" HEIGHT="1">
            <SPACER TYPE="block" HEIGHT="1">
           </TD>
d73 19
a91 16
    <TD>&nbsp;</TD> 
    <TD class="PlainText">
    #set $projectHome=$project.getProjectHome()
    <a href="$projectHome">$project.getName()</a></TD>
    <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD>  
    <TD class="PlainText">$project.getLicense()</TD>
    <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD>  
    <TD class="PlainText">
    #if (!$project.isApproved())
    {
     #if ($acl.hasPermission("Project - Edit", $currentProject))
     {
      <font color="red"><a href="ProjectApproval">Pending Approval</a>:</font>
     } #else {
      <font color="red">Pending Approval:</font>
     } 
d93 3
a95 1
    $project.getShortDescription()</TD>
a96 5
  } 
 }
 <TR>
  <TD COLSPAN="6"><HR SIZE="1" NOSHADE></TD>
 </TR>
@


1.5
log
@added guard to start project
@
text
@d41 1
d47 1
a47 1
     #if ($category.getCategoryProjects($acl).size()==0)
d61 1
a61 1
      #foreach $project in $category.getCategoryProjects($acl)
@


1.4
log
@added short description instead of "Resources and description. ."
@
text
@d14 9
a22 2
       <TD CLASS="PlainText" ALIGN="right"><a href="/servlets/ProjectAdd">Start New Project</a> 
<!-- | <a href="/servlets/DomainProjectCategories">Edit Categories</a></TD> -->
@


1.3
log
@added separator lines to visually distiguish long lists.
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d37 1
a37 1
      <SPAN class="PlainText">Resources and discussion for the $category.getName() category</SPAN></TD>
@


1.3.2.1
log
@merged in changes from HEAD
@
text
@d37 1
a37 1
      <SPAN class="PlainText">$category.getShortDescription()</SPAN></TD>
@


1.3.2.2
log
@moved changes from HEAD
@
text
@d14 2
a15 9


       <TD CLASS="PlainText" ALIGN="right">
       #if ($acl.hasPermissionForDomain("Project - Suggest", $currentDomain.getID()))
        {
         <a href="/servlets/ProjectAdd">Start New Project</a> 
        }
<!-- | <a href="/servlets/DomainProjectCategories">Edit Categories</a> -->
      </TD>
@


1.2
log
@Refactored code.
@
text
@d55 9
d83 1
a83 1
   </TR>      
@


1.1
log
@Initial revision
@
text
@d64 1
a64 1
	 #if ($project.getApprovedBy().equals($nobodyID))
d66 1
a66 1
	   #if ($acl.hasPermissionForProject("Project Edit", $currentProject.getID()))
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d4 9
a12 14
 <TR>
  <TD class="Header" nowrap>
   Hosted Projects: 
   <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN>
  </TD>  

<!--
    <TD CLASS="Welcome">View by <select name="viewSelect">
    <option value="">Topical Categories</option> 
    <option value="">Alphabetically</option>
    <option value="">License</option>
    </select>
    <input type="submit" name="submit_Go" value="Go">
    </TD>
d14 3
a16 9

  <TD CLASS="PlainText" ALIGN="right">
   #if ($acl.hasPermission("Project - Suggest", $currentDomain))
   {
    <a href="/servlets/ProjectAdd">Start New Project</a> 
   }
<!-- | <a href="/servlets/DomainProjectCategories">Edit Categories</a> -->
  </TD>
 </TR>
d20 3
a22 3
 <TR>
  <TD COLSPAN="6"><HR SIZE="1" NOSHADE></TD>
 </TR>
d24 3
a26 3
 #set $categories=$currentDomain.getCategories($acl)
 #if ($categories.size()==0)
 {
d28 1
a28 1
   <td class="PlainText"><b>No projects in domain.</b></td>
d30 1
a30 1
 }
d32 6
a37 9
 #foreach $category in $categories
 {
  #set $projects = $category.getProjects($acl)
  #set $projectHome=$category.getProjectHome()
  <TR>
   <TD class="ResourcesHeader" COLSPAN="6" width="100%">
    <a href="$projectHome">$category.getName()</a>:
    <SPAN class="PlainText">$category.getShortDescription()</SPAN>
   </TD>
d39 13
a51 28
   #if ($projects.isEmpty())
   {
    <TR>
     <TD class="PlainText" colspan="6">
      There are no visible projects for this category.
     </TD>
    </TR>
   } #else {
    <TR>
     <TD>&nbsp;</TD>
     <TD class="ProjectDownloadHeader">Project</TD>
     <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD> 
     <TD class="ProjectDownloadHeader">License</TD>
     <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD> 
     <TD class="ProjectDownloadHeader">Description</TD>
    </TR>
    #foreach $project in $projects
    {
     <TR> 
      <TD COLSPAN="6">  
       <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
         <TR>
           <TD BGCOLOR="#efefef" HEIGHT="1">
            <SPACER TYPE="block" HEIGHT="1">
           </TD>
         </TR>
       </TABLE>
     </TD>
d53 2
d56 19
a74 16
    <TD>&nbsp;</TD> 
    <TD class="PlainText">
    #set $projectHome=$project.getProjectHome()
    <a href="$projectHome">$project.getName()</a></TD>
    <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD>  
    <TD class="PlainText">$project.getLicense()</TD>
    <TD WIDTH="3"><SPACER TYPE="block" WIDTH="3"></TD>  
    <TD class="PlainText">
    #if (!$project.isApproved())
    {
     #if ($acl.hasPermission("Project - Edit", $currentProject))
     {
      <font color="red"><a href="ProjectApproval">Pending Approval</a>:</font>
     } #else {
      <font color="red">Pending Approval:</font>
     } 
d76 3
a78 1
    $project.getShortDescription()</TD>
a79 5
  } 
 }
 <TR>
  <TD COLSPAN="6"><HR SIZE="1" NOSHADE></TD>
 </TR>
@

