table styling and caret on the file tree from zzz

pull/34/head
Zlatin Balevsky 2019-12-11 14:40:49 +00:00
parent a9935eba62
commit c05a7a021c
5 changed files with 144 additions and 24 deletions

View File

@ -42,8 +42,8 @@ task precompileJsp {
classPath : sourceSets.main.runtimeClasspath.asPath,
uriroot: webAppDir,
outputDir: "$buildDir/tmp_jsp",
compilerSourceVM: "1.8",
compilerTargetVM: "1.8",
compilerSourceVM: project.sourceCompatibility,
compilerTargetVM: project.targetCompatibility,
webXmlFragment: "$buildDir/tmp_jsp/web.xml.jasper")
def output = new File("$buildDir/compiledJsps")
output.mkdirs()
@ -52,6 +52,8 @@ task precompileJsp {
debug : true,
includeAntRuntime : false,
deprecation : "on",
source: project.sourceCompatibility,
target: project.targetCompatibility,
destDir:file("$buildDir/compiledJsps"))
}
@ -80,7 +82,10 @@ task bundle {
ant.mkdir(dir: "$buildDir/compiledMessages")
ant.javac(srcDir: "$buildDir/messages-src",
classPath : sourceSets.main.runtimeClasspath.asPath,
debug : false,
includeAntRuntime : false,
source: project.sourceCompatibility,
target: project.targetCompatibility,
destDir:file("$buildDir/compiledMessages"))
// add resulting classes to build/libs/webui-(version).jar
ant.jar(destfile: "$buildDir/libs/webui-${version}.jar",

View File

@ -1,6 +1,3 @@
@import url("roboto.css");
@import url("noto.css");
/* General */
a:link {

View File

@ -14,6 +14,10 @@
background: #ceeee8;
color:black;
}
#table-wrapper table td, th {
padding-right: 10px;
padding-bottom: 1px;
}
#table-wrapper table thead th .text {
position:absolute;
top:-20px;
@ -23,32 +27,144 @@
border:1px solid red;
}
div#activeSearches table thead th:first-child {
width: 40%;
div#activeSearches table thead th:nth-child(2) {
width: 55px;
}
div#topTable table thead th:first-child {
width: 50%;
div#activeSearches table thead th:nth-child(3) {
width: 55px;
}
div#activeSearches table td:nth-child(2) {
text-align: right;
}
div#activeSearches table tbody td:nth-child(3) {
text-align: right;
}
div#topTable table thead th:nth-child(2) {
width: 15%;
width: 100px;
}
div#topTable table thead th:first-child {
width: 75%;
div#topTable table thead th:nth-child(3) {
width: 300px;
}
div#topTable table tbody td:nth-child(2) {
text-align: center;
}
div#activeBrowses table thead th:first-child {
width: 50%;
div#bottomTable table thead th:nth-child(2) {
width: 100px;
}
div#bottomTable table thead th:nth-child(3) {
width: 100px;
}
div#bottomTable table tbody td:nth-child(2) {
text-align: right;
}
div#bottomTable table tbody td:nth-child(3) {
text-align: center;
}
div#filesTable table thead th:first-child {
width: 70%;
div#activeBrowses table thead th:nth-child(2) {
width: 100px;
}
div#activeBrowses table thead th:nth-child(3) {
width: 200px;
}
div#trustedUsers table thead th:first-child {
width: 50%;
div#filesTable table thead th:nth-child(2) {
width: 100px;
}
div#trustLists table thead th:first-child {
width: 50%;
div#filesTable table thead th:nth-child(3) {
width: 100px;
}
div#filesTable table tbody td:nth-child(2) {
text-align: right;
}
div#filesTable table tbody td:nth-child(3) {
text-align: center;
}
div#resultsTable table thead th:nth-child(2) {
width: 100px;
}
div#resultsTable table thead th:nth-child(3) {
width: 100px;
}
div#resultsTable table tbody td:nth-child(2) {
text-align: right;
}
div#resultsTable table tbody td:nth-child(3) {
text-align: center;
}
div#downloads table thead th:nth-child(2) {
width: 80px;
}
div#downloads table thead th:nth-child(3) {
width: 80px;
}
div#downloads table thead th:nth-child(4) {
width: 80px;
}
div#downloads table thead th:nth-child(5) {
width: 120px;
}
div#downloads table thead th:nth-child(6) {
width: 80px;
}
div#downloads table tbody td:nth-child(2) {
text-align: center;
}
div#downloads table tbody td:nth-child(3) {
text-align: right;
}
div#downloads table tbody td:nth-child(4) {
text-align: right;
}
div#downloads table tbody td:nth-child(5) {
text-align: right;
}
div#downloads table tbody td:nth-child(6) {
text-align: center;
}
div#trustedUsers table thead th:nth-child(2) {
width: 100px;
}
div#trustedUsers table thead th:nth-child(3) {
width: 100px;
}
div#trustedUsers table thead th:nth-child(4) {
width: 100px;
}
div#distrustedUsers table thead th:nth-child(2) {
width: 100px;
}
div#distrustedUsers table thead th:nth-child(3) {
width: 100px;
}
div#distrustedUsers table thead th:nth-child(4) {
width: 100px;
}
div#trustLists table thead th:nth-child(2) {
width: 100px;
}
div#trustLists table thead th:nth-child(3) {
width: 100px;
}
div#trustLists table thead th:nth-child(4) {
width: 100px;
}
div#trustLists table thead th:nth-child(5) {
width: 100px;
}
div#trustLists table thead th:nth-child(6) {
width: 100px;
}
pre {
background: #a7d5d5;
padding: 5px;
margin: 10px 20px 10px 5px;
}
/* File tree CSS */
@ -68,6 +184,8 @@ ul, #sharedTree {
.caret {
cursor: pointer;
user-select: none; /* Prevent text selection */
padding-right: 30px;
color: black;
}
/* Create the caret/arrow with a unicode, and style it */
@ -75,7 +193,7 @@ ul, #sharedTree {
content: "\25B6";
color: black;
display: inline-block;
margin-right: 6px;
margin-right: 10px;
}
/* Rotate the caret/arrow icon when clicked on (using JavaScript) */

View File

@ -3,6 +3,7 @@ function refreshConnectionsCount() {
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4) {
var connectionCountSpan = document.getElementById("connectionsCount");
var connectionIcon = document.getElementById("connectionsIcon");
if (this.status == 200) {
var image;
var connections = this.responseXML.getElementsByTagName("Connections");
@ -13,7 +14,6 @@ function refreshConnectionsCount() {
image = "connected.png";
else
image = "connecting.png";
var connectionIcon = document.getElementById("connectionsIcon");
connectionIcon.innerHTML = "<img src=\"images/" + image + "\" alt=\"\">";
} else {
connectionCountSpan.innerHTML = _t("Down");

View File

@ -26,10 +26,10 @@ class Node {
commentLink + "<div id='comment-" + this.nodeId+ "'></div></li>"
} else {
if (this.children.length == 0) {
div.innerHTML = "<li><span><a href='#' onclick='window.expand(\"" + this.nodeId + "\");return false'>" +
div.innerHTML = "<li><span><a class='caret' href='#' onclick='window.expand(\"" + this.nodeId + "\");return false'>" +
this.path + "</a> " + unshareLink + "</span>" + " " + certifyLink + " " + commentLink + "<div id='comment-" + this.nodeId + "'></div></li>"
} else {
var l = "<li><a href='#' onclick='window.collapse(\"" + this.nodeId + "\");return false;'>"+this.path+"</a> " + unshareLink
var l = "<li><a class='caret caret-down' href='#' onclick='window.collapse(\"" + this.nodeId + "\");return false;'>"+this.path+"</a> " + unshareLink
l += " " + certifyLink + " " + commentLink+"<div id='comment-" + this.nodeId + "'></div>"
l += "<ul>"