sympa-community / sympa

Sympa, Mailing List Management Software
https://www.sympa.community/sympa
GNU General Public License v2.0
243 stars 96 forks source link

wwsympa: enable logout with javascript disabled #1644

Open eexexiexit opened 1 year ago

eexexiexit commented 1 year ago

At least as of 2.6.60, wwsympa offers many useful functions with javascript being disabled in the browser, the exception being the logout

Expected Behavior

The logout from the web interface should be possible without enabling javascript in the browser.

This can have undesirable consequence:

Current Behavior

In order to log out from the web interface, the top rightmost menu entry (for the particular user) must be selected, and for this, javascript must be enabled in the browser.

Possible Solution

Two alternative options: a) add a logout button to the top menu which can be pressed without javascript being enabled in the browser b) the top rightmost menu entry (for the particular user) opens a drop-down menu with the option to log out without javascript being enabled in the browser. Context


ikedas commented 1 year ago

Hi @eexexiexit ,

As a workaround, I think, the logout button can be accessed by disabling the CSS as well.

ikedas commented 1 year ago

Hi @eexexiexit again, There is another solution: Disabling "top_menu mode".

Modify web_tt2/main.tt2 as below:

--- default/web_tt2/main.tt2
+++ default/web_tt2/main.tt2
@@ -31,7 +31,7 @@
     </head>

     <body[%IF back_to_mom%] class="backToMom"[%END%]>
-        [% top_menu = 1 %]
+        [% top_menu = 0 %]
         <div id="top">
             <a class="displayNone" name="top" href="#content-inner">
                 [%|loc%]Skip to Content.[%END%]

Note Note that you shouldn't edit the web_tt2/main.tt2 under DEFAULTDIR. Instead, you have to copy it to appropriate place and then edit copied file (See the manual for details).

By this change, the contents of the drop-down menu on the top will always be displayed in the side menu. image