java/code/webapp/WEB-INF/pages/systems/sdc/note_edit.jsp | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
New commits:
commit a34d9199bbb92d7fba3b13ac8c7413f87bc49825
Author: Johannes Renner <jrenner(a)suse.de>
Date: Thu Feb 17 11:20:52 2011 +0100
do not show delete link on creation of notes (bnc#672090)
diff --git a/java/code/webapp/WEB-INF/pages/systems/sdc/note_edit.jsp b/java/code/webapp/WEB-INF/pages/systems/sdc/note_edit.jsp
index 08b8a22..4a8836e 100644
--- a/java/code/webapp/WEB-INF/pages/systems/sdc/note_edit.jsp
+++ b/java/code/webapp/WEB-INF/pages/systems/sdc/note_edit.jsp
@@ -9,18 +9,19 @@
<%@ include file="/WEB-INF/pages/common/fragments/systems/system-header.jspf" %>
- <rhn:toolbar base="h2" img="/img/rhn-icon-note.gif"
- deletionUrl="/rhn/systems/details/DeleteNote.do?sid=${system.id}&nid=${n.id}"
- deletionType="note"
- >
- <bean:message key="sdc.details.notes.header"/>
- </rhn:toolbar>
-
<c:choose>
<c:when test="${empty param.nid}">
+ <rhn:toolbar base="h2" img="/img/rhn-icon-note.gif">
+ <bean:message key="sdc.details.notes.header"/>
+ </rhn:toolbar>
<c:set var="urlParam" scope="request" value="sid=${system.id}"/>
</c:when>
<c:otherwise>
+ <rhn:toolbar base="h2" img="/img/rhn-icon-note.gif"
+ deletionUrl="/rhn/systems/details/DeleteNote.do?sid=${system.id}&nid=${n.id}"
+ deletionType="note">
+ <bean:message key="sdc.details.notes.header"/>
+ </rhn:toolbar>
<c:set var="urlParam" scope="request" value="sid=${system.id}&nid=${n.id}"/>
</c:otherwise>
</c:choose>