52 lines
1.9 KiB
Plaintext
52 lines
1.9 KiB
Plaintext
#*
|
|
The contents of this file are subject to the Mozilla Public License Version 1.1
|
|
(the "License"); you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
|
|
|
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
|
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
|
language governing rights and limitations under the License.
|
|
|
|
The Original Code is the Venice Web Communities System.
|
|
|
|
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
|
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
|
Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
|
|
|
Contributor(s):
|
|
*#
|
|
#*
|
|
Parameters:
|
|
user = The current user.
|
|
communities = List of member communities.
|
|
can_create = True (set) if the user can create a community.
|
|
*#
|
|
#if( $communities.size() > 0 )
|
|
<div align="left"><table border="0" cellpadding="0" cellspacing="2">
|
|
#foreach( $c in $communities )
|
|
<tr valign="middle">
|
|
<td align="center" width="14">#bullet()</td>
|
|
<td align="left">
|
|
<b><a href="#formatURL( "SERVLET" "community/${c.Alias}" )">#encodeHTML( ${c.Name} )</a></b>
|
|
#if( ${c.isAdministrator($user)} )
|
|
## user is administrator, include the "Host!" graphic
|
|
<img src="#formatURL( "IMAGE" "tag_host.gif" )" alt="Host!" width="40" height="20" border="0" />
|
|
#end
|
|
</td>
|
|
</tr>
|
|
#end
|
|
</table></div>
|
|
#else
|
|
<p><em>You are not a member of any communities.</em></p>
|
|
#end
|
|
|
|
#if( !${user.isAnonymous()} )
|
|
<br />
|
|
<div class="sideboxfooter"><b>[
|
|
<a href="#formatURL( "SERVLET" "TODO" )">Manage</a>
|
|
#if( $can_create )
|
|
| <a href="#formatURL( "SERVLET" "TODO" )">Create New</a>
|
|
#end
|
|
]</b></div>
|
|
#end
|