forked from I2P_Developers/i2p.i2p
fix details for published book
This commit is contained in:
@@ -258,7 +258,7 @@ public class AddressbookBean
|
||||
"&begin=" + newBegin + "&end=" + newEnd + "\">" + newBegin +
|
||||
'-' + newEnd + "</a> | ";
|
||||
}
|
||||
message += ' ' + _("Showing {0} of {1}", "" + getBegin() + '-' + getEnd(), Integer.valueOf(resultCount));
|
||||
message += ' ' + _("Showing {0} of {1}", getBegin() + '-' + getEnd(), Integer.valueOf(resultCount));
|
||||
if (getEndInt() < resultCount - 1) {
|
||||
int newBegin = Math.min(resultCount - 1, getEndInt() + 1);
|
||||
int newEnd = Math.min(resultCount, getEndInt() + DISPLAY_SIZE);
|
||||
|
||||
@@ -306,6 +306,18 @@ public class NamingServiceBean extends AddressbookBean
|
||||
public AddressBean getLookup() {
|
||||
if (this.detail == null)
|
||||
return null;
|
||||
if (isDirect()) {
|
||||
// go to some trouble to make this work for the published addressbook
|
||||
this.filter = this.detail.substring(0, 1);
|
||||
this.search = this.detail;
|
||||
// we don't want the messages, we just want to populate entries
|
||||
super.getLoadBookMessages();
|
||||
for (int i = 0; i < this.entries.length; i++) {
|
||||
if (this.search.equals(this.entries[i].getName()))
|
||||
return this.entries[i];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
Properties nsOptions = new Properties();
|
||||
Properties outProps = new Properties();
|
||||
nsOptions.setProperty("list", getFileName());
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
<%=intl._("Hosts in the private addressbook can be accessed by you but their addresses are never distributed to others.")%>
|
||||
<%=intl._("The private addressbook can also be used for aliases of hosts in your other addressbooks.")%>
|
||||
</p>
|
||||
<p><center><img src="images/how.png" border="0" alt="addressbook working scheme" title="How the addressbook works" class="illustrate" /></center></p>
|
||||
<center><img src="images/how.png" border="0" alt="addressbook working scheme" title="How the addressbook works" class="illustrate" /></center>
|
||||
</div>
|
||||
<hr>
|
||||
<div id="footer">
|
||||
|
||||
Reference in New Issue
Block a user