actions dropdown on trust lists page
This commit is contained in:
@ -411,6 +411,7 @@ div#trustLists table thead th:nth-child(5) {
|
||||
}
|
||||
div#trustLists table tbody td:nth-child(1) {
|
||||
text-overflow: ellipsis;
|
||||
overflow: auto;
|
||||
}
|
||||
div#trustLists table tbody td:nth-child(2) {
|
||||
padding-right: 40px;
|
||||
@ -432,6 +433,7 @@ div#trusted table thead th:nth-child(3) {
|
||||
}
|
||||
div#trusted table tbody td:nth-child(1) {
|
||||
text-overflow: ellipsis;
|
||||
overflow: auto;
|
||||
}
|
||||
div#trusted table tbody td:nth-child(3) {
|
||||
text-align: center;
|
||||
@ -444,6 +446,7 @@ div#distrusted table thead th:nth-child(3) {
|
||||
}
|
||||
div#distrusted table tbody td:nth-child(1) {
|
||||
text-overflow: ellipsis;
|
||||
overflow: auto;
|
||||
}
|
||||
div#distrusted table tbody td:nth-child(3) {
|
||||
text-align: center;
|
||||
|
@ -14,8 +14,13 @@ class TrustList {
|
||||
var userLink = new Link(this.user, "displayList", [this.user])
|
||||
var unsubscribeLink = new Link(_t("Unsubscribe"), "unsubscribe", [this.userB64])
|
||||
var refreshLink = new Link(_t("Refresh"), "forceUpdate", [this.userB64])
|
||||
|
||||
var nameHtml = userLink.render() + "<span class='right'>" + unsubscribeLink.render() + " " + refreshLink.render() + "</span>"
|
||||
|
||||
var actionsHtml = "<div class='dropdown'><a class='droplink'>" + _t("Actions") + "</a><div class='dropdown-content'>" +
|
||||
unsubscribeLink.render() +
|
||||
refreshLink.render() +
|
||||
"</div></div>"
|
||||
|
||||
var nameHtml = userLink.render() + "<span class='right'>" + actionsHtml + "</span>"
|
||||
|
||||
mapping.set("Name", nameHtml)
|
||||
mapping.set("Status", this.status)
|
||||
@ -42,7 +47,11 @@ class Persona {
|
||||
getMapping() {
|
||||
var mapping = new Map()
|
||||
|
||||
var userHtml = this.user + "<div class='right'>" + this.getTrustActions().join(" ") + "</div>"
|
||||
var actionsHtml = "<div class='dropdown'><a class='droplink'>" + _t("Actions") + "</a><div class='dropdown-content'>" +
|
||||
this.getTrustActions().join("") +
|
||||
"</div></div>"
|
||||
|
||||
var userHtml = this.user + "<div class='right'>" + actionsHtml + "</div>"
|
||||
userHtml += "<div class='centercomment' id='trusted-" + this.userB64 + "'></div>"
|
||||
userHtml += "<div class='centercomment' id='distrusted-" + this.userB64 + "'></div>"
|
||||
mapping.set("Trusted User", userHtml)
|
||||
|
@ -23,14 +23,14 @@ String helptext = Util._t("This page shows the trust lists of users whom you hav
|
||||
</aside>
|
||||
<section class="main foldermain">
|
||||
<div id="table-wrapper">
|
||||
<div id="table-scroll">
|
||||
<div id="table-scroll" class="paddedTable">
|
||||
<div id="trustLists"></div>
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
<center><div id="currentList"></div></center>
|
||||
<div id="table-wrapper"><div id="table-scroll"><div id="trusted"></div></div></div>
|
||||
<div id="table-wrapper"><div id="table-scroll"><div id="distrusted"></div></div></div>
|
||||
<div id="table-wrapper"><div id="table-scroll" class="paddedTable"><div id="trusted"></div></div></div>
|
||||
<div id="table-wrapper"><div id="table-scroll" class="paddedTable"><div id="distrusted"></div></div></div>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user