susidns: rework top nav, consolidate filter section, misc markup

This commit is contained in:
str4d
2016-07-11 07:08:55 +00:00
parent e01fe689d0
commit ddf332e779
6 changed files with 59 additions and 57 deletions

View File

@ -211,7 +211,7 @@ public class NamingServiceBean extends AddressbookBean
warn(e);
}
if( message.length() > 0 )
message = "<p>" + message + "</p>";
message = "<p id=\"filtered\">" + message + "</p>";
return message;
}

View File

@ -59,18 +59,17 @@
<hr>
<div id="navi">
<p>
<%=intl._t("Address books")%>:
<a href="addressbook?book=private&amp;filter=none&amp;begin=0&amp;end=49"><%=intl._t("private")%></a> |
<a href="addressbook?book=master&amp;filter=none&amp;begin=0&amp;end=49"><%=intl._t("master")%></a> |
<a href="addressbook?book=router&amp;filter=none&amp;begin=0&amp;end=49"><%=intl._t("router")%></a> |
<a href="addressbook?book=published&amp;filter=none&amp;begin=0&amp;end=49"><%=intl._t("published")%></a> *
<a href="subscriptions"><%=intl._t("Subscriptions")%></a> *
<a href="config"><%=intl._t("Configuration")%></a> *
<a href="index"><%=intl._t("Overview")%></a>
<a id="overview" href="index"><%=intl._t("Overview")%></a>&nbsp;
<a class="abook" href="addressbook?book=private"><%=intl._t("Private")%></a>&nbsp;
<a class="abook" href="addressbook?book=master"><%=intl._t("Master")%></a>&nbsp;
<a class="abook" href="addressbook?book=router"><%=intl._t("Router")%></a>&nbsp;
<a class="abook" href="addressbook?book=published"><%=intl._t("Published")%></a>&nbsp;
<a id="subs" href="subscriptions"><%=intl._t("Subscriptions")%></a>&nbsp;
<a id="config" href="config"><%=intl._t("Configuration")%></a>
</p>
</div>
<hr>
<div id="headline">
<div class="headline" id="addressbook">
<h3><%=intl._t("Address book")%>: <%=intl._t(book.getBook())%></h3>
<h4><%=intl._t("Storage")%>: ${book.displayName}</h4>
</div>
@ -81,7 +80,14 @@ ${book.loadBookMessages}
<c:if test="${book.notEmpty}">
<div id="filter">
<p><%=intl._t("Filter")%>:
<c:if test="${book.hasFilter}">
<span><%=intl._t("Current filter")%>: <b>${book.filter}</b>
<a href="addressbook?filter=none&amp;begin=0&amp;end=49"><%=intl._t("clear filter")%></a></span>
</c:if>
<c:if test="${!book.hasFilter}">
<span><%=intl._t("Filter")%></span>
</c:if>
<p>
<a href="addressbook?filter=a&amp;begin=0&amp;end=49">a</a>
<a href="addressbook?filter=b&amp;begin=0&amp;end=49">b</a>
<a href="addressbook?filter=c&amp;begin=0&amp;end=49">c</a>
@ -111,10 +117,6 @@ ${book.loadBookMessages}
<a href="addressbook?filter=0-9&amp;begin=0&amp;end=49">0-9</a>
<a href="addressbook?filter=xn--&amp;begin=0&amp;end=49"><%=intl._t("other")%></a>
<a href="addressbook?filter=none&amp;begin=0&amp;end=49"><%=intl._t("all")%></a></p>
<c:if test="${book.hasFilter}">
<p><%=intl._t("Current filter")%>: <b>${book.filter}</b>
<a href="addressbook?filter=none&amp;begin=0&amp;end=49"><%=intl._t("clear filter")%></a></p>
</c:if>
</div>
<div id="search">
@ -144,7 +146,7 @@ ${book.loadBookMessages}
<tr class="head">
<c:if test="${book.master || book.router || book.published || book.private}">
<th>&nbsp;</th>
<th></th>
</c:if>
<% if (book.getEntries().length > 0) { /* Don't show if no results. Can't figure out how to do this with c:if */ %>

View File

@ -55,18 +55,19 @@
</div><hr>
<div id="navi">
<p>
<%=intl._t("Address books")%>:
<a href="addressbook?book=private"><%=intl._t("private")%></a> |
<a href="addressbook?book=master"><%=intl._t("master")%></a> |
<a href="addressbook?book=router"><%=intl._t("router")%></a> |
<a href="addressbook?book=published"><%=intl._t("published")%></a> *
<a href="subscriptions"><%=intl._t("Subscriptions")%></a> *
<%=intl._t("Configuration")%> *
<a href="index"><%=intl._t("Overview")%></a>
<a id="overview" href="index"><%=intl._t("Overview")%></a>&nbsp;
<a class="abook" href="addressbook?book=private"><%=intl._t("Private")%></a>&nbsp;
<a class="abook" href="addressbook?book=master"><%=intl._t("Master")%></a>&nbsp;
<a class="abook" href="addressbook?book=router"><%=intl._t("Router")%></a>&nbsp;
<a class="abook" href="addressbook?book=published"><%=intl._t("Published")%></a>&nbsp;
<a id="subs" href="subscriptions"><%=intl._t("Subscriptions")%></a>&nbsp;
<a id="config" href="config"><%=intl._t("Configuration")%></a>
</p>
</div><hr>
<div id="headline">
<h3>${cfg.fileName}</h3>
</div>
<hr>
<div class="headline" id="config">
<h3><%=intl._t("Configuration")%></h3>
<h4><%=intl._t("Location:")%> ${cfg.fileName}</h4>
</div>
<div id="messages">${cfg.messages}</div>
<form method="POST" action="config">
@ -79,7 +80,7 @@
<input class="accept" type="submit" name="action" value="<%=intl._t("Save")%>" >
</div>
</form>
<div id="help">
<div class="help" id="helpconfig">
<h3><%=intl._t("Hints")%></h3>
<ol>
<li>

View File

@ -53,18 +53,17 @@
<hr>
<div id="navi">
<p>
<%=intl._t("Address books")%>:
<a href="addressbook?book=private&amp;filter=none&amp;begin=0&amp;end=49"><%=intl._t("private")%></a> |
<a href="addressbook?book=master&amp;filter=none&amp;begin=0&amp;end=49"><%=intl._t("master")%></a> |
<a href="addressbook?book=router&amp;filter=none&amp;begin=0&amp;end=49"><%=intl._t("router")%></a> |
<a href="addressbook?book=published&amp;filter=none&amp;begin=0&amp;end=49"><%=intl._t("published")%></a> *
<a href="subscriptions"><%=intl._t("Subscriptions")%></a> *
<a href="config"><%=intl._t("Configuration")%></a> *
<a href="index"><%=intl._t("Overview")%></a>
<a id="overview" href="index"><%=intl._t("Overview")%></a>&nbsp;
<a class="abook" href="addressbook?book=private"><%=intl._t("Private")%></a>&nbsp;
<a class="abook" href="addressbook?book=master"><%=intl._t("Master")%></a>&nbsp;
<a class="abook" href="addressbook?book=router"><%=intl._t("Router")%></a>&nbsp;
<a class="abook" href="addressbook?book=published"><%=intl._t("Published")%></a>&nbsp;
<a id="subs" href="subscriptions"><%=intl._t("Subscriptions")%></a>&nbsp;
<a id="config" href="config"><%=intl._t("Configuration")%></a>
</p>
</div>
<hr>
<div id="headline">
<div class="headline">
<h3><%=intl._t("Address book")%>: <%=intl._t(book.getBook())%></h3>
<h4><%=intl._t("Storage")%>: ${book.displayName}</h4>
</div>

View File

@ -54,14 +54,13 @@
<hr>
<div id="navi">
<p>
<%=intl._t("Address books")%>:
<a href="addressbook?book=private"><%=intl._t("private")%></a> |
<a href="addressbook?book=master"><%=intl._t("master")%></a> |
<a href="addressbook?book=router"><%=intl._t("router")%></a> |
<a href="addressbook?book=published"><%=intl._t("published")%></a> *
<a href="subscriptions"><%=intl._t("Subscriptions")%></a> *
<a href="config"><%=intl._t("Configuration")%></a> *
<%=intl._t("Overview")%>
<a id="overview" href="index"><%=intl._t("Overview")%></a>&nbsp;
<a class="abook" href="addressbook?book=private"><%=intl._t("Private")%></a>&nbsp;
<a class="abook" href="addressbook?book=master"><%=intl._t("Master")%></a>&nbsp;
<a class="abook" href="addressbook?book=router"><%=intl._t("Router")%></a>&nbsp;
<a class="abook" href="addressbook?book=published"><%=intl._t("Published")%></a>&nbsp;
<a id="subs" href="subscriptions"><%=intl._t("Subscriptions")%></a>&nbsp;
<a id="config" href="config"><%=intl._t("Configuration")%></a>
</p>
</div>
<hr>

View File

@ -54,18 +54,19 @@
</div><hr>
<div id="navi">
<p>
<%=intl._t("Address books")%>:
<a href="addressbook?book=private"><%=intl._t("private")%></a> |
<a href="addressbook?book=master"><%=intl._t("master")%></a> |
<a href="addressbook?book=router"><%=intl._t("router")%></a> |
<a href="addressbook?book=published"><%=intl._t("published")%></a> *
<%=intl._t("Subscriptions")%> *
<a href="config"><%=intl._t("Configuration")%></a> *
<a href="index"><%=intl._t("Overview")%></a>
<a id="overview" href="index"><%=intl._t("Overview")%></a>&nbsp;
<a class="abook" href="addressbook?book=private"><%=intl._t("Private")%></a>&nbsp;
<a class="abook" href="addressbook?book=master"><%=intl._t("Master")%></a>&nbsp;
<a class="abook" href="addressbook?book=router"><%=intl._t("Router")%></a>&nbsp;
<a class="abook" href="addressbook?book=published"><%=intl._t("Published")%></a>&nbsp;
<a id="subs" href="subscriptions"><%=intl._t("Subscriptions")%></a>&nbsp;
<a id="config" href="config"><%=intl._t("Configuration")%></a>
</p>
</div><hr>
<div id="headline">
<h3>${subs.fileName}</h3>
</div>
<hr>
<div class="headline" id="subscriptions">
<h3><%=intl._t("Subscriptions")%></h3>
<h4><%=intl._t("Location:")%> ${subs.fileName}</h4>
</div>
<div id="messages">${subs.messages}</div>
<form method="POST" action="subscriptions">
@ -78,7 +79,7 @@
<input class="accept" type="submit" name="action" value="<%=intl._t("Save")%>" >
</div>
</form>
<div id="help">
<div class="help" id="helpsubs">
<p class="help">
<%=intl._t("The subscription file contains a list of i2p URLs.")%>
<%=intl._t("The addressbook application regularly checks this list for new eepsites.")%>