Skip to content

Commit db8d096

Browse files
committed
cleanup
1 parent 4bd799d commit db8d096

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
package com.samourai.javaserver.web.models;
22

3-
import com.samourai.javaserver.utils.ServerUtils;
43
import java.util.Map;
5-
import org.springframework.beans.factory.annotation.Autowired;
6-
import org.springframework.boot.autoconfigure.web.ServerProperties;
74
import org.springframework.ui.Model;
85

96
public class ConfigTemplateModel extends DashboardTemplateModel {
107
public Map<String, String> configInfo;
11-
@Autowired protected ServerProperties serverProperties;
128

139
public ConfigTemplateModel(String pageTitle, String logoTitle, Map<String, String> configInfo) {
1410
super(pageTitle, logoTitle);
@@ -17,7 +13,6 @@ public ConfigTemplateModel(String pageTitle, String logoTitle, Map<String, Strin
1713

1814
public void apply(Model model) {
1915
super.apply(model);
20-
configInfo.put("serverProperties", ServerUtils.getInstance().toJsonString(serverProperties));
2116
model.addAttribute("configModel", this);
2217
}
2318
}

src/main/resources/templates/decorators/system.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ <h1 class="h2">System</h1>
3535
<td class="threadName"><span th:text="${thread.getName()}"/></td>
3636
<td class="threadState"><span th:text="${thread.getState()}"/></td>
3737
<td class="threadStacktrace">
38-
<div th:each="line : ${thread.getStackTrace()}">
39-
<div th:text="${line.toString()}"/>
38+
<div th:if="${thread.getState().name() == 'BLOCKED'}">
39+
<div th:each="line : ${thread.getStackTrace()}">
40+
<span th:text="${line.toString()}"/>
41+
</div>
4042
</div>
4143
</td>
4244
</tr>

0 commit comments

Comments
 (0)