added the first real front page sidebox, the community membership list
This commit is contained in:
51
venice-data/velocity/sideboxes/community-list.vm
Normal file
51
venice-data/velocity/sideboxes/community-list.vm
Normal file
@@ -0,0 +1,51 @@
|
||||
#*
|
||||
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" "TODO" )">#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
|
||||
@@ -80,6 +80,13 @@ body td.sideboxtop, body div.sideboxtop, body p.sideboxtop {
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
body td.sideboxfooter, body div.sideboxfooter, body p.sideboxfooter {
|
||||
font-size: xx-small;
|
||||
voice-family: "\"}\"";
|
||||
voice-family: inherit;
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
html>body, html>body div, html>body p, html>body th, html>body td, html>body li, html>body dd {
|
||||
font-size: small; /* be nice to Opera */
|
||||
}
|
||||
@@ -116,6 +123,10 @@ html>body td.sideboxtop, html>body div.sideboxtop, html>body p.sideboxtop {
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
html>body td.sideboxfooter, html>body div.sideboxfooter, html>body p.sideboxfooter {
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
## these are styles for inline menu lists
|
||||
div.imenu {
|
||||
padding: 5px;
|
||||
|
||||
@@ -129,6 +129,12 @@ td.sidebox {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.sideboxfooter {
|
||||
color: #000000;
|
||||
background-color: #9999ff;
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.formerror {
|
||||
font-weight: bold;
|
||||
font-color: red;
|
||||
|
||||
Reference in New Issue
Block a user