Skip to content

Commit 9ee4355

Browse files
committed
work in progres
1 parent 78d71f8 commit 9ee4355

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/java/org/woehlke/simpleworklist/task/TaskState.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public String getCode(){
4343
return "layout.page."+this.name().toLowerCase();
4444
}
4545

46+
public String getUrlPath(){
47+
return "/taskstate/"+this.name().toLowerCase();
48+
}
49+
4650
public String getUrl(){
4751
return "redirect:/taskstate/"+this.name().toLowerCase();
4852
}

src/main/resources/templates/layout/tasks.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ <h5 class="modal-title" id="taskModalScrollableTitle">
228228
</div>
229229
<div>
230230
<b th:utext="#{tasks.focus.taskState}">Task State</b>
231-
<a th:href="@{{url}(url=${task.taskState.getUrl()})}">
231+
<a th:href="@{{url}(url=${task.taskState.getUrlPath()})}">
232232
<i th:class="${task.taskState.getIcon()}"></i>
233233
<span th:utext="${#messages.msgOrNull(task.taskState.code)}">Inbox</span>
234234
</a>

0 commit comments

Comments
 (0)