[Registry-dev] svn commit r10026 - in
trunk/registry/modules/webapps/src/main/webapp/admin: css tiles
svn at wso2.org
svn at wso2.org
Wed Nov 21 04:16:17 PST 2007
Author: chanaka
Date: Wed Nov 21 04:16:11 2007
New Revision: 10026
Modified:
trunk/registry/modules/webapps/src/main/webapp/admin/css/styles.css
trunk/registry/modules/webapps/src/main/webapp/admin/tiles/recent_activity.jsp
Log:
recent activity page added and still the select box in there has to be converted in to a struts tag.
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/css/styles.css
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/css/styles.css (original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/css/styles.css Wed Nov 21 04:16:11 2007
@@ -249,4 +249,36 @@
.link-cloud .link-cloud2{font-size:10pt;}
.link-cloud .link-cloud3{font-size:12pt;}
.link-cloud .link-cloud4{font-size:14pt;}
-.link-cloud .link-cloud5{font-size:16pt;}
\ No newline at end of file
+.link-cloud .link-cloud5{font-size:16pt;}
+
+/* data-table */
+.data-table{
+width:650px;
+border:solid 1px #c6c6c6;
+margin-bottom:10px;
+}
+.data-table th{
+height:20px;
+background-color:#d5d5d5;
+border-bottom:solid 1px #c6c6c6;
+text-align:left;
+padding-left:5px;
+}
+.data-table td{
+height:22px;
+border-bottom:solid 1px #c6c6c6;
+color:#3e3e3e;
+padding-left:5px;
+}
+
+/* form-table styles */
+.form-table{
+width:450px;
+}
+.form-table th{
+height:25px;
+text-align:left;
+}
+.form-table td{
+height:25px;
+}
\ No newline at end of file
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/tiles/recent_activity.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/tiles/recent_activity.jsp (original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/tiles/recent_activity.jsp Wed Nov 21 04:16:11 2007
@@ -3,194 +3,48 @@
-<div class="heading">
- <s:if test="parentPath=='root'"><a href="Resources.action?path=/">Browse Registry root</a></s:if>
- <s:else><a href="Resources.action?path=<s:property value="parentPath"/>">Go to parent collection</a></s:else>
-</div>
+<div class="heading">Recent activity</div>
<br/>
-<div class="heading"><s:text name="title.Detail"/></div>
-<div class="detail-section">
- <div class="description"><label><strong>Resource:</strong></label> <s:property value="name"/> <a href="/wso2registry/view<s:property value="path"/>" target="_blank">View</a></div>
- <div class="description"><label><strong>Author:</strong></label> <s:property value="author"/></div>
- <div class="description"><label><strong>Media Type:</strong></label> <s:property value="mediaType"/></div>
- <div class="description"><label><strong>Created On:</strong></label> <s:property value="createdOn"/></div>
- <div class="description"><label><strong>Last Modified:</strong></label> <s:property value="lastModified"/></div>
- <div class="description"><label><strong>Description:</strong></label> <s:property value="description"/></div>
- <div class="description">
- <table width="100%" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td width="50"><label><strong>Rating:</strong></label></td>
- <td>
- <script language="javascript" type="text/javascript">
- var ratingImg="";
- for(i=1;i<=5;i++){
- if(i <= <s:property value="averageRating"/>){
- ratingImg += '<img src="images/star_on.gif">';
- }else{
- ratingImg += '<img src="images/star_off.gif">';
- }
-
- }
- document.write(ratingImg);
- </script>
- </td>
-
- </tr>
- </table>
- </div>
-
-</div>
-<br/>
-<div class="heading"><s:text name="title.RateThis"/></div>
-<br/>
-<script language="javascript">
- onload = function(){
- document.frmRate.rating.selectedIndex= <s:property value="averageRating"/>;
- }
-</script>
-<div class="detail-section">
- <s:form name="frmRate" action='Rate.action' theme="simple" >
- <s:hidden name="path" value="%{path}" />
- <select name="rating" size="1">
- <option value="0">0</option>
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- </select>
+<s:form name="recentActivity" action='#' theme="simple" >
+<table cellpadding="0" cellspacing="0" border="0" class="form-table" style="width:500px;">
+ <tr>
+ <td style="width:100px;">Username</td>
+ <td><s:textfield name="userName"/></td>
+ </tr>
+ <tr>
+ <td>Path</td>
+ <td><s:textfield name="path"/></td>
+ </tr>
+ <tr>
+ <td>Date -</td>
+ <td>
+ <div style="width:200px;">Only find results updated</div>
+ From<s:textfield name="fromDate"/>
+ To: <s:textfield name="toDate"/>
- <!-- <s:textfield name="rating" size="3" /> -->
- <s:submit value="Rate" />
- </s:form>
-</div><br/>
-
-<div class="heading"><s:text name="title.Tags"/></div>
-<div class="link-cloud">
- <s:iterator value="tags">
- <a href="#" class="link-cloud<s:property value="tagCount"/>"><s:property value="tagName" /></a>
- </s:iterator>
-</div>
-<!--
-<div class="link-cloud"><a href="#" class="link-cloud2">Programming</a> <a href="#" class="link-cloud4">XML</a> <a href="#" class="link-cloud3">JavaScript</a> <a href="#" class="link-cloud5">Registry</a> <a href="#" class="link-cloud1">MySQL</a> <a href="#" class="link-cloud1">network</a> <a href="#" class="link-cloud3">opensource</a> <a href="#" class="link-cloud1">OS</a> <a href="#" class="link-cloud2">osx</a> <a href="#" class="link-cloud2">p2p</a> <a href="#" class="link-cloud1">perl</a> <a href="#" class="link-cloud1">PHP</a><a href="#">RSS</a> <a href="#" class="link-cloud2">Ruby</a> <a href="#" class="link-cloud4">search</a> <a href="#" class="link-cloud2">Security</a> <a href="#" class="link-cloud3">Server</a> <a href="#" class="link-cloud1">Software</a> <a href="#" class="link-cloud3">SQL</a> <a href="#" class="link-cloud2">testing</a> <a href="#" class="link-cloud5">tool</a> <a href="#" class="link-cloud3">tools</a> <a href="#" class="link-cloud3">Unix</a> <a href="#" class="link-cloud1">voip</a> <a href="#" class="link-cloud4">Web</a> <a href="#" class="link-cloud3">WiKI</a>
-</div>--><br/>
-<div class="detail-section">
- <s:form name="frmTag" action='AddTag.action' theme="simple" >
- <s:hidden name="path" value="%{path}" />
- <s:textfield name="tag"/>
- <s:submit value="Tag" />
-
- </s:form>
-
-
-</div><br/>
-<div class="heading"><s:text name="title.Comments"/></div>
-
-<div class="detail-section">
- <s:iterator value="comments">
- <p><img src="images/comment.gif" width="30" height="30" align="baseline" /><span><s:property value="commentText"/><br />
- <img src="images/blank.gif" width="1" height="18" />by <s:property value="commentedUser"/> on <s:property value="commentedTime"/></span></p>
- </s:iterator>
-
-</div>
-
-<s:if test="loggedIn">
- <div class="detail-section">
- <s:form name="frmComment" action='Comment.action' theme="simple" >
- <s:hidden name="path" value="%{path}" />
- <s:textarea cols="70" rows="4" name="commentText"/><br/>
- <img src="images/blank.gif" width="10" height="5" /><br/>
- <s:submit value="Post comment" />
- </s:form>
- </div>
-</s:if>
-<s:else>
- <div class="detail-section"><s:text name="message.AddComment"/></div>
-</s:else>
-<br/>
-
-<div class="detail-section">
- <s:iterator value="versionPaths">
- Version <s:property value="versionNumber"/> <a href="/wso2registry/view<s:property value="completeVersionPath"/>" target="_blank">View</a> <s:form name="frmRestore" action='Restore.action' theme="simple" ><s:hidden name="path" value="%{path}" /><s:hidden name="versionPath" value="%{completeVersionPath}" /><s:submit value="Restore" /></s:form><br/>
- </s:iterator>
-</div>
-<br/>
-
-<div class="heading"><s:text name="title.Permission"/></div>
-<img src="images/blank.gif" width="10" height="12" />
-<div class="detail-section">
- <s:form action="Authorization.action" theme="simple" method="post">
- <s:hidden name="pathToAuthorize" value="%{path}"/>
-
- <%--list="#{'01':'Chathura','02':'Asankha','03':'Deepal','04':'Ruwan','05':'Chanaka','06':'Amila'}"/><br/>--%>
- <img src="images/blank.gif" width="10" height="10" />
-
- <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#ECECEC">
- <tr>
- <td colspan="3"><strong>Add Permission</strong></td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td width="50">User</td>
- <td width="150"><s:select label="Select Day"
- name="userToAuthorize"
- headerKey="1"
- headerValue="-- Please Select --"
- list="userNames"/><br/></td>
- <td width="50" align="right">Action</td>
- <td width="150"><select name="select">
- </select></td>
- <td width="75" nowrap><input name="radiobutton" type="radio" value="radiobutton">
- Allow</td>
- <td width="75" nowrap><input name="radiobutton" type="radio" value="radiobutton">
- Deny</td>
- <td align="right"><input type="button" name="Button" value="Apply"></td>
- </tr>
-</table><br>
-<table width="100%" class="tblPermission" border="0" cellpadding="3" cellspacing="0">
- <tr >
- <th rowspan="2" align="left" >User Name </th>
- <th colspan="2" align="center">Read</th>
- <th colspan="2" align="center">Write</th>
- <th colspan="2" align="center">Delete</th>
- </tr>
- <tr>
- <th align="center">Allow</th>
- <th align="center">Deny</th>
- <th align="center">Allow</th>
- <th align="center">Deny</th>
- <th align="center">Allow</th>
- <th align="center">Deny</th>
- </tr>
- <tr>
- <td> </td>
- <td width="100"><input type="checkbox" name="readAllow"/></td>
- <td width="100"><input type="checkbox" name="readDeny"/></td>
- <td width="100"><input type="checkbox" name="writeAllow"/></td>
- <td width="100"><input type="checkbox" name="writeDeny"/></td>
- <td width="100"><input type="checkbox" name="deleteAllow"/></td>
- <td width="100"><input type="checkbox" name="deleteDeny"/></td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
+ </td>
+
+ </tr>
+ <tr>
+ <td>Filter by</td>
+ <td>
+ <select>
+ <option value ="volvo">Comments</option>
+ <option value ="saab">Taging</option>
+ <option value ="opel">Resource</option>
+ </select>
+ </td>
+ </tr>
+
</table>
+</s:form>
+<div style="background-color:#cccccc;color:#000000;padding-left:10px;height:25px;margin-top:10px;margin-bottom:10px;">Recent Activities</div>
-
- <img src="images/blank.gif" width="10" height="12" /><br/>
- <s:submit value="Grant Permissions" />
-
- </s:form>
-</div>
-
-<br/>
-<br/>
+<table cellpadding="0" cellspacing="0" border="0">
+<tr>
+ <td>Line one .... . ... ...</td>
+</tr>
+<tr>
+ <td>Line 2 .... . ... ...</td>
+</tr>
+</table>
More information about the Registry-dev
mailing list