Commit 7fee5a56 by Tuomas Riihimäki

image layout stuff

1 parent 501934a0
......@@ -75,8 +75,9 @@ public class LayoutView {
{
selectedSet = new HashSet<>();
selectedTop = menubean.findNavigation(getPagepath());
if(selectedTop == null) return null;
if (selectedTop == null)
return null;
while (selectedTop.getParent() != null) {
logger.info("Traversing to top {}, key {}", selectedTop, selectedTop.getKey());
selectedSet.add(selectedTop);
......@@ -160,7 +161,7 @@ public class LayoutView {
// return "";
// }
public boolean getIsHeaderImage()
public boolean getHeaderIsImage()
{
return getHeaderimage() != null;
}
......@@ -176,6 +177,8 @@ public class LayoutView {
} else {
headerimage = new DefaultStreamedContent(new ByteArrayInputStream(logo.getByteValue()), logo.getByteMime());
}
} else {
headertext = "logo_not_set";
}
}
return headerimage;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!