Author: chanaka
Date: Thu Jan 24 03:38:52 2008
New Revision: 12823

Log:

about page added and promotion coloum added to the resources page

Added:
   trunk/registry/modules/webapps/src/main/webapp/admin/about.jsp
   trunk/registry/modules/webapps/src/main/webapp/admin/images/external.png   
(contents, props changed)
   
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-about-small.gif
   (contents, props changed)
   trunk/registry/modules/webapps/src/main/webapp/admin/promotion.jsp
Modified:
   
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/ControllerServlet.java
   
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/UIConstants.java
   trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css
   trunk/registry/modules/webapps/src/main/webapp/admin/header.jsp
   
trunk/registry/modules/webapps/src/main/webapp/admin/images/promotionBackground.jpg
   
trunk/registry/modules/webapps/src/main/webapp/admin/images/top-toolbar-back.jpg
   trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp

Modified: 
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/ControllerServlet.java
==============================================================================
--- 
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/ControllerServlet.java
   (original)
+++ 
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/ControllerServlet.java
   Thu Jan 24 03:38:52 2008
@@ -549,7 +549,11 @@
 
                 forwardToUserPage(request, response, userName);
 
-            } else if (command.equals("/removeUserFromRole")) {
+            }else if(command.equals("/about")){
+                
request.getRequestDispatcher(UIConstants.ABOUT_JSP).forward(request, response);
+            }
+
+            else if (command.equals("/removeUserFromRole")) {
 
                 RemoveUserRoleAction removeUserRoleAction = new 
RemoveUserRoleAction();
                 removeUserRoleAction.setUserName(request.getParameter("user"));

Modified: 
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/UIConstants.java
==============================================================================
--- 
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/UIConstants.java
 (original)
+++ 
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/UIConstants.java
 Thu Jan 24 03:38:52 2008
@@ -62,4 +62,5 @@
     public static final String AJAX_ENTRY_LIST_JSP = 
"/admin/ajax/entry-list.jsp";
     public static final String RESOURCE_DETAILS_JSP = 
"/admin/resources_details.jsp";
     public static final String ERROR_JSP = "/admin/error.jsp";
+    public static final String ABOUT_JSP = "/admin/about.jsp";
 }

Added: trunk/registry/modules/webapps/src/main/webapp/admin/about.jsp
==============================================================================
--- (empty file)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/about.jsp      Thu Jan 
24 03:38:52 2008
@@ -0,0 +1,251 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+"http://www.w3.org/TR/html4/strict.dtd";>
+<html>
+<head>
+
+    <title>WSO2 Registry</title>
+    <meta http-equiv="content-language" content=en>
+    <meta name=robots content="DISALLOW">
+    <meta http-equiv=expires content="Mon, 01 Jan 1990 00:00:00 GMT">
+    <meta http-equiv="cache-control" content="no-cache">
+    <meta http-equiv=pragma content="no-cache">
+    <meta name="revisit-after" content="1 day">
+    <meta http-equiv="content-script-type" content="text/javascript">
+
+
+    <link type="text/css" href="/wso2registry/admin/css/main.css" 
rel="stylesheet" />
+    <script language="JavaScript" type="text/JavaScript" 
src="/wso2registry/admin/js/common.js"></script>
+
+</head>
+<body>
+
+<div class="page-sizer">
+<!-- START header content -->
+
+
+<jsp:include page="header.jsp" />
+
+<div class="content">
+    <!--This is the START of main table which seperates 2 coloums for 
promotions and content of the site -->
+<table cellpadding="0" cellspacing="0" border="0" style="width:100%;">
+    <tr>
+        <td class="promotionDiv" valign="top">
+               <jsp:include page="promotion.jsp" />
+        </td>
+        <td valign="top">
+        <table cellspacing="0" cellpadding="0" border="0" style="width:100%">
+               <tr>
+               <td class="leftColoumSizer" valign="top">
+                   <h1 class="headding-recent-about">About WSO2 Registry</h1>
+                   <p>
+                   WSO2 Registry enables you to store, catalog, index and 
manage your enterprise meta data in a simple, scalable and easy-to-use model. 
It is designed around community concepts such as tags, comments, ratings, users 
and roles. Think of the registry as a structured wiki designed to help you 
manage your meta-data in a simple business-friendly system.
+                   </p>
+                   <p>
+                   In addition, the registry allows you to store more 
unstructured data such as Word documents, Excel spreadsheets and text formats. 
Using these approaches, you can build a catalog of enterprise information 
ranging from services, service descriptions to employee data and on going 
projects.
+                   </p>
+                   <p>
+                   WSO2 Registry can be deployed in Application Servers and 
access using the Web UI or the APP interface. It can also be used as a Java 
library inside other Java programs as a resource store with all community 
features and versioning.
+                   </p>
+                   <p>
+                       WSO2 Registry is released under the Apache License 
v2.0Check out the project home page at <a 
href="http://www.wso2.org/projects/registry";>http://www.wso2.org/projects/registry</a>
 foradditional information. 
+                   </p>
+                   
+                   
+                       <!-- Learning box starts here -->
+                       <div class="box2-head">
+                               <table cellspacing="0" cellpadding="0" 
border="0" style="width:100%">
+                               <tr>
+                                       <td valign="top" 
style="padding-top:0px;width:14px;"><img 
src="/wso2registry/admin/images/box2-lefttop.jpg" /></td>
+                                       <td valign="top"><h2>Learn</h2></td>
+                                       <td valign="top" align="right" 
style="width:14px; padding-top:0px;" ><img 
src="/wso2registry/admin/images/box2-righttop.jpg" /></td>
+                               </tr>
+                       </table>
+                       </div>
+                       <div class="box2-mid">
+                       <h3>User guide</h3>
+                       <p>
+                       Registry user guide is available at
+                       <a 
href="http://wso2.org/wiki/display/registry/User+guide";  
target="_blank">http://wso2.org/wiki/display/registry/User+guide</a>
+                       </p>
+                       </div>
+                       <div class="box2-bot">
+                               <table cellspacing="0" cellpadding="0" 
border="0" style="width:100%" >
+                               <tr>
+                                       <td><img 
src="/wso2registry/admin/images/box2-leftbot.jpg" /></td>
+                                       <td align="right"><img 
src="/wso2registry/admin/images/box2-rightbot.jpg" /></td>
+                               </tr>
+                               </table>
+                       </div>
+                       <!-- Learning box ends here -->
+                       
+                       <!-- Get involove box starts here -->
+                       <div class="box2-head">
+                               <table cellspacing="0" cellpadding="0" 
border="0" style="width:100%">
+                               <tr>
+                                       <td valign="top" 
style="padding-top:0px;width:14px;"><img 
src="/wso2registry/admin/images/box2-lefttop.jpg" /></td>
+                                       <td valign="top"><h2>Get 
Involve</h2></td>
+                                       <td valign="top" align="right" 
style="width:14px; padding-top:0px;" ><img 
src="/wso2registry/admin/images/box2-righttop.jpg" /></td>
+                               </tr>
+                       </table>
+                       </div>
+                       <div class="box2-mid">
+                       <h3>Reporting Problems</h3>
+                       <p>
+                       Issues can be reported using the public JIRA available 
at
+                       <a href="https://wso2.org/jira/browse/REGISTRY " 
target="_blank">https://wso2.org/jira/browse/REGISTRY </a>
+                       </p>
+                       </div>
+                       <div class="box2-bot">
+                               <table cellspacing="0" cellpadding="0" 
border="0" style="width:100%" >
+                               <tr>
+                                       <td><img 
src="/wso2registry/admin/images/box2-leftbot.jpg" /></td>
+                                       <td align="right"><img 
src="/wso2registry/admin/images/box2-rightbot.jpg" /></td>
+                               </tr>
+                               </table>
+                       </div>
+                       <!-- Get involve box ends here -->
+                       
+                       <!-- Feature List starts here -->
+                       
+                       <div class="box2-head">
+                               <table cellspacing="0" cellpadding="0" 
border="0" style="width:100%">
+                               <tr>
+                                       <td valign="top" 
style="padding-top:0px;width:14px;"><img 
src="/wso2registry/admin/images/box2-lefttop.jpg" /></td>
+                                       <td valign="top"><h2>Features 
List</h2></td>
+                                       <td valign="top" align="right" 
style="width:14px; padding-top:0px;" ><img 
src="/wso2registry/admin/images/box2-righttop.jpg" /></td>
+                               </tr>
+                       </table>
+                       </div>
+                       <div class="box2-mid">
+                       <ul class="featureList">
+                       <li>Storing and managing resources and collections
+                       Add, edit, delete and retrieve resources
+                       Categorize resources using collections</li>
+                       
+                       <li>Tagging, commenting and rating resources
+                       Tag resources and browse other's tags
+                       Identify validity/weight of tags using tag clouds
+                       Comment on resources and see what others have to say 
about your resources
+                       Rate resources and see how the community has rated 
resources
+                       </li>
+                       <li>Managing users and roles
+                       Create, edit and delete users
+                       Add roles and assign users to roles
+                       </li>
+                       
+                       <li>Authentication and authorization
+                       Protect resources/collections by controlling the 
authorization based on users and roles
+                       </li>
+                       
+                       <li>
+                       Resource / collection versioning
+                       Browse previous versions of resources/collections
+                       Restore any resource/collection to previous versions
+                       </li>
+                       <li>
+                       Tag based search
+                       Search resources by tags applied by you and others
+                       </li>
+                       
+                       <li>
+                       Advanced search
+                       Search resources based on advanced criteria
+                       </li>
+                       
+                       <li>
+                       Activity log and filtering support for the activity logs
+                       Browse all activities performed on the Registry with 
date, time and the user who performed the activity.
+                       </li>
+                       
+                       <li>
+                       APP based Remote Registry
+                       Embed remote Registry inside Java programs and make 
Java programs interact with hosted Registry servers.
+                       </li>
+                       
+                       <li>
+                       Media type handling support (experimental)
+                       </li>
+                       <li>
+                       Web based user interface with Web 2.0 look and feel
+                       </li>
+                       </ul>
+
+                       </div>
+                       <div class="box2-bot">
+                               <table cellspacing="0" cellpadding="0" 
border="0" style="width:100%" >
+                               <tr>
+                                       <td><img 
src="/wso2registry/admin/images/box2-leftbot.jpg" /></td>
+                                       <td align="right"><img 
src="/wso2registry/admin/images/box2-rightbot.jpg" /></td>
+                               </tr>
+                               </table>
+                       </div>
+                       
+                       
+                       
+               </td>
+               <td valign="top">
+                       <div class="box1-head">
+                               <table cellspacing="0" cellpadding="0" 
border="0" style="width:100%">
+                               <tr>
+                                       <td valign="top" 
style="padding-top:0px;width:14px;"><img 
src="/wso2registry/admin/images/box1-lefttop.jpg" /></td>
+                                       <td valign="top">Help</td>
+                                       <td valign="top" align="right" 
style="width:14px; padding-top:0px;" ><img 
src="/wso2registry/admin/images/box1-righttop.jpg" /></td>
+                               </tr>
+                       </table>
+                       </div>
+                       <div class="box1-mid">
+                       ------------------------
+User guide
+========================
+Registry user guide is available at
+http://wso2.org/wiki/display/registry/User+guide
+
+------------------------
+Reporting Problems
+========================
+
+Issues can be reported using the public JIRA available at
+https://wso2.org/jira/browse/REGISTRY
+
+
+------------------------
+Contact us
+========================
+
+WSO2 Registry developers can be contacted via mailing list 
[email protected]
+For details on subscriptions: http://www.wso2.org/projects/registry#mail 
+                       
+                       </div>
+                       <div class="box1-bot">
+                               <table cellspacing="0" cellpadding="0" 
border="0" style="width:100%" >
+                               <tr>
+                                       <td><img 
src="/wso2registry/admin/images/box1-leftbot.jpg" /></td>
+                                       <td align="right"><img 
src="/wso2registry/admin/images/box1-rightbot.jpg" /></td>
+                               </tr>
+                               </table>
+                       </div>
+               </td>
+               </tr>
+       </table>
+
+
+
+<!--This is the END of main table which seperates 2 coloums for promotions and 
content of the site -->
+    </td>
+    </tr>
+</table>
+
+
+
+
+
+</div>
+
+<!-- START footer content -->
+<jsp:include page="footer.jsp" />
+
+</div>
+
+</body>
+</html>

Modified: trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css   
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css   Thu Jan 
24 03:38:52 2008
@@ -15,12 +15,42 @@
 .leftColoumSizer{
 width:65%;
 }
-.addColoum{
-width:176px;
+.promotionDiv{
+width:165px;
 background-image:url(../images/promotionBackground.jpg);
 background-repeat:no-repeat;
 background-position:0px 0px;
-
+margin-right:8px;
+padding-right:10px;
+padding-left:8px;
+padding-top:3px;
+}
+.promotionDiv p{
+padding-right:3px;
+}
+.promotionDiv h2{
+font-family:verdana;
+color:#5b5b5b;
+font-size:13px;
+font-weight:bold;
+}
+.promotionDiv h3{
+background-image:url(../images/external.png);
+background-repeat:no-repeat;
+background-position:0px 0px;
+font-family:verdana;
+color:#5b5b5b;
+font-size:11px;
+font-weight:bold;
+margin-top:5px;
+margin-left:0px;
+margin-bottom:3px;
+text-indent:12px;
+}
+.promotionDiv span{
+background-color:#e7e7e7;
+padding:5px;
+display:block;
 }
 .page-sizer{
 padding-left:5px;
@@ -90,6 +120,13 @@
 text-indent:40px;
 line-height:35px;
 }
+.headding-recent-about{
+background-image:url(../images/icon-about-big.jpg);
+background-repeat:no-repeat;
+background-position:3px 2px;
+text-indent:40px;
+line-height:35px;
+}
 .headding-search{
 background-image:url(../images/icon-search.jpg);
 background-repeat:no-repeat;
@@ -160,6 +197,9 @@
 padding-left:15px;
 padding-right:5px;
 }
+.box1-mid p,.box2-mid p{
+margin:0px;
+}
 .box1-head td{
 padding-top:4px;
 }
@@ -501,7 +541,15 @@
 .top-toolbar-back{
 background-image:url(../images/top-toolbar-back.jpg);
 background-repeat:no-repeat;
-background-position:-10px 0px;
-margin-left:-10px;
+background-position:0px 0px;
+margin-left:0px;
 padding-left:10px;
+}
+.featureList{
+padding:0px;
+margin:0px;
+}
+.featureList li{
+padding-top:5px;
+line-height:18px;
 }
\ No newline at end of file

Modified: trunk/registry/modules/webapps/src/main/webapp/admin/header.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/header.jsp     
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/header.jsp     Thu Jan 
24 03:38:52 2008
@@ -115,8 +115,8 @@
         </td>
         <% } %>
         <td class="top-menu">
-            <a href="http://wso2.org/wiki/display/registry/User+guide"; 
target="_blank">
-                <img src="/wso2registry/admin/images/help.gif" border="0" 
align="top"  /> Help
+            <a href="/wso2registry/system/about">
+                <img src="/wso2registry/admin/images/icon-about-small.gif" 
border="0" align="top"  /> About
             </a>
         </td>
         <!--Add this after figuring out a better way to do the config-->

Added: trunk/registry/modules/webapps/src/main/webapp/admin/images/external.png
==============================================================================
Binary file. No diff available.

Added: 
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-about-small.gif
==============================================================================
Binary file. No diff available.

Modified: 
trunk/registry/modules/webapps/src/main/webapp/admin/images/promotionBackground.jpg
==============================================================================
Binary files. No diff available.

Modified: 
trunk/registry/modules/webapps/src/main/webapp/admin/images/top-toolbar-back.jpg
==============================================================================
Binary files. No diff available.

Added: trunk/registry/modules/webapps/src/main/webapp/admin/promotion.jsp
==============================================================================
--- (empty file)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/promotion.jsp  Thu Jan 
24 03:38:52 2008
@@ -0,0 +1,14 @@
+<h2>WSO2 Registry</h2>
+<p>
+WSO2 Registry enables you to store, catalog, index and manage your enterprise 
meta data in a simple, scalable and easy-to-use model. 
+It is designed around community concepts such as tags, comments, ratings, 
users and roles. 
+Think of the registry as a structured wiki designed to help you manage your 
meta-data in a simple business-friendly system. 
+</p>
+<h3>WSO2 Registry Training</h3>
+<span>
+Register now for the WSO2 Registry online training at
+</span>
+<h3>WSO2 Registry Training</h3>
+<span>
+Register now for the WSO2 Registry online training at
+</span>
\ No newline at end of file

Modified: 
trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp 
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp 
Thu Jan 24 03:38:52 2008
@@ -56,6 +56,13 @@
 <% if (errorMessage != null) { %>
 <div class="error-message"><%=errorMessage%></div>
 <% } %>
+<!--This is the START of main table which seperates 2 coloums for promotions 
and content of the site -->
+<table cellpadding="0" cellspacing="0" border="0" style="width:100%;">
+    <tr>
+        <td class="promotionDiv" valign="top">
+               <jsp:include page="promotion.jsp" />
+        </td>
+        <td valign="top">
 <div style="height:40px;" class="top-toolbar-back">
     <% if (details.isCollection()) { %>
     <h1>
@@ -94,7 +101,7 @@
 <tr>
 <td class="leftColoumSizer" valign="top">
 
-<!-- Hear comes the box1 table -->
+<!-- Page main information Starts here -->
 <div style="margin-bottom:10px;">
     <!-- all the content goes here -->
     <table cellpadding="0" cellspacing="0" border="0" 
class="simple-data-table">
@@ -126,7 +133,7 @@
                 <%
                 } else if (details.isVersionView()) {
                 %>
-                <span class="helpText">Go to the current version to add or 
edit properties.</span>          
+                <span class="helpText">Go to the current version to add or 
edit properties.</span>
                 <%
                 } else {
                 %>
@@ -626,7 +633,13 @@
         </tr>
     </table>
 </div>
-
+</td>
+</tr>
+</table>
+    <!--This is the END of main table which seperates 2 coloums for promotions 
and content of the site -->
+    </td>
+    </tr>
+</table>
 <!-- Version box starts -->
 <!-- Hear comes the box2 table -->
 <%--<div class="box2-head">--%>

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to