improved train access

This commit is contained in:
Stephan Richter
2020-11-27 01:15:19 +01:00
parent 5b4ccf058b
commit 5e54c0cfb6
4 changed files with 14 additions and 3 deletions

View File

@@ -531,7 +531,7 @@ public class Train extends BaseClass implements Comparable<Train> {
HashMap<String, Object> props = new HashMap<String,Object>(Map.of(REALM,REALM_TRAIN,ID,id));
if (isSet(currentBlock)) {
link("li",Map.of(REALM,REALM_PLAN,ID,currentBlock.id(),ACTION,ACTION_CLICK),t("Current location: {}",currentBlock)).addTo(propList);
currentBlock.link(currentBlock.toString(),"span").addTo(new Tag("li").content(t("Current location:")+NBSP)).addTo(propList);
Tag actions = new Tag("li").clazz().content(t("Actions:")+NBSP);
if (isSet(route)) {
props.put(ACTION, ACTION_STOP);