head	1.17;
access;
symbols
	TIGRIS_1_1_0RC2:1.14.6.3
	TIGRIS_1_1_0RC1:1.14.6.3
	TIGRIS_1_1:1.14.6.3.0.2
	TIGRIS_1_0_8:1.14.6.3
	TIGRIS_1_0_8RC3:1.14.6.3
	TIGRIS_1_0_8RC2:1.14.6.3
	TIGRIS_1_0_8RC1:1.14.6.3
	TIGRIS_1_0_7:1.14.6.3
	TIGRIS_1_0_7RC3:1.14.6.3
	TIGRIS_1_0_7RC2:1.14.6.3
	TIGRIS_1_0_7RC1:1.14.6.3
	TIGRIS_1_0_6:1.14.6.2
	TIGRIS_1_0_6RC5:1.14.6.2
	TIGRIS_1_0_6RC4:1.14
	TIGRIS_1_0_6RC3:1.14
	TIGRIS_1_0_6RC2:1.14
	TIGRIS_1_0_6RC1:1.14
	TIGRIS_1_0_5:1.14
	TIGRIS_1_0_5RC6:1.14
	TIGRIS_1_0_5RC5:1.14
	TIGRIS_1_0_5RC4:1.14
	TIGRIS_1_0_5RC3:1.14
	TIGRIS_1_0_5RC2:1.14
	TIGRIS_1_0_5RC1:1.14
	TIGRIS_1_0_4:1.14
	TIGRIS_1_0_3:1.14
	TIGRIS_1_0_2:1.14
	TIGRIS_1_0_1:1.14
	TIGRIS_1_0:1.14.0.6
	TIGRIS_1_0_0:1.14
	TIGRIS_1_0_0_RC1:1.14.0.2
	dlr:1.1.1
	HELM_PEER_PORT_BRANCH:1.1.1.1;
locks; strict;
comment	@# @;


1.17
date	2001.05.23.02.04.15;	author dlr;	state dead;
branches;
next	1.16;

1.16
date	2001.04.07.19.59.28;	author dlr;	state Exp;
branches;
next	1.15;

1.15
date	2001.04.07.19.57.46;	author dlr;	state Exp;
branches;
next	1.14;

1.14
date	2001.03.27.13.20.16;	author ms;	state Exp;
branches
	1.14.6.1;
next	1.13;

1.13
date	2001.03.23.20.44.33;	author caitlyn;	state Exp;
branches;
next	1.12;

1.12
date	2001.03.21.18.24.34;	author caitlyn;	state Exp;
branches;
next	1.11;

1.11
date	2001.03.10.07.11.27;	author edk;	state Exp;
branches;
next	1.10;

1.10
date	2001.03.10.01.11.14;	author susank;	state Exp;
branches;
next	1.9;

1.9
date	2001.03.09.22.58.19;	author susank;	state Exp;
branches;
next	1.8;

1.8
date	2001.03.09.04.48.49;	author elicia;	state Exp;
branches;
next	1.7;

1.7
date	2001.03.03.02.47.19;	author edk;	state Exp;
branches;
next	1.6;

1.6
date	2001.02.23.20.44.14;	author ms;	state Exp;
branches;
next	1.5;

1.5
date	2001.02.23.20.43.03;	author ms;	state Exp;
branches;
next	1.4;

1.4
date	2001.02.23.05.50.23;	author edk;	state Exp;
branches;
next	1.3;

1.3
date	2001.02.21.11.22.38;	author edk;	state Exp;
branches;
next	1.2;

1.2
date	2001.02.21.01.56.43;	author edk;	state Exp;
branches;
next	1.1;

1.1
date	2001.02.15.19.01.32;	author elicia;	state dead;
branches
	1.1.1.1
	1.1.2.1;
next	;

1.1.1.1
date	2001.02.21.00.37.00;	author dlr;	state Exp;
branches;
next	;

1.1.2.1
date	2001.02.15.19.01.32;	author elicia;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2001.02.20.13.38.12;	author edk;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2001.02.20.20.20.31;	author edk;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2001.02.20.23.40.16;	author edk;	state Exp;
branches;
next	;

1.14.6.1
date	2001.06.13.19.28.17;	author dprice;	state Exp;
branches;
next	1.14.6.2;

1.14.6.2
date	2001.06.13.19.56.47;	author dprice;	state Exp;
branches;
next	1.14.6.3;

1.14.6.3
date	2001.06.14.14.27.22;	author dprice;	state Exp;
branches;
next	;


desc
@@


1.17
log
@Removed WM templates in favor of Velocity templates.
@
text
@#if ($info) {
  <li class="PlainText">$info
}

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Mailing Lists: <SPAN CLASS="ProjectNameHeader"><A HREF="$res.encodeUrl("$currentProject.getProjectHome()")">$currentProject.getName()</a></SPAN></TD>  
#if ($acl.hasPermission("Mailing List - Add", $currentProject)) {
    <TD ALIGN="right" class="ProjectName"><A HREF="$res.encodeUrl("$currentProject.getProjectPageURL(MailingListAdd)")"><b>Add New Mailing List</b></a></TD>
}
  </TR>
  <tr>
   <td colspan="2"><hr size="1" noshade></td>
  </tr>
</TABLE>
<P>
#if ($mailingLists.isEmpty())
{
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
 <TR>
  <TD class="PlainText" >
   <i>There are no mailing lists for this project.</i>
   #if (($loginUser.isAnonymous()) || (!isLoggedIn))
   {
    <P>
    <i>If you would like to add or edit a mailing list, please <a href="$res.encodeUrl("/servlets/TLogin")">log in</a></i>.
   }
  </TD>
 </TR>
</TABLE>
} #else {
#foreach $list in $mailingLists
{
#set $listAddress = "$list.getAddress("")"




<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
<tr>
<td width="10%" height="1"><spacer type="block" width="1" height="1"></td>
<td width="60%" height="1"><spacer type="block" width="1" height="1"></td>
<td width="30%" height="1"><spacer type="block" width="1" height="1"></td>
</tr>

  <TR>
    <TD colspan="2" width="70%" class="InputHeader">
#if ($myProperties.getProperty("org.tigris.eyebrowse.useLocalMail").equals("false")){
    $listAddress
}
#else
{
    $listAddress 
}
    </TD>
 #if ($acl.hasPermission("Mailing List - Edit",$list.getListName(),$currentProject)) {
    <TD width="30%" ALIGN="right" CLASS="StatText" nowrap>
#set $mailEditURL = "$currentProject.getProjectPageURL("MailingListEdit", "list=$list.getListName()")" &nbsp;</TD>
}

  </TR>



  <TR>
    <TD colspan="3" class="InputHeader">
 #set $archiveURL = "$currentProject.getProjectPageURL("SummarizeList", "listName=$list.getListName()")"
 #set $searchURL  = "$currentProject.getProjectPageURL("SearchList", "listName=$list.getListName()")"
    <span class="StatText">
         <a href="$archiveURL">View Archive</A> | <a href="$searchURL">Search Archive</a>
#if ($acl.hasPermission("Mailing List - Edit",$list.getListName(),$currentProject)) {
#set $mailEditURL = "$currentProject.getProjectPageURL("MailingListEdit", "list=$list.getListName()")"
        | <a href="$mailEditURL">Edit $list.getListName() Mailing List</a>&nbsp;
    </TD>
}

  </TR>

<tr>
<td height="5" colspan="3"><spacer type="block" height="5"></td>
</tr>

  <TR>

<td colspan="3">

<table cellspacing="2" cellpadding="0" border="0">
<tr>
<td width="100" class="PlainText"><b>Description:</b></TD>
<td class="PlainText">$list.getDescription()</TD>
</tr>

#if ($myProperties.getProperty("org.tigris.eyebrowse.useLocalMail").equals("false")){

<tr>
#set $subscribe = "$list.getAddress(subscribe)"
<td class="PlainText"><b>Subscribe:</b></TD>
<td class="PlainText" colspan="2">send email to: <A HREF="mailto:$subscribe">$subscribe</A></TD>
</tr>

<tr>
#set $unsubscribe = "$list.getAddress(unsubscribe)"
<td class="PlainText"><b>Unsubscribe:</b></TD>
<td class="PlainText" colspan="2">send email to: <A HREF="mailto:$unsubscribe">$unsubscribe</A></TD>
</tr>
</table>

</td>
</TR>


#if (!$loginUser.isAnonymous()) {

<tr>
<TD VALIGN="top" CLASS="PlainText" NOWRAP colspan="3"><FORM ACTION="ProjectMailingListList" METHOD="POST"><INPUT TYPE="radio" NAME="subtype" VALUE="normal" CHECKED>&nbsp;Message-by-message&nbsp;&nbsp;&nbsp;<INPUT TYPE="radio" NAME="subtype" VALUE="digest">&nbsp;Digest format</TD>
</TR>

<TR>
<TD VALIGN="top" colspan="3"><INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()"><INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()"><INPUT TYPE="submit" NAME="Button" VALUE="Subscribe">&nbsp;&nbsp;&nbsp;<INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()"><INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()"><INPUT TYPE="submit" NAME="Button" VALUE="Unsubscribe"></FORM></TD>
</TR>


}
}
#else
{
<br>
}

<tr>
<td colspan="3"><hr size="1" noshade></td>
</tr>
</table>

}

}


@


1.16
log
@Two more "URL encoding of CGI query string" fixes.
@
text
@@


1.15
log
@URL encoding of mailing list edit links were causing the name=value
pairs in the CGI query string to be unusable.

ex. MailingListEdit?list%3Dcvs should be MailingListEdit?list=cvs
@
text
@d70 1
a70 1
         <A HREF="$res.encodeUrl("$archiveURL")">View Archive</A> | <A HREF="$res.encodeUrl("$searchURL")">Search Archive</A>  
@


1.14
log
@Changed in eyebrowse the ability to lookup lists by both listId and by listName.
Greatly cleans up the coupling between the archives and helm IMO.

I also removed the useless projecID's in the templates.

This requires an update in eyebrowse also to compile.

note: SearchList is now a bit broken, will be fixed tomorow..

QA note. i tested this with two different lists, browsed by date author etc, it
showed no problems that dont already exist (date browsing).
@
text
@d73 1
a73 1
        | <a HREF="$res.encodeUrl("$mailEditURL")">Edit $list.getListName() Mailing List</a>&nbsp;
@


1.14.6.1
log
@I moved some of the </td>, </tr>, and </table> tags outside #if statements
since their corresponding start tags were outside and in some configurations
the tags didn't balance.  Also reformatted a bit for legability.
@
text
@d40 5
a44 5
  <tr>
    <td width="10%" height="1"><spacer type="block" width="1" height="1"></td>
    <td width="60%" height="1"><spacer type="block" width="1" height="1"></td>
    <td width="30%" height="1"><spacer type="block" width="1" height="1"></td>
  </tr>
d49 1
a49 1
      $listAddress
d53 1
a53 1
      $listAddress 
d56 1
a56 1
#if ($acl.hasPermission("Mailing List - Edit",$list.getListName(),$currentProject)) {
d58 1
a58 3
#set $mailEditURL = "$currentProject.getProjectPageURL("MailingListEdit", "list=$list.getListName()")"
    &nbsp;
    </TD>
d60 1
d63 2
d67 3
a69 3
#set $archiveURL = "$currentProject.getProjectPageURL("SummarizeList", "listName=$list.getListName()")"
#set $searchURL  = "$currentProject.getProjectPageURL("SearchList", "listName=$list.getListName()")"
      <span class="StatText">
d74 1
d76 1
a76 1
    </TD>
d79 13
a91 11
  <tr>
    <td height="5" colspan="3"><spacer type="block" height="5"></td>
  </tr>

  <tr>
    <td colspan="3">
      <table cellspacing="2" cellpadding="0" border="0">
	<tr>
	  <td width="100" class="PlainText"><b>Description:</b></td>
	  <td class="PlainText">$list.getDescription()</td>
	</tr>
d94 2
a95 1
	<tr>
d97 3
a99 3
	  <td class="PlainText"><b>Subscribe:</b></td>
	  <td class="PlainText" colspan="2">send email to: <A HREF="mailto:$subscribe">$subscribe</A></td>
	</tr>
d101 1
a101 1
	<tr>
d103 9
a111 3
	  <td class="PlainText"><b>Unsubscribe:</b></td>
	  <td class="PlainText" colspan="2">send email to: <A HREF="mailto:$unsubscribe">$unsubscribe</A></td>
	</tr>
d113 10
a122 7
	<tr>
	  <TD VALIGN="top" CLASS="PlainText" NOWRAP colspan="3"><FORM ACTION="ProjectMailingListList" METHOD="POST"><INPUT TYPE="radio" NAME="subtype" VALUE="normal" CHECKED>&nbsp;Message-by-message&nbsp;&nbsp;&nbsp;<INPUT TYPE="radio" NAME="subtype" VALUE="digest">&nbsp;Digest format</TD>
	</tr>

	<tr>
	  <TD VALIGN="top" colspan="3"><INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()"><INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()"><INPUT TYPE="submit" NAME="Button" VALUE="Subscribe">&nbsp;&nbsp;&nbsp;<INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()"><INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()"><INPUT TYPE="submit" NAME="Button" VALUE="Unsubscribe"></FORM></TD>
	</tr>
d129 4
a132 7
      </table>
    </td>
  </tr>

  <tr>
    <td colspan="3"><hr size="1" noshade></td>
  </tr>
d138 1
@


1.14.6.2
log
@Remove some harmless but useless cruft and replace it with a comment.
@
text
@d48 1
a48 3
      <!-- This used to have a mailto hyperlink.  If it's ever put pack, be aware that it
	should switch off when
	$myProperties.getProperty("org.tigris.eyebrowse.useLocalMail").equals("true") -->
d50 5
@


1.14.6.3
log
@Change HTML comment to WebMacro comment.  Thanks to Daniel Rall.
@
text
@d48 3
a50 3
      ## This used to have a mailto hyperlink.  If it's ever put pack, be aware that it
      ## should switch off when
      ## $myProperties.getProperty("org.tigris.eyebrowse.useLocalMail").equals("true") -->
@


1.13
log
@changed formatting
put back in subscribe / unsubscribe buttons



PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d55 1
a55 2
 #set $archiveURL = "$currentProject.getProjectPageURL("SummarizeList", "listId=$list.getID()")"
 #set $searchURL  = "$currentProject.getProjectPageURL("SearchList", "listId=$list.getID()")"</TD>
d67 2
a68 2
 #set $archiveURL = "$currentProject.getProjectPageURL("SummarizeList", "listId=$list.getID()")"
 #set $searchURL  = "$currentProject.getProjectPageURL("SearchList", "listId=$list.getID()")"
@


1.12
log
@changed layout, commented out "subscribe" and "unsubscribe" buttons




PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d5 1
a5 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="85%">
d12 3
d19 1
a19 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="85%">
d39 1
a39 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="85%">
d46 2
a47 2
  <TR bgcolor="#dedede">
    <TD colspan="2" width="70%" class="InputHeader" bgcolor="#dedede">
d58 1
a58 1
    <TD width="30%" ALIGN="right" CLASS="StatText" bgcolor="#dedede" nowrap>
d66 2
a67 2
  <TR bgcolor="#efefef">
    <TD colspan="2" class="InputHeader" bgcolor="#efefef">
d71 1
a71 3
         &nbsp;&nbsp;[ <A HREF="$res.encodeUrl("$archiveURL")">View Archive</A> ]
         &nbsp;[ <A HREF="$res.encodeUrl("$searchURL")">Search Archive</A> ]
    </span></TD>
a72 1
    <TD ALIGN="right" CLASS="StatText" bgcolor="#efefef" nowrap>
d74 1
a74 1
        <a HREF="$res.encodeUrl("$mailEditURL")">Edit $list.getListName() Mailing List</a>&nbsp;
a113 1
<!--
d116 1
a116 2
<TD VALIGN="top" CLASS="PlainText" NOWRAP><FORM ACTION="ProjectMailingListList" METHOD="POST"><INPUT TYPE="radio" NAME="subtype" VALUE="normal" CHECKED>Message-by-message</TD>
<TD VALIGN="top" CLASS="PlainText" WIDTH="100%" NOWRAP><INPUT TYPE="radio" NAME="subtype" VALUE="digest">Digest format</TD>
d120 1
a120 2
<TD VALIGN="top"><INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()"><INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()"><INPUT TYPE="submit" NAME="Button" VALUE="Subscribe"> </TD>
<TD VALIGN="top"><INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()"><INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()"><INPUT TYPE="submit" NAME="Button" VALUE="Unsubscribe"></FORM></TD>
a122 1
//-->
a130 1

d132 1
a132 1
<td height="15" colspan="3"><spacer type="block" height="15"></td>
@


1.11
log
@the close table tag for each mailing list was moved just outside the
foreach loop, which produced problems when the number of mailing lists
was not one.
@
text
@d5 1
a5 1
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" WIDTH="85%">
d7 1
a7 1
    <TD class="Header" nowrap>Mailing Lists: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
d9 1
a9 1
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("MailingListAdd")">Add New Mailing List</a></TD>
d23 1
a23 1
    <i>If you would like to add or edit a mailing list, please <a href="/servlets/TLogin">log in</a></i>.
d32 4
d37 8
a44 2
  <TR bgcolor="#efefef">
    <TD colspan="2" class="InputHeader" bgcolor="#efefef">
d46 1
a46 1
    <a href="mailto:$listAddress">$listAddress</a>
d53 13
d68 2
a69 2
         (<A HREF="$archiveURL">View Archive</A>)
         (<A HREF="$searchURL">Search Archive</A>)
d74 1
a74 1
        <a HREF="$mailEditURL">Edit $list.getListName()</a>
d79 5
d85 9
a93 2
    <TD COLSPAN="3" class="PlainText"><b>Description:</b> $list.getDescription()</TD>
  </TR>
d95 2
a96 1
  <TR>
d98 5
a102 3
    <TD COLSPAN="3" class="PlainText"><b>Subscribe:</b> <A HREF="mailto:$subscribe">$subscribe</A></TD>
  </TR>
  <TR>
d104 8
a111 2
    <TD COLSPAN="3" class="PlainText"><b>Unsubscribe:</b> <A HREF="mailto:$unsubscribe">$unsubscribe</A></TD>
  </TR>
d114 11
a124 22
  <TR>
    <TD VALIGN="top" CLASS="PlainText" NOWRAP><FORM ACTION="ProjectMailingListList" METHOD="POST"> 
      <INPUT TYPE="radio" NAME="subtype" VALUE="normal" CHECKED>Message-by-message
    </TD>
    <TD VALIGN="top" CLASS="PlainText" WIDTH="100%" NOWRAP>
      <INPUT TYPE="radio" NAME="subtype" VALUE="digest">Digest format
    </TD>
  </TR>
  <TR>
    <TD VALIGN="top">
<INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()">
<INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()">
<INPUT TYPE="submit" NAME="Button" VALUE="Subscribe">
    </TD>
    <TD VALIGN="top">
<INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()">
<INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()">
<INPUT TYPE="submit" NAME="Button" VALUE="Unsubscribe">
</FORM>
  </TD>
  </TR>
}
d126 1
a126 3
  <TR>
  <TD>&nbsp;</TD>
  </TR>
d128 3
a130 2
} 
#else 
d134 5
@


1.10
log
@added some more ui/style things
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d102 1
a105 1
</table>
@


1.9
log
@moved Edit link to right of grey mailing list "title" bar, and applied css style.
ref: IZ #2835
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d33 1
a33 1
  <TR>
d49 1
a49 1
    <TD ALIGN="right" CLASS="StatText">
@


1.8
log
@made ui consistant. added line prompting guest users to log in if they wish to add or edit.
@
text
@d48 7
d57 1
a57 2
    <TD COLSPAN="2" class="PlainText"><b>Description:</b> $list.getDescription()</TD>
    <TD></TD>
d62 1
a62 1
    <TD COLSPAN="2" class="PlainText"><b>Subscribe:</b> <A HREF="mailto:$subscribe">$subscribe</A></TD>
d66 1
a66 1
    <TD COLSPAN="2" class="PlainText"><b>Unsubscribe:</b> <A HREF="mailto:$unsubscribe">$unsubscribe</A></TD>
a90 7
}

#if ($acl.hasPermission("Mailing List - Edit",$list.getListName(),$currentProject)){
  <TR><TD>
#set $mailEditURL = "$currentProject.getProjectPageURL("MailingListEdit", "list=$list.getListName()")"
        <a HREF="$mailEditURL">Edit $list.getListName()</a>
  </TD></TR>
@


1.7
log
@make the mailing list name a mailto: if useLocalMail is false.
@
text
@d5 1
a5 1
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" WIDTH="100%">
d8 3
d13 16
a28 1

d32 1
a32 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
d34 1
a34 1
    <TD COLSPAN="2" class="InputHeader" bgcolor="#efefef">
d51 1
a102 1
</table>
d105 2
a106 6
#if ($acl.hasPermission("Mailing List - Add", $currentProject)) {
  <table>
  <tr><td>
    Add a <a HREF="$currentProject.getProjectPageURL("MailingListAdd")">new</a> mailing list.
  </td></tr>
  </table>
a107 2


@


1.6
log
@english error
@
text
@d13 1
a13 1
#set $post = "$list.getAddress("")"
d16 8
a23 1
    <TD COLSPAN="2" class="InputHeader" bgcolor="#efefef">$post 
@


1.5
log
@link to mailing-list search servlet
@
text
@d21 1
a21 1
         (<A HREF="$searchURL">SearchArchive</A>)
@


1.4
log
@correct url to get to MailingListAdd
@
text
@d18 5
a22 1
    <span class="StatText">(<A HREF="$archiveURL">View Archive</A>)</span></TD>
@


1.3
log
@get project name, rather than calling a method which doesn't exist
@
text
@d79 1
a79 1
    Add a <a HREF="$mailAddURL">new</a> mailing list.
@


1.2
log
@add new files from the branch to the head (there should be only added
files, ie. no modified files).
@
text
@d7 1
a7 1
    <TD class="Header" nowrap>Mailing Lists: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getListName()</a></SPAN></TD>  
@


1.1
log
@file ProjectMailingListList.wm was initially added on branch HELM_PEER_PORT_BRANCH.
@
text
@d1 86
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@a0 86
#if ($info) {
  <li class="PlainText">$info
}

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Mailing Lists: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getListName()</a></SPAN></TD>  
  </TR>
</TABLE>

#foreach $list in $mailingLists
{
#set $post = "$list.getAddress("")"
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
  <TR>
    <TD COLSPAN="2" class="InputHeader" bgcolor="#efefef">$post 
 #set $archiveURL = "$currentProject.getProjectPageURL("SummarizeList", "listId=$list.getID()")"
    <span class="StatText">(<A HREF="$archiveURL">View Archive</A>)</span></TD>
  </TR>
  <TR>
    <TD COLSPAN="2" class="PlainText"><b>Description:</b> $list.getDescription()</TD>
  </TR>
#if ($myProperties.getProperty("org.tigris.eyebrowse.useLocalMail").equals("false")){
  <TR>
#set $subscribe = "$list.getAddress(subscribe)"
    <TD COLSPAN="2" class="PlainText"><b>Subscribe:</b> <A HREF="mailto:$subscribe">$subscribe</A></TD>
  </TR>
  <TR>
#set $unsubscribe = "$list.getAddress(unsubscribe)"
    <TD COLSPAN="2" class="PlainText"><b>Unsubscribe:</b> <A HREF="mailto:$unsubscribe">$unsubscribe</A></TD>
  </TR>

#if (!$loginUser.isAnonymous()) {
  <TR>
    <TD VALIGN="top" CLASS="PlainText" NOWRAP><FORM ACTION="ProjectMailingListList" METHOD="POST"> 
      <INPUT TYPE="radio" NAME="subtype" VALUE="normal" CHECKED>Message-by-message
    </TD>
    <TD VALIGN="top" CLASS="PlainText" WIDTH="100%" NOWRAP>
      <INPUT TYPE="radio" NAME="subtype" VALUE="digest">Digest format
    </TD>
  </TR>
  <TR>
    <TD VALIGN="top">
<INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()">
<INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()">
<INPUT TYPE="submit" NAME="Button" VALUE="Subscribe">
    </TD>
    <TD VALIGN="top">
<INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()">
<INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()">
<INPUT TYPE="submit" NAME="Button" VALUE="Unsubscribe">
</FORM>
  </TD>
  </TR>
}

#if ($acl.hasPermission("Mailing List - Edit",$list.getListName(),$currentProject)){
  <TR><TD>
#set $mailEditURL = "$currentProject.getProjectPageURL("MailingListEdit", "list=$list.getListName()")"
        <a HREF="$mailEditURL">Edit $list.getListName()</a>
  </TD></TR>
}

  <TR>
  <TD>&nbsp;</TD>
  </TR>

} 
#else 
{
<br>
}
</table>

}
#if ($acl.hasPermission("Mailing List - Add", $currentProject)) {
  <table>
  <tr><td>
    Add a <a HREF="$mailAddURL">new</a> mailing list.
  </td></tr>
  </table>
}




@


1.1.2.1
log
@changed name
@
text
@a0 72
#if ($info) {
  <li class="PlainText">$info
}

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Mailing Lists: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
  </TR>
</TABLE>

#foreach $list in $mailingLists
{
#set $post = "$list.getEmailPrefix()@@$list.getEmailDomain()"
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
  <TR>
    <TD COLSPAN="2" class="InputHeader" bgcolor="#efefef">$post 
 #set $archiveURL = "$currentProject.getProjectPageURL("SummarizeList", "listId=$list.getID()")"
    <span class="StatText">(<A HREF="$archiveURL">View Archive</A>)</span></TD>
  </TR>
  <TR>
    <TD COLSPAN="2" class="PlainText"><b>Description:</b> $list.getDescription()</TD>
  </TR>
#if ($myProperties.getProperty("org.tigris.eyebrowse.useLocalMail").equals("false")){
  <TR>
#set $subscribe = "$list.getEmailPrefix()-subscribe@@$list.getEmailDomain()"
    <TD COLSPAN="2" class="PlainText"><b>Subscribe:</b> <A HREF="mailto:$subscribe">$subscribe</A></TD>
  </TR>
  <TR>
#set $unsubscribe = "$list.getEmailPrefix()-unsubscribe@@$list.getEmailDomain()"
    <TD COLSPAN="2" class="PlainText"><b>Unsubscribe:</b> <A HREF="mailto:$unsubscribe">$unsubscribe</A></TD>
  </TR>

#if (!$loginUser.isAnonymous()) {
  <TR>
    <TD VALIGN="top" CLASS="PlainText" NOWRAP><FORM ACTION="ProjectMail" METHOD="GET"> 
      <INPUT TYPE="radio" NAME="subtype" VALUE="normal" CHECKED>Message-by-message
    </TD>
    <TD VALIGN="top" CLASS="PlainText" WIDTH="100%" NOWRAP>
      <INPUT TYPE="radio" NAME="subtype" VALUE="digest">Digest format
    </TD>
  </TR>
  <TR>
    <TD VALIGN="top">
<INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()">
<INPUT TYPE="hidden" NAME="listName" VALUE="$list.getName()">
<INPUT TYPE="submit" NAME="Button" VALUE="Subscribe">
    </TD>
    <TD VALIGN="top">
<INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()">
<INPUT TYPE="hidden" NAME="listName" VALUE="$list.getName()">
<INPUT TYPE="submit" NAME="Button" VALUE="Unsubscribe">
</FORM>
  </TD>
}

  </TR>
  <TR>
  <TD>&nbsp;</TD>
  </TR>

} 
#else 
{
<br>
}
</table>

}




@


1.1.2.2
log
@use the proper function for getting list email addresses
@
text
@d13 1
a13 1
#set $post = "$list.getAddress("")"
d25 1
a25 1
#set $subscribe = "$list.getAddress(subscribe)"
d29 1
a29 1
#set $unsubscribe = "$list.getAddress(unsubscribe)"
@


1.1.2.3
log
@remove ProjectMail (now ProjectMailingListList); update
ProjectMailingListList as per the new apis; and
move links to mailing list config off ProjectEdit onto ProjectMail
@
text
@d7 1
a7 1
    <TD class="Header" nowrap>Mailing Lists: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getListName()</a></SPAN></TD>  
d45 1
a45 1
<INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()">
d50 1
a50 1
<INPUT TYPE="hidden" NAME="listName" VALUE="$list.getListName()">
a53 8
  </TR>
}

#if ($acl.hasPermission("Mailing List - Edit",$list.getListName(),$currentProject)){
  <TR><TD>
#set $mailEditURL = "$currentProject.getProjectPageURL("MailingListEdit", "list=$list.getListName()")"
        <a HREF="$mailEditURL">Edit $list.getListName()</a>
  </TD></TR>
d56 1
a67 7
}
#if ($acl.hasPermission("Mailing List - Add", $currentProject)) {
  <table>
  <tr><td>
    Add a <a HREF="$mailAddURL">new</a> mailing list.
  </td></tr>
  </table>
@


1.1.2.4
log
@point the action for this to itself, rather than the (now dead) ProjectMail
@
text
@d35 1
a35 1
    <TD VALIGN="top" CLASS="PlainText" NOWRAP><FORM ACTION="ProjectMailingListList" METHOD="POST"> 
@


