如何在Jazzmin Django主题中更改注销图标?

huangapple go评论66阅读模式
英文:

How to change Log out icon in jazzmin django theme?

问题

我有一个使用Jazzmin主题库的Django项目,我已经更改了侧边栏的图标:

"icons:{...}"

并且我想要更改用户菜单的图标,包括注销菜单:

"usermenu_links": {}

但我不太明白如何指向注销按钮,有什么想法吗?

英文:

I have django project with jazzmin theme library I use, I've change icon for sidebar with:

"icons:{...}"

如何在Jazzmin Django主题中更改注销图标?

and I want to change the user menu icons, the logout menu:

如何在Jazzmin Django主题中更改注销图标?

what I know is, we can use this line:

"usermenu_links" : {}

But I don't quite understand how to pointing for the log out button, any idea?

答案1

得分: 1

我找到了解决方案,简单的步骤如下:

英文:

I found the solution and the simple steps are
copy the base template from env>lib and save that in local project
template-folder example in djnago
then you can edit logout icon and more.
vs-code base template image screen shot

huangapple
  • 本文由 发表于 2023年2月16日 12:34:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/75467894.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定