I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 6fe55529 authored by str4d's avatar str4d
Browse files

i2psnark: Fix bug in status tooltips

parent 4c6af7cd
Branches
Tags
No related merge requests found
......@@ -1581,25 +1581,28 @@ public class I2PSnarkServlet extends BasicServlet {
if (isRunning) {
String img;
String txt;
String tooltip;
if (remaining == 0) {
img = "seeding";
txt = _t("Seeding to {0} of {1} peers in swarm", curPeers, knownPeers);
txt = _t("Seeding");
tooltip = _t("Seeding to {0} of {1} peers in swarm", curPeers, knownPeers);
} else {
// partial
img = "complete";
txt = _t("Complete");
tooltip = txt;
if (curPeers > 0) {
txt = txt + " (" + _t("Seeding to {0} of {1} peers in swarm", curPeers, knownPeers) + ")";
tooltip = txt + " (" + _t("Seeding to {0} of {1} peers in swarm", curPeers, knownPeers) + ")";
}
}
if (curPeers > 0 && !showPeers) {
statusString = toThemeImg(img, "", txt) + "</td>" +
statusString = toThemeImg(img, "", tooltip) + "</td>" +
"<td class=\"snarkTorrentStatus\"><b>" + txt +
":</b> <a href=\"" + uri + getQueryString(req, b64, null, null) + '#' + b64Short + "\">" +
curPeers + thinsp(noThinsp) +
ngettext("1 peer", "{0} peers", knownPeers) + "</a>";
} else {
statusString = toThemeImg(img, "", txt) + "</td>" +
statusString = toThemeImg(img, "", tooltip) + "</td>" +
"<td class=\"snarkTorrentStatus\"><b>" + txt +
":</b> " + curPeers + thinsp(noThinsp) +
ngettext("1 peer", "{0} peers", knownPeers);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment