venice-dynamo-rewrite/venice-data/velocity/comm/admin/services.vm

64 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

#*
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:
community = Community we're displaying the services of.
services = List of all available services, with an indication as to whether we're using them.
*#
#header2( "Community Services" $community.Name )
<p><a href="#formatURL( "SERVLET" "comm/admin/main.js.vs" )">Return to Previous Menu</a></p>
#if( $services.isEmpty() )
<p><em>There are no community-level services currently defined.</em></p>
#else
<p>Your community may make use of any or all of the following services. Click the appropriate buttons to
add or remove services for your community.</p>
<div align="center"><table border="1" cellpadding="2" cellspacing="0">
<tr>
<th><b>In Use?</b></th>
<th><b>Service Description</b></th>
<th>&nbsp;</th>
</tr>
#set( $cid = $community.getCID() )
#foreach( $s in $services )
<tr>
<td>
#if( $s.using )
<b>Yes</b>
#else
&nbsp;
#end
</td>
<td>
#if( $s.using )
<b>#encodeHTML( $s.descr )</b>
#else
#encodeHTML( $s.descr )
#end
</td>
<td>
#if( $s.using )
<a href="#formatURL( "SERVLET" "comm/admin/svc_remove.js.vs?cc=$cid&id=$s.id" )">#button( "IMAGE" "remove" )</a>
#else
<a href="#formatURL( "SERVLET" "comm/admin/svc_add.js.vs?cc=$cid&id=$s.id" )">#button( "IMAGE" "add" )</a>
#end
</td>
</tr>
#end
</table></div>
#end