Author: taylor
Date: Fri Jul 22 17:52:18 2005
New Revision: 224430
URL: http://svn.apache.org/viewcvs?rev=224430&view=rev
Log:
add new feature: My Pages parameter style in a table with hrefs instead of
dropdown
Added:
portals/jetspeed-1/trunk/webapp/WEB-INF/templates/vm/parameters/html/MyPagesTable.vm
Added:
portals/jetspeed-1/trunk/webapp/WEB-INF/templates/vm/parameters/html/MyPagesTable.vm
URL:
http://svn.apache.org/viewcvs/portals/jetspeed-1/trunk/webapp/WEB-INF/templates/vm/parameters/html/MyPagesTable.vm?rev=224430&view=auto
==============================================================================
---
portals/jetspeed-1/trunk/webapp/WEB-INF/templates/vm/parameters/html/MyPagesTable.vm
(added)
+++
portals/jetspeed-1/trunk/webapp/WEB-INF/templates/vm/parameters/html/MyPagesTable.vm
Fri Jul 22 17:52:18 2005
@@ -0,0 +1,81 @@
+#*
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*#
+
+## $Id: $
+<table>
+ <tr>
+ <th>$l10n.PSML_MANAGER_MY_PAGES</th>
+ </tr>
+#foreach ($entry in $pages.keySet())
+
+ #set ($title = $pages.get($entry))
+
+ #if($!entry.GroupName)
+ #set ($category = "Group")
+ #set ($catName = $!entry.GroupName)
+ #set ($link1 = $jslink.setGroup($catName))
+ #elseif($!entry.RoleName)
+ #set ($category = "Role")
+ #set ($catName = $!entry.RoleName)
+ #set ($link1 = $jslink.setRole($catName))
+ #elseif($!entry.UserName)
+ #set ($category = "User")
+ #set ($catName = $!entry.UserName)
+ #set ($link1 = $jslink.setUser($catName))
+ #else
+ #set ($category = "null")
+ #set ($catName = "null")
+ #end
+
+ #if ($!entry.MediaType)
+ #set ($mediaType = $entry.MediaType)
+ #else
+ #set ($mediaType = "null")
+ #end
+
+ #if ($!entry.Language)
+ #set ($language = $!entry.Language)
+ #else
+ #set ($language = "null")
+ #end
+
+ #if ($!entry.Country)
+ #set ($country = $!entry.Country)
+ #else
+ #set ($country = "null")
+ #end
+
+ #if($!entry.GroupName)
+ #set ($link1 = $jslink.setGroup($catName,$entry.Name))
+ #elseif($!entry.RoleName)
+ #set ($link1 = $jslink.setRole($catName,$entry.Name))
+ #elseif($!entry.UserName)
+ #set ($link1 = $jslink.setUser($catName,$entry.Name))
+ #end
+
+ <tr>
+ <td>
+ #if ($link1.toString().equals($jslink.toString()))
+ <a href='$link1'>* $title </a>
+ #else
+ <a href='$link1'>$title </a>
+ #end
+ </td>
+ </tr>
+#end
+</tr>
+</table>
+
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]