From 5d345f65a3446c1341a141d0296f91c9f5b83a95 Mon Sep 17 00:00:00 2001 From: zzz Date: Mon, 28 Sep 2015 16:58:18 +0000 Subject: [PATCH] SusiDNS: Hide table headers and buttons if there are no search results --- apps/susidns/src/jsp/addressbook.jsp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/susidns/src/jsp/addressbook.jsp b/apps/susidns/src/jsp/addressbook.jsp index 60ee04d67..20ff0bfef 100644 --- a/apps/susidns/src/jsp/addressbook.jsp +++ b/apps/susidns/src/jsp/addressbook.jsp @@ -147,6 +147,7 @@ ${book.loadBookMessages}   +<% if (book.getEntries().length > 0) { /* Don't show if no results. Can't figure out how to do this with c:if */ %> <%=intl._t("Name")%> <%=intl._t("Links")%> <%=intl._t("Destination")%> @@ -166,18 +167,23 @@ ${book.loadBookMessages} +<% } /* book..getEntries().length() > 0 */ %> +<% if (book.getEntries().length > 0) { /* Don't show if no results. Can't figure out how to do this with c:if */ %>

" > " >

-
+
+<% } /* book..getEntries().length() > 0 */ %> + +<% if (book.getEntries().length > 0) { /* Don't show if no results. Can't figure out how to do this with c:if */ %>

@@ -190,6 +196,7 @@ ${book.loadBookMessages} " />

+<% } /* book..getEntries().length() > 0 */ %> <% /* book.notEmpty */ %>