From bfe8c656286d0d60f61d4a87d69a96d327194c09 Mon Sep 17 00:00:00 2001 From: str4d Date: Fri, 10 Feb 2017 16:37:15 +0000 Subject: [PATCH] SusiDNS changes: - Additional column on hostname list page for helper address with icon, and iconfication of b32 addresses - Added minified identicon to hostname column - Changed destination address display on list/details from textarea to div to accomodate automatic height adjustment (no need to manually specify height and hope for the best) - Also allows us to display the full Destination on the details page - Tooltips for eraser icon + new address helper icon & minified identicons - Consolidation of Hostname/host name/name referenced: now all "Hostname" - Theme tweaks and whitespace removal --- .../src/i2p/susi/dns/AddressbookBean.java | 2 +- apps/susidns/src/jsp/addressbook.jsp | 67 ++- apps/susidns/src/jsp/config.jsp | 5 +- apps/susidns/src/jsp/details.jsp | 67 ++- apps/susidns/src/jsp/index.jsp | 2 - apps/susidns/src/jsp/subscriptions.jsp | 2 - .../themes/console/images/buttons/helper.png | Bin 0 -> 939 bytes .../themes/console/images/buttons/link.png | Bin 0 -> 422 bytes .../themes/susidns/classic/susidns.css | 300 ++++++++--- .../resources/themes/susidns/dark/susidns.css | 295 +++++++++-- .../themes/susidns/light/susidns.css | 488 ++++++++++++++---- .../themes/susidns/midnight/susidns.css | 291 +++++++++-- 12 files changed, 1198 insertions(+), 321 deletions(-) create mode 100644 installer/resources/themes/console/images/buttons/helper.png create mode 100644 installer/resources/themes/console/images/buttons/link.png diff --git a/apps/susidns/src/java/src/i2p/susi/dns/AddressbookBean.java b/apps/susidns/src/java/src/i2p/susi/dns/AddressbookBean.java index 04b522e24..9ea9eed4e 100644 --- a/apps/susidns/src/java/src/i2p/susi/dns/AddressbookBean.java +++ b/apps/susidns/src/java/src/i2p/susi/dns/AddressbookBean.java @@ -174,7 +174,7 @@ public class AddressbookBean extends BaseBean try { fis.close(); } catch (IOException ioe) {} } if( message.length() > 0 ) - message = "

" + message + "

"; + message = "

" + message + "

"; return message; } diff --git a/apps/susidns/src/jsp/addressbook.jsp b/apps/susidns/src/jsp/addressbook.jsp index 448aec9c0..0ceed8e81 100644 --- a/apps/susidns/src/jsp/addressbook.jsp +++ b/apps/susidns/src/jsp/addressbook.jsp @@ -59,7 +59,6 @@

@@ -91,7 +89,8 @@ ${book.loadBookMessages} " /> -
+ + <% } /* book.getEntries().length() > 0 */ %>
@@ -105,7 +104,7 @@ ${book.loadBookMessages}

a b -c +c d e f @@ -131,19 +130,22 @@ ${book.loadBookMessages} z 0-9 <%=intl._t("other")%> -<%=intl._t("all")%>

+<%=intl._t("all")%> +

+ + <% @@ -157,32 +159,37 @@ ${book.loadBookMessages}
- +
+<% if (book.getEntries().length > 0) { /* Don't show if no results. Can't figure out how to do this with c:if */ %> + + + + + + - + -<% 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 */ %>
<%=intl._t("Hostname")%><%=intl._t("Link (b32)")%>HelperDetails<%=intl._t("Destination")%>"> <%=intl._t("Name")%><%=intl._t("Links")%><%=intl._t("Destination")%>
">${addr.displayName}">b32">link"><%=intl._t("details")%>
${addr.destination}
"> ${addr.displayName} - -">b32 - -"><%=intl._t("details")%> -
@@ -212,18 +219,24 @@ ${book.loadBookMessages}
-

<%=intl._t("Add new destination")%>:

-
-<%=intl._t("Host Name")%> -
-<%=intl._t("Destination")%> -
+

<%=intl._t("Add new destination")%>

+ + + + + + + + + +
<%=intl._t("Hostname")%>
<%=intl._t("Destination")%>

" > " > " >

-
+
+