Skip to content

Commit 77053ca

Browse files
committed
tweaking bug
1 parent b5fbc61 commit 77053ca

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

singularity/views/templates/container_tree.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,19 @@ <h3>Files</h3>
149149
.on("mouseover", showFiles);
150150

151151
nodeEnter.append("image")
152-
.attr("xlink:href",function(d) {
153-
if (d._children.length > 0) {
154-
return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder-blue.png";
155-
} else {
156-
return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder.png";
157-
}
158-
})
159152
.attr("x", "-8px")
160153
.attr("y", "-8px")
161154
.attr("width", "24px")
162-
.attr("height", "24px");
155+
.attr("height", "24px")
156+
.attr("xlink:href",function(d) {
157+
if (d._children != null ) {
158+
if (d._children.length > 0) {
159+
return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder-blue.png";
160+
} else {
161+
return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder.png";
162+
}
163+
}
164+
});
163165

164166
nodeEnter.append("circle")
165167
.attr("r", 1e-6)

singularity/views/templates/container_tree_circleci.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,19 @@ <h3>Files</h3>
149149
.on("mouseover", showFiles);
150150

151151
nodeEnter.append("image")
152-
.attr("xlink:href",function(d) {
153-
if (d._children.length > 0) {
154-
return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder-blue.png";
155-
} else {
156-
return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder.png";
157-
}
158-
})
159152
.attr("x", "-8px")
160153
.attr("y", "-8px")
161154
.attr("width", "24px")
162-
.attr("height", "24px");
155+
.attr("height", "24px")
156+
.attr("xlink:href",function(d) {
157+
if (d._children != null ) {
158+
if (d._children.length > 0) {
159+
return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder-blue.png";
160+
} else {
161+
return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder.png";
162+
}
163+
}
164+
});
163165

164166
nodeEnter.append("circle")
165167
.attr("r", 1e-6)

0 commit comments

Comments
 (0)