head	1.6;
access;
symbols;
locks; strict;
comment	@# @;


1.6
date	2001.06.12.23.51.00;	author elicia;	state dead;
branches;
next	1.5;

1.5
date	2001.06.07.15.51.32;	author beril;	state Exp;
branches;
next	1.4;

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

1.3
date	2001.06.02.01.23.18;	author elicia;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.31.21.49.00;	author elicia;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.31.20.09.01;	author elicia;	state Exp;
branches;
next	;


desc
@@


1.6
log
@removed the Tasks.vm file--it is replaced by includes from the docs dir, of servlet-specific Taskbars in html files.
@
text
@#set( $myRoles = $loginUser.getRolesInProject($currentProject) )
#set( $myRequestedRoles = $loginUser.getRequestedRolesInProject($currentProject) )

#if( $currentProject.isCategory() )
  #set( $projectType = "Category" )
#elseif( $currentProject.isGroup() )
  #set( $projectType = "Group" )
#else
  #set( $projectType = "Project" )
#end

#if ($servletName.startsWith("ProjectDocumentView"))
  <tr>
   <th>Tasks :</th>
   <td><div class="pipelinks">

  #if ($document.assertEditPermission($acl))
    #set( $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()"))
         <a href="$editURL">Edit This Document</a> 
  #end
  #if ($document.assertDeletePermission($acl))
    #set( $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()"))
         | <a href="$deleteURL">Delete This Document</a> 
  #end

   </div></td>
  </tr>
#end

#if ($servletName.startsWith("ProjectDocumentList"))
  <tr>
   <th>Tasks :&nbsp;&nbsp;</th>
   <td><div class="pipelinks">

  #if ($rootSection)
    #set($rootSectionID = $rootSection.getID())
    #set($isApproved = $rootSection.isApproved())
  #else
    #set($rootSectionID = $0)
    #set($isApproved = true)
  #end

    #set($addFolderURL = $currentProject.getProjectPageURL("ProjectSectionAdd", "rootSectionID=$rootSectionID"))
    #set($addDocURL = $currentProject.getProjectPageURL("ProjectDocumentAdd", "rootSectionID=$rootSectionID"))
    #set( $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$rootSectionID"))
    #set($deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$rootSectionID"))

    #if ( $acl.hasPermission("Project Document - Approve", $currentProject) && $isApproved )
       <a href="$addFolderURL">Add a Folder</a> | <a href="$addDocURL">Add a Document</a>
    #elseif ( $acl.hasPermission("Project Document - Suggest", $currentProject)  && $isApproved )
       <a href="$addFolderURL">Suggest a Folder</a> | <a href="$addDocURL">Suggest a Document</a>
    #end

  #if ($rootSection)
      #if ($rootSection.assertEditPermission($acl))
  | <a href="$editURL">Edit This Folder</a> 
      #end
      #if ($rootSection.assertDeletePermission($acl))
  | <a href="$deleteURL">Delete This Folder</a> 
      #end
  #end
   
   </div></td>
  </tr>
#end

#if ($servletName.startsWith("ProjectHome"))
  <tr>
   <th>Tasks :&nbsp;&nbsp;</th>
   <td><div class="pipelinks">

     #if ($currentProject.assertEditPermission($acl))
      <a href="$currentProject.getProjectPageURL("ProjectEdit")">Edit This Project</a> 
     #end
      #if( $myRoles.isEmpty() && $myRequestedRoles.isEmpty() )
         | <a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Join This $projectType</a>
      #else
         | <a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Request New Project Role</a>
      #end 

   </div></td>
  </tr>
#end

#if ($servletName.startsWith("ProjectMailingList"))
  <tr>
   <th>Tasks :&nbsp;&nbsp;</th>
   <td><div class="pipelinks">

  #if( $acl.hasPermission("Mailing List - Add", $currentProject) )
      <a href="$currentProject.getProjectPageURL("ProjectMailingListAdd")">Add New Mailing List</a>
  #end

   </div></td>
  </tr>
#end

#if ($servletName.startsWith("MailingListEdit"))
  <tr>
   <th>Tasks :&nbsp;&nbsp;</th>
   <td><div class="pipelinks">

     <a href="/servlets/MailingListDelete?projectID=$currentProject.getID()&list=$listname">Delete Mailing List</a> 
     | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Subscribers">Edit Subscribers</a> 
     | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Digest+Subscribers">Edit Digest Subscribers</a> 
     | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Moderators">Edit Moderators</a> 
     | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Allowed+Posters">Edit Allowed Posters</a>
 
  </div></td>
  </tr>
#end

#if ($servletName.startsWith("ProjectNewsList"))
  <tr>
   <th>Tasks :&nbsp;&nbsp;</th>
    <td><div class="pipelinks">

  #if ( $acl.hasPermission("Project News - Approve", $currentProject) )
      <a href="$currentProject.getProjectPageURL("ProjectNewsAdd")">Add a News Item</a>
  #elseif ( $acl.hasPermission("Project News - Suggest", $currentProject) )
      <a href="$currentProject.getProjectPageURL("ProjectNewsAdd")">Suggest a News Item</a>
  #end

   </div></td>
  </tr>
#end

#if ($servletName.startsWith("NewsItemView"))
  <tr>
   <th>Tasks :&nbsp;&nbsp;</th>
   <td><div class="pipelinks">
  #if ( $newsItem.assertEditPermission($acl) )
     #set( $editURL = $currentProject.getProjectPageURL("ProjectNewsEdit", "newsID=$newsItem.getID()"))
      <a href="editURL">Edit News Item</a>
  #end
  #if ( $newsItem.assertEditPermission($acl) )
     #set( $deleteURL = $currentProject.getProjectPageURL("ProjectNewsDelete", "newsID=$newsItem.getID()"))
     | <a href="$deleteURL">Delete News Item</a>
  #end
   </div></td>
  </tr>
#end

#if ($servletName.startsWith("ProjectMemberList"))
  <tr>
   <th>Tasks :&nbsp;&nbsp;</th>
   <td><div class="pipelinks">
   #if( $acl.hasPermission("Project - Invite", $currentProject) )
      <a href="$currentProject.getProjectPageURL("ProjectInvite")">Invite New Members</a>
   #end
      #if( $myRoles.isEmpty() && $myRequestedRoles.isEmpty() )
         | <a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Join This $projectType</a>
      #else
         | <a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Request New Project Role</a>
      #end 
   #if( $acl.hasPermission("Project Role - Grant", $currentProject) )
    | <a href="$currentProject.getProjectPageURL("ProjectMemberAdd")">Add New Member</a> 
   #end

   </div></td>
  </tr>
#end












@


1.5
log
@recoded the html according to the new html/css standards
@
text
@@


1.4
log
@added tasks for MailingListEdit servlet
@
text
@d13 15
a27 13
  <TR>
    <TD CLASS="ProjectDownloadHeader">Tasks :&nbsp;&nbsp;</TD>
    <TD CLASS="PlainText">
      #if ($document.assertEditPermission($acl))
            #set( $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()"))
           <a href="$editURL">Edit This Document</a> 
      #end
      #if ($document.assertDeletePermission($acl))
            #set( $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()"))
           | <a href="$deleteURL">Delete This Document</a> 
      #end
    </TD>
  </TR>
d31 4
a34 3
  <TR>
    <TD CLASS="ProjectDownloadHeader">Tasks :&nbsp;&nbsp;</TD>
    <TD CLASS="PlainText">
d63 2
a64 2
    </TD>
  </TR>
d68 4
a71 3
  <TR>
    <TD CLASS="ProjectDownloadHeader">Tasks :&nbsp;&nbsp;</TD>
    <TD CLASS="PlainText">
d76 1
a76 1
         | <A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Join This $projectType</A>
d78 1
a78 1
         | <A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Request New Project Role</A>
d80 3
a82 2
    </TD>
  </TR>
d86 4
a89 3
  <TR>
    <TD CLASS="ProjectDownloadHeader">Tasks :&nbsp;&nbsp;</TD>
    <TD CLASS="PlainText">
d93 3
a95 2
    </TD>
  </TR>
d99 12
a110 5
  <TR>
    <TD CLASS="ProjectDownloadHeader">Tasks :&nbsp;&nbsp;</TD>
    <TD CLASS="PlainText"><a HREF="/servlets/MailingListDelete?projectID=$currentProject.getID()&list=$listname">Delete Mailing List | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Subscribers">Edit Subscribers</a> | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Digest+Subscribers">Edit Digest Subscribers</a> | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Moderators">Edit Moderators</a> | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Allowed+Posters">Edit Allowed Posters</a>
    </TD>
  </TR>
d114 4
a117 3
  <TR>
    <TD CLASS="ProjectDownloadHeader">Tasks :&nbsp;&nbsp;</TD>
    <TD CLASS="PlainText">
d123 3
a125 2
    </TD>
  </TR>
d129 3
a131 3
  <TR>
    <TD CLASS="ProjectDownloadHeader">Tasks :&nbsp;&nbsp;</TD>
    <TD CLASS="PlainText">
d140 2
a141 2
    </TD>
  </TR>
d145 3
a147 3
  <TR>
    <TD CLASS="ProjectDownloadHeader">Tasks :&nbsp;&nbsp;</TD>
    <TD CLASS="PlainText">
d152 1
a152 1
         | <A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Join This $projectType</A>
d154 1
a154 1
         | <A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Request New Project Role</A>
d159 3
a161 2
    </TD>
  </TR>
d163 12
@


1.3
log
@added extra Tasks for other pages.
@
text
@d91 8
@


1.2
log
@action links changed so that you cannot add a document or subfolder to an unapproved folder
@
text
@d12 16
d91 1
a91 1
#if ($servletName.startsWith("ProjectNews"))
d99 16
@


1.1
log
@new unified navigation: 3 levels of menus. Top one is breadcrumbs.  Second one is the project Tools menu that lists all the project resourcs and artifacts.  Third one is the Tasks menu that lists all the actions you can take on this page.  Possibly down the line this will replace the action links that are across from the page title...?
@
text
@d18 1
d21 1
d29 1
a29 1
    #if ( $acl.hasPermission("Project Document - Approve", $currentProject) )
d31 1
a31 1
    #elseif ( $acl.hasPermission("Project Document - Suggest", $currentProject) )
@

