venice-dynamo-rewrite/venice-data/velocity/comm/profile.vm

66 lines
2.7 KiB
Plaintext
Raw Normal View History

2003-06-16 19:41:36 -06:00
#*
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 profile of.
logo = Community logo renderable object.
use_category = True (set) if we're using categories on this server.
synopsis = Community synopsis.
location = List of strings containing location information
language = Primary language for community (a com.silverwrist.util.Language object)
rules = Community rules/standards of conduct
*#
#comment( "Profile for community #${community.getCID()}" )
#header2( "Community Profile:" "${community.Name}" )
<table border="0" cellpadding="6" cellspacing="0"><tr valign="top">
<td align="left" class="smcontent">
#render( $logo )<br />
Community created:<br />#formatDate( $community.CreationDate )<br />
#if( $community.LastAccessDate )
Last accessed:<br />#formatDate( $community.LastAccessDate )<br />
#end
#if( $community.LastUpdateDate )
Profile last updated:<br />#formatDate( $community.LastUpdateDate )<br />
#end
<div align="center">
## TODO: Reserved for Invite or Join button
</div>
</td>
<td align="left" class="content">
<b><u>TODO: Type of Community</u></b>
#if( $use_category )
#set( $c = $community.CategoryID )
<br /><b>Category:</b>
<a href="#formatURL( "SERVLET" "find_communities.js.vs?cat=$c" )">#encodeHTML( $community.Category.toString() )</a>
#end
#set( $u = $community.HostUser.Name )
<p><b>Host:</b> <a href="#formatURL( "SERVLET" "user/$u" )">#encodeHTML( $u )</a></p>
<p><em>#encodeHTML( $synopsis )</em></p>
<p>
<b>Location:</b><br />
#if( $location )
#foreach( $t in $location )
#encodeHTML( $t )<br />
#end
#end
</p>
<p><b>Primary Language:</b> #encodeHTML( $language.Name )</p>
<p><b>Standards of Conduct:</b> #encodeHTML( $rules )</p>
</td>
</tr></table>