Skip to Content.
Sympa Menu

en - [sympa-users] Issues with login menu

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Igor Pruchanskiy <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] Issues with login menu
  • Date: Thu, 8 Apr 2010 08:54:34 -0700

Hello,

I am running 6.0.1 and seem to be having issues with login menu for non-owner users. 
When a user requests a password and then clicks on a link to go set it, the page they end up on is all messed up,
due to <div id="Identity"> not being closed. I started poking around and the problem seems to be in login_menu.tt2,
specifically here:

[% 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%])</div>
[% ELSIF is_privileged_owner %]([%|loc%]Privileged owner[%END%])</div>
[% ELSIF is_owner %]([%|loc%]Owner[%END%])</div>
[% ELSIF is_editor %]([%|loc%]Editor[%END%])</div>
[% ELSIF is_subscriber %]([%|loc%]Subscriber[%END%])</div>
[% END %]
[% IF last_login_date %]
        <div><span>[%|loc(last_login_host)%]last login from %1[%END%] &nbsp;&nbsp; ([% last_login_date %])</span></div>
[%END%]

this piece of core does not seem to work for non-listmaster users, therefore the Identity div is not getting closed, messing up the rest of the page. 
As a quick workaround I added a closing </div> tag and "&nbsp;" after <div id="Identity">, however, the identity is still empty.

Interestingly enough, this exact code works great if you just go and log in as a list master, but due to my workaround mentioned above, 
the page now has an extra closing </div>, so it messes up the page for the list master.

I am not really good with this template toolkit none-sense, so i am not entirely sure where [% IF restore_email %] comes from.
Please let me know how I can fix it.

Thanks,
- Igor




  • [sympa-users] Issues with login menu, Igor Pruchanskiy, 04/08/2010

Archive powered by MHonArc 2.6.19+.

Top of Page