[Commits] (bcm) don't display homedir for root in user list (root has no homedir)

commits at osafoundation.org commits at osafoundation.org
Wed Apr 20 10:18:14 PDT 2005


Commit by: bcm
Modified files:
server/web/web/WEB-INF/jsp/user/list.jsp 1.5 1.6

Log message:
don't display homedir for root in user list (root has no homedir)


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/server/web/web/WEB-INF/jsp/user/list.jsp.diff?r1=text&tr1=1.5&r2=text&tr2=1.6

Index: server/web/web/WEB-INF/jsp/user/list.jsp
diff -u server/web/web/WEB-INF/jsp/user/list.jsp:1.5 server/web/web/WEB-INF/jsp/user/list.jsp:1.6
--- server/web/web/WEB-INF/jsp/user/list.jsp:1.5	Wed Apr 13 16:50:29 2005
+++ server/web/web/WEB-INF/jsp/user/list.jsp	Wed Apr 20 10:18:13 2005
@@ -32,9 +32,13 @@
             </html:link>
           </td>
           <td class="md" nowrap="nowrap">
-            <html:link target="homedir" page="${homedir}">
-              ${homedir}
-            </html:link>
+            <c:choose>
+              <c:when test="${user.username ne 'root'}">
+                <html:link target="homedir" page="${homedir}">
+                  ${homedir}
+                </html:link>
+              </c:when>
+            </c:choose>
           </td>
           <td class="md" nowrap="nowrap">
             <html:link href="mailto:${user.email}">${user.email}</html:link>



More information about the Commits mailing list