Layout's home link shown conditionally.

This commit is contained in:
barnold 2022-09-13 15:02:33 +01:00
parent e08685d350
commit df1234e913

View File

@ -7,7 +7,10 @@
</div>
<hr/>
<div>
<%# Provide a link to the home page, unless we're on it. %>
<% if ('/' ne $c->req->url->path) { %>
<a href="<%= url_for('/') %>">Home</a>
<% } %>
</div>
</body>
</html>