    [% META title = 'Login' %]
<!-- BEGIN [% template.name %] -->
    
  <p class="bold">
    [% user = c.authen.store.fetch('yooza_profile') %]
    Hello [% user.first_name | ucfirst %] [% user.last_name | ucfirst %],
  </p>
    
  <ul>
    <li>
        your last login was: [% last_login.strftime('%A %d.%b.%Y @ %H:%M') %]
    </li>
    [% UNLESS user_type == 'internal' AND user.email # don't need to see this: %]
      [% IF user.email %]
      <li>
        your registered email address is: [% user.email %]
       [<a href="[% app_url %]/user/change_email">change</a>]
      </li>
      [% ELSE %]
      <li class="red">
        *** no registered email address, please update
        <a href="[% app_url %]/user/change_email">here</a> ***
      </li>
      [% END %]
      <li>
        your registered location is: [% user.user_location.location_name %]
        [<a href="[% app_url %]/user/change_location">change</a>]
      </li>
    [% END %]
  </ul>
    
  [% INCLUDE site/messages.tt %]
 
  [% # new.diagnoses.tt only required for external users - has 'results' tt_param,
     # but could be empty so *don't* use results.size:
    INCLUDE resources/new_diagnoses.tt IF results;
  %]
<!-- END [% template.name %] -->
