Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroleak committed Mar 9, 2020
1 parent 4bd799d commit db8d096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package com.samourai.javaserver.web.models;

import com.samourai.javaserver.utils.ServerUtils;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.ui.Model;

public class ConfigTemplateModel extends DashboardTemplateModel {
public Map<String, String> configInfo;
@Autowired protected ServerProperties serverProperties;

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

public void apply(Model model) {
super.apply(model);
configInfo.put("serverProperties", ServerUtils.getInstance().toJsonString(serverProperties));
model.addAttribute("configModel", this);
}
}
6 changes: 4 additions & 2 deletions src/main/resources/templates/decorators/system.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ <h1 class="h2">System</h1>
<td class="threadName"><span th:text="${thread.getName()}"/></td>
<td class="threadState"><span th:text="${thread.getState()}"/></td>
<td class="threadStacktrace">
<div th:each="line : ${thread.getStackTrace()}">
<div th:text="${line.toString()}"/>
<div th:if="${thread.getState().name() == 'BLOCKED'}">
<div th:each="line : ${thread.getStackTrace()}">
<span th:text="${line.toString()}"/>
</div>
</div>
</td>
</tr>
Expand Down

0 comments on commit db8d096

Please sign in to comment.