Author: jonathan
Date: Tue Jan 22 16:17:10 2008
New Revision: 12712
Log:
Tweaked table formatting for IE compatibility.
Tweaked table formatting for better overall results.
Stripped comment id from Comment paths (visible when doing a comment search.)
Modified:
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/utils/RegistryUtils.java
trunk/mashup/java/modules/www/css/styles.css
trunk/mashup/java/modules/www/index.jsp
trunk/mashup/java/modules/www/mashup.jsp
Modified:
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/utils/RegistryUtils.java
==============================================================================
---
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/utils/RegistryUtils.java
(original)
+++
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/utils/RegistryUtils.java
Tue Jan 22 16:17:10 2008
@@ -396,6 +396,10 @@
if (mashupName.contains("?")) {
mashupName = mashupName.substring(0,
mashupName.indexOf("?"));
}
+ if (mashupName.contains(";")) {
+ mashupName = mashupName.substring(0,
mashupName.indexOf(";"));
+ }
+
QueryResult queryResult = new QueryResult();
queryResult.setName(mashupName);
Modified: trunk/mashup/java/modules/www/css/styles.css
==============================================================================
--- trunk/mashup/java/modules/www/css/styles.css (original)
+++ trunk/mashup/java/modules/www/css/styles.css Tue Jan 22 16:17:10 2008
@@ -40,11 +40,12 @@
td {
font-size: 8pt;
+ vertical-align:top;
}
ul {
margin-top: 0px;
- padding-left: 1.3em
+ padding-left: 1.3em;
}
a:link {
Modified: trunk/mashup/java/modules/www/index.jsp
==============================================================================
--- trunk/mashup/java/modules/www/index.jsp (original)
+++ trunk/mashup/java/modules/www/index.jsp Tue Jan 22 16:17:10 2008
@@ -250,19 +250,19 @@
<tr>
<% if (results.getResultsType().equals("activity")) { %>
<td class="headers" width="12%" colspan="2">When</td>
- <td class="headers" colspan="2">Activity</td>
+ <td class="headers" width="73%" colspan="2">Activity</td>
<% } else if (results.getResultsType().equals("comment")) { %>
- <td width="12%" class="headers">Date</td>
- <td width="12%" class="headers">By</td>
- <td width="12%" class="headers">On</td>
- <td class="headers" colspan="2">Comment</td>
+ <td class="headers" width="12%">Date</td>
+ <td class="headers" width="12%">By</td>
+ <td class="headers" width="12%">On</td>
+ <td class="headers" width="48%">Comment</td>
<% } else { %>
- <td width="12%" class="headers">Name</td>
- <td width="12%" class="headers" colspan="2">Author</td>
- <td class="headers">Description</td>
+ <td class="headers" width="12%">Name</td>
+ <td class="headers" width="12%" colspan="2">Author</td>
+ <td class="headers" width="61%">Description</td>
<% } %>
- <td width="86" class="headers">
+ <td class="headers" width="86" nowrap>
<div class="query-controls">
<% if (RegistryUtils.isLoggedIn(registry)) { %>
<img src="images/arrowUp.gif" id="query<%=nextId%>up"
class="edit-link" title="move up"
@@ -341,7 +341,7 @@
result.getAuthor())%></a> (<%=result.getAuthor()%>)
</td>
<td nowrap>
- <a
href="mashup.jsp?path=<%=result.getPath()%>"><%=result.getName()%></a>
+ <a
href="mashup.jsp?path=<%=result.getPath()%>"><%=result.getName().split(";")[0]%></a>
</td>
<td class="desc" colspan="2">
<%=result.getContentString() %>
Modified: trunk/mashup/java/modules/www/mashup.jsp
==============================================================================
--- trunk/mashup/java/modules/www/mashup.jsp (original)
+++ trunk/mashup/java/modules/www/mashup.jsp Tue Jan 22 16:17:10 2008
@@ -509,10 +509,8 @@
%>
<tr>
- <td>
- <nobr><%=QueryParamUtils.friendlyDate(c.getTime())%></nobr>
- </td>
- <td><a href="user.jsp?name=<%=commenter%>"><%= RegistryUtils
+ <td nowrap><%=QueryParamUtils.friendlyDate(c.getTime())%></td>
+ <td nowrap><a href="user.jsp?name=<%=commenter%>"><%=
RegistryUtils
.getFullName(request, commenter) %></a>
(<%=commenter%>)
</td>
<td>
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev