<!-- $Id: login_menu.tt2 6297 2009-11-06 13:55:35Z david.verdin $ -->

<div id="bandeau_top">
[% IF user.email %]

<div id="Identity">[% user.email %]&nbsp;
[% IF restore_email %]
  <form class="text_center" action="[% path_cgi %]" method="post">
  <fieldset><input class="MainMenuLinks" type="submit" name="action_restore_email" value="[%|loc%]Restore identity[%END%]" />
  </fieldset>
  </form>	
[%END%]
[% IF is_listmaster %][[%|loc%]Listmaster[%END%]]
[% ELSIF is_privileged_owner %][[%|loc%]Privileged owner[%END%]]
[% ELSIF is_owner %][[%|loc%]Owner[%END%]]
[% ELSIF is_editor %][[%|loc%]Editor[%END%]]
[% ELSIF is_subscriber %][[%|loc%]Subscriber[%END%]]
[% END %]
<br />
[% IF last_login_date %]
	<span>[%|loc(last_login_host)%]last login from %1[%END%] &nbsp;&nbsp; ([% last_login_date %])</span>
[%END%]
</div>


[% IF auth_method == 'md5' %]
<div class="login">
  <form  action="[% path_cgi %]" method="post">
  <fieldset>
  <input type="hidden" name="action" value="logout" />
  [% IF referer %]
          <input type="hidden" name="referer" value="[% referer %]" />
  [% ELSE %]
          <input type="hidden" name="previous_action" value="[% home %]" />
  [% END %]
  <input class="MainMenuLinks" type="submit" name="action_logout" value="[%|loc%]Logout[%END%]" />
  </fieldset>
  </form>
</div>
[% END %]

<div class="prefs">
<a href="[% path_cgi %]/pref" >[%|loc%]Your preferences[%END%]</a>
</div>

[% ELSE %] 
[% PROCESS 'loginbanner.tt2' %]

[% END %]
</div><!-- end div=MenuBlock -->


<!-- end login_menu.tt2 -->

