otto-torino / django-baton

A cool, modern and responsive django admin application based on bootstrap 5 that brings AI to the Django admin - https://baton.sqrt64.it/
MIT License
876 stars 95 forks source link

I can't see logout icon. #239

Closed donghahaha closed 1 year ago

donghahaha commented 1 year ago

화면 캡처 2022-12-19 145313 (1)

I made django admin page like above by using django-baton, but I can't find logout icon. image Just "View site" and "Change password".

Does anyone know why this is happening?

abidibo commented 1 year ago

Hi @donghahaha which is the url of your logout view?

User links are cloned from the original ones in the navbar:

...
      let cls = 'view-site'
      if (/password_change/.test($(el).attr('href'))) {
        cls = 'password'
      } else if (/logout/.test($(el).attr('href')) || $(el).attr('data-item') === 'logout') {
        cls = 'logout'
      }
...

Maybe Baton fails detecting the logout link in your case

abidibo commented 1 year ago

@donghahaha you just need to upgrade baton, that was fixed in f588af56cb3c2dd6e142b5e2d8cefc007077dcae