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

79 lines
3.0 KiB
Plaintext
Raw Permalink 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.
type = Community type description.
category = The community's category, 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
homepage = Community home page
2003-06-16 19:41:36 -06:00
*#
#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>$!type</u></b>
#if( $category )
#set( $limit = $category.getNumLevels() - 1 )
2003-06-16 19:41:36 -06:00
<br /><b>Category:</b>
#foreach( $i in [0..$limit] )
#if( $i > 0 ): #end
#set( $c = $category.getIDAtLevel($i) )
<a href="#formatURL( "SERVLET" "find_communities.js.vs?cat=$c" )">#encodeHTML( $category.getTitleAtLevel($i) )</a>
#end
#end
#if( $synopsis )
<p><em>#encodeHTML( $synopsis )</em></p>
2003-06-16 19:41:36 -06:00
#end
#set( $u = $community.HostUser.Name )
<p><b>Host:</b> <a href="#formatURL( "SERVLET" "user/$u" )">#encodeHTML( $u )</a></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>
#if( $rules )
<p><b>Standards of Conduct:</b> #encodeHTML( $rules )</p>
#end
#if( $homepage )
<p><b>Home Page:</b> <a href="$homepage" target="Wander">#encodeHTML( $homepage )</a></p>
#end
2003-06-16 19:41:36 -06:00
</td>
</tr></table>