Layout's home link shown conditionally.
This commit is contained in:
parent
e08685d350
commit
df1234e913
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user