SusiDNS: Add export button

This commit is contained in:
zzz
2015-05-03 13:21:16 +00:00
parent a14208b841
commit 1eba6c5167
7 changed files with 46 additions and 3 deletions

View File

@ -178,7 +178,20 @@ ${book.loadBookMessages}
</div></form> </div></form>
</c:if> </c:if>
<form action="export" method="GET" target="_top">
<div id="buttons">
<p class="buttons">
<input type="hidden" name="book" value="${book.book}">
<c:if test="${book.search} != null && ${book.search}.length() > 0">
<input type="hidden" name="search" value="${book.search}">
</c:if> </c:if>
<c:if test="${book.hasFilter}">
<input type="hidden" name="filter" value="${book.filter}">
</c:if>
<input type="submit" class="export" value="<%=intl._("Export in hosts.txt format")%>" />
</p></div></form>
</c:if><% /* book.notEmpty */ %>
<c:if test="${book.isEmpty}"> <c:if test="${book.isEmpty}">
<div id="book"> <div id="book">

View File

@ -290,6 +290,11 @@ public abstract class NamingService {
Map<String, String> entries = getBase64Entries(options); Map<String, String> entries = getBase64Entries(options);
out.write("# Address book: "); out.write("# Address book: ");
out.write(getName()); out.write(getName());
if (options != null) {
String list = options.getProperty("list");
if (list != null)
out.write(" (" + list + ')');
}
out.write('\n'); out.write('\n');
int sz = entries.size(); int sz = entries.size();
if (sz <= 0) { if (sz <= 0) {

View File

@ -1,6 +1,13 @@
2015-05-03 zzz
* SusiDNS: Add export button
2015-05-02 zzz
* Console: Fix Indonesian translations
* Jetty 8.1.17.v20150415
* Transports: Cleanup of ticket #1458 fixes
2015-04-30 zzz 2015-04-30 zzz
* Transports: * Transports: Correctly handle IPv4 firewalled, IPv6 not (ticket #1458)
- Correctly handle IPv4 firewalled, IPv6 not (ticket #1458)
2015-04-29 zzz 2015-04-29 zzz
* Clock: Make forward slewing work better * Clock: Make forward slewing work better

View File

@ -252,6 +252,12 @@ input.delete {
min-height: 22px; min-height: 22px;
} }
input.export {
background: #ddf url('/themes/console/images/arrow_right.png') no-repeat 2px center;
padding: 2px 3px 2px 20px;
min-height: 22px;
}
input.reload { input.reload {
background: #ddf url('/themes/console/images/arrow_refresh.png') no-repeat 2px center; background: #ddf url('/themes/console/images/arrow_refresh.png') no-repeat 2px center;
padding: 2px 3px 2px 20px; padding: 2px 3px 2px 20px;

View File

@ -222,6 +222,12 @@ input.delete {
min-height: 22px; min-height: 22px;
} }
input.export {
background: #ddf url('/themes/console/images/arrow_right.png') no-repeat 2px center;
padding: 2px 3px 2px 20px;
min-height: 22px;
}
input.reload { input.reload {
background: #ddf url('/themes/console/images/arrow_refresh.png') no-repeat 2px center; background: #ddf url('/themes/console/images/arrow_refresh.png') no-repeat 2px center;
padding: 2px 3px 2px 20px; padding: 2px 3px 2px 20px;

View File

@ -252,6 +252,12 @@ input.delete {
min-height: 22px; min-height: 22px;
} }
input.export {
background: #ddf url('/themes/console/images/arrow_right.png') no-repeat 2px center;
padding: 2px 3px 2px 20px;
min-height: 22px;
}
input.reload { input.reload {
background: #ddf url('/themes/console/images/arrow_refresh.png') no-repeat 2px center; background: #ddf url('/themes/console/images/arrow_refresh.png') no-repeat 2px center;
padding: 2px 3px 2px 20px; padding: 2px 3px 2px 20px;

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 12; public final static long BUILD = 13;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = ""; public final static String EXTRA = "";