Author: prasad
Date: Fri Jan 25 03:34:19 2008
New Revision: 12899

Log:

Fixed  MASHUP-580

Modified:
   trunk/mashup/java/modules/www/faulty_mashup.jsp

Modified: trunk/mashup/java/modules/www/faulty_mashup.jsp
==============================================================================
--- trunk/mashup/java/modules/www/faulty_mashup.jsp     (original)
+++ trunk/mashup/java/modules/www/faulty_mashup.jsp     Fri Jan 25 03:34:19 2008
@@ -1,87 +1,87 @@
-<%@ page import="org.wso2.registry.RegistryException" %>
-<%@ page import="org.wso2.registry.Resource" %>
-<%@ page import="java.net.URLDecoder" %>
-
-<!--Required to keep a user logged in if 'Remember Me' option is selected-->
-<%@ include file="validate_login.jsp" %>
-
-<%
-    String bounceback = request.getParameter("bounceback");
-
-    if (bounceback == null) {
-        bounceback = "index.jsp";
-    } else {
-        bounceback = URLDecoder.decode(bounceback, "UTF-8");
-    }
-
-    String path = request.getParameter("path");
-    if (path == null) {
-        throw new RegistryException("must specify a path query parameter.");
-    }
-
-    String thisPage = "mashup.jsp?path=" + path;
-
-    Resource resource = registry.get(path);
-
-    String[] parts = path.split(RegistryConstants.PATH_SEPARATOR);
-    String mashup = parts[parts.length - 1];
-
-    String author = resource.getAuthorUserName();
-    String authorFullName = RegistryUtils.getFullName(request, author);
-    String description = resource.getDescription();
-
-    String currentUser = RegistryUtils.getCurrentUser(registry);
-%>
-<html>
-<head>
-    <title><%= bundle.getString("main.title")%> - Details of the faulty mashup 
'<%=mashup%>' by <%=author%>
-    </title>
-    <!-- Required CSS -->
-    <link href="css/styles.css" rel="stylesheet" type="text/css"/>
-    <script language="javascript" src="js/common.js" 
type="text/javascript"></script>
-</head>
-<body>
-<div id="page">
-    <%@ include file="header.jsp" %>
-    <div id="search"></div>
-    <div id="welcome">
-    </div>
-    <div id="content">
-        <h2>Details of the faulty mashup '<%=mashup%>' by <%=author%>
-        </h2>
-
-        <p>The mashup named <i><%=mashup%>
-        </i> authored by <i><%=authorFullName%> (<%=author%>)</i> has been
-            marked as faulty by the system.
-            <%
-
-                if (RegistryUtils.isLoggedIn(registry)) {
-                    // Will be available only to users with Admin priviledges 
OR who are Authors of the current Mashup
-                    if ((RegistryUtils.isAdminRole(registry)) ||
-                            (author.equalsIgnoreCase(currentUser))) {
-
-            %>
-            You may use the <a 
href="editor.jsp?action=edit&mashup=<%=path%>">mashup editor</a> to
-            fix
-            the source code of this mashup.
-
-        <p>The following details regarding the faulty mashup is available at 
this time.</p>
-
-        <div style="background-color: gray;">
-            <pre><%=description%></pre>
-        </div>
-        <%
-            }
-
-        } else {
-        %>
-        Please notify the author of this mashup or an administrator.
-        <%
-            }
-        %>
-        </p>
-    </div>
-    <%@ include file="footer.jsp" %>
-</div>
-</body>
+<%@ page import="org.wso2.registry.RegistryException" %>
+<%@ page import="org.wso2.registry.Resource" %>
+<%@ page import="java.net.URLDecoder" %>
+
+<!--Required to keep a user logged in if 'Remember Me' option is selected-->
+<%@ include file="validate_login.jsp" %>
+
+<%
+    String bounceback = request.getParameter("bounceback");
+
+    if (bounceback == null) {
+        bounceback = "index.jsp";
+    } else {
+        bounceback = URLDecoder.decode(bounceback, "UTF-8");
+    }
+
+    String path = request.getParameter("path");
+    if (path == null) {
+        throw new RegistryException("must specify a path query parameter.");
+    }
+
+    String thisPage = "mashup.jsp?path=" + path;
+
+    Resource resource = registry.get(path);
+
+    String[] parts = path.split(RegistryConstants.PATH_SEPARATOR);
+    String mashup = parts[parts.length - 1];
+
+    String author = resource.getAuthorUserName();
+    String authorFullName = RegistryUtils.getFullName(request, author);
+    String description = resource.getDescription();
+
+    String currentUser = RegistryUtils.getCurrentUser(registry);
+%>
+<html>
+<head>
+    <title><%= bundle.getString("main.title")%> - Details of the faulty mashup 
'<%=mashup%>' by <%=author%>
+    </title>
+    <!-- Required CSS -->
+    <link href="css/styles.css" rel="stylesheet" type="text/css"/>
+    <script language="javascript" src="js/common.js" 
type="text/javascript"></script>
+</head>
+<body>
+<div id="page">
+    <%@ include file="header.jsp" %>
+    <div id="search"></div>
+    <div id="welcome">
+    </div>
+    <div id="content">
+        <h2>Details of the faulty mashup '<%=mashup%>' by <%=author%>
+        </h2>
+
+        <p>The mashup named <i><%=mashup%>
+        </i> authored by <i><%=authorFullName%> (<%=author%>)</i> has been
+            marked as faulty by the system.
+            <%
+
+                if (RegistryUtils.isLoggedIn(registry)) {
+                    // Will be available only to users with Admin priviledges 
OR who are Authors of the current Mashup
+                    if ((RegistryUtils.isAdminRole(registry)) ||
+                            (author.equalsIgnoreCase(currentUser))) {
+
+            %>
+            You may use the <a 
href="editor.jsp?action=edit&mashup=<%=path%>">mashup editor</a> to
+            fix
+            the source code of this mashup.
+
+        <p>The following details regarding the faulty mashup is available at 
this time.</p>
+
+        <div style="background-color: gray;">
+            <pre style="width:100%;"><%=description%></pre>
+        </div>
+        <%
+            }
+
+        } else {
+        %>
+        Please notify the author of this mashup or an administrator.
+        <%
+            }
+        %>
+        </p>
+    </div>
+    <%@ include file="footer.jsp" %>
+</div>
+</body>
 </html>
\ No newline at end of file

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to