April 2016
Beginner to intermediate
300 pages
6h 58m
English
We’ve come a long way. We can now authenticate a user in a secure way. We’re using a single function that we can reliably share across each feature of the application that needs it. Now, we can turn our attention to showing customized headers in our layout based on a user’s authentication status. Let’s start with a welcome message and a logout link.
We want to change the layout of the application to handle the new user features so that other views can also take advantage of these features. Let’s update the layout in web/templates/layout/app.html.eex. Change it to look like this:
| | <div class="header"> |
| | <ol class="breadcrumb text-right"> |
Read now
Unlock full access