mirror of https://github.com/zlatinb/muwire
get rid of static headers in trust list view
parent
58137d11d1
commit
982a93a04b
|
@ -356,7 +356,8 @@ public class TrustServlet extends HttpServlet {
|
||||||
|
|
||||||
private static final ColumnComparators<TrustListEntry> TRUST_LIST_ENTRY_COMPARATORS = new ColumnComparators<>();
|
private static final ColumnComparators<TrustListEntry> TRUST_LIST_ENTRY_COMPARATORS = new ColumnComparators<>();
|
||||||
static {
|
static {
|
||||||
TRUST_LIST_ENTRY_COMPARATORS.add("User", TRUST_LIST_ENTRY_BY_USER);
|
TRUST_LIST_ENTRY_COMPARATORS.add("Trusted User", TRUST_LIST_ENTRY_BY_USER);
|
||||||
|
TRUST_LIST_ENTRY_COMPARATORS.add("Distrusted User", TRUST_LIST_ENTRY_BY_USER);
|
||||||
TRUST_LIST_ENTRY_COMPARATORS.add("Reason", TRUST_LIST_ENTRY_BY_REASON);
|
TRUST_LIST_ENTRY_COMPARATORS.add("Reason", TRUST_LIST_ENTRY_BY_REASON);
|
||||||
TRUST_LIST_ENTRY_COMPARATORS.add("Your Trust", TRUST_LIST_ENTRY_BY_STATUS);
|
TRUST_LIST_ENTRY_COMPARATORS.add("Your Trust", TRUST_LIST_ENTRY_BY_STATUS);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,7 @@ public class Util {
|
||||||
_x("Details for {0}"),
|
_x("Details for {0}"),
|
||||||
_x("Directory for downloaded files"),
|
_x("Directory for downloaded files"),
|
||||||
_x("Directory for incomplete files"),
|
_x("Directory for incomplete files"),
|
||||||
|
_x("Distrusted User"),
|
||||||
_x("Done Pieces"),
|
_x("Done Pieces"),
|
||||||
_x("Down"),
|
_x("Down"),
|
||||||
_x("Download"),
|
_x("Download"),
|
||||||
|
@ -108,6 +109,7 @@ public class Util {
|
||||||
_x("Total upload slots (-1 means unlimited)"),
|
_x("Total upload slots (-1 means unlimited)"),
|
||||||
_x("Trust"),
|
_x("Trust"),
|
||||||
_x("Trust list update frequency (hours)"),
|
_x("Trust list update frequency (hours)"),
|
||||||
|
_x("Trusted User"),
|
||||||
_x("Unshare"),
|
_x("Unshare"),
|
||||||
_x("Unsubscribe"),
|
_x("Unsubscribe"),
|
||||||
_x("Upload"),
|
_x("Upload"),
|
||||||
|
|
|
@ -43,7 +43,8 @@ class Persona {
|
||||||
var mapping = new Map()
|
var mapping = new Map()
|
||||||
|
|
||||||
var userHtml = this.user + "<div>" + this.getTrustActions().join(" ") + "</div>"
|
var userHtml = this.user + "<div>" + this.getTrustActions().join(" ") + "</div>"
|
||||||
mapping.set("User", userHtml)
|
mapping.set("Trusted User", userHtml)
|
||||||
|
mapping.set("Distrusted User", userHtml)
|
||||||
mapping.set("Reason", this.reason)
|
mapping.set("Reason", this.reason)
|
||||||
mapping.set("Your Trust", this.status)
|
mapping.set("Your Trust", this.status)
|
||||||
|
|
||||||
|
@ -231,7 +232,7 @@ function displayTrustedList(user) {
|
||||||
else if (trustedSortOrder == "ascending")
|
else if (trustedSortOrder == "ascending")
|
||||||
newOrder = "descending"
|
newOrder = "descending"
|
||||||
|
|
||||||
var table = new Table(["User", "Reason", "Your Trust"], "sortTrustedList", trustedSortKey, newOrder, null)
|
var table = new Table(["Trusted User", "Reason", "Your Trust"], "sortTrustedList", trustedSortKey, newOrder, null)
|
||||||
var i
|
var i
|
||||||
for(i = 0; i < trusted.length; i++) {
|
for(i = 0; i < trusted.length; i++) {
|
||||||
table.addRow(trusted[i].getMapping())
|
table.addRow(trusted[i].getMapping())
|
||||||
|
@ -263,7 +264,7 @@ function displayDistrustedList(user) {
|
||||||
else if (distrustedSortOrder == "ascending")
|
else if (distrustedSortOrder == "ascending")
|
||||||
newOrder = "descending"
|
newOrder = "descending"
|
||||||
|
|
||||||
var table = new Table(["User", "Reason", "Your Trust"], "sortDistrustedList", distrustedSortKey, newOrder, null)
|
var table = new Table(["Distrusted User", "Reason", "Your Trust"], "sortDistrustedList", distrustedSortKey, newOrder, null)
|
||||||
var i
|
var i
|
||||||
for(i = 0; i < distrusted.length; i++) {
|
for(i = 0; i < distrusted.length; i++) {
|
||||||
table.addRow(distrusted[i].getMapping())
|
table.addRow(distrusted[i].getMapping())
|
||||||
|
|
|
@ -30,7 +30,6 @@ String pagetitle=Util._t("Trust Lists");
|
||||||
<hr/>
|
<hr/>
|
||||||
<center><div id="currentList"></div></center>
|
<center><div id="currentList"></div></center>
|
||||||
<table>
|
<table>
|
||||||
<thead><tr><th>Trusted</th><th>Distrusted</th></tr></thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><div id="table-wrapper"><div id="table-scroll"><div id="trusted"></div></div></div></td>
|
<td><div id="table-wrapper"><div id="table-scroll"><div id="trusted"></div></div></div></td>
|
||||||
|
|
Loading…
Reference in New Issue