quokkaproject/quokka

Logout Action in Admin

Bernardoow opened this issue · 3 comments

Hi,

It's possible add logout action in admin page?

I need register view like this?
app.admin.register( app.db.index, AdminPagesView, name='Pages', endpoint='pageview' )

Hi @Bernardoow it is easy to add the logout there, no need to register. The /logout route already exists so we only need to add it to the template.

I know in the flask-admin base template there is a {block} to add auth links, so we need to figure out exacly which template is and then put the file with the proper block in https://github.com/rochacbruno/quokka/tree/master/quokka/templates/admin

It's here Place to add itens near a CMS menu

I tried adding but I did not succeed. I have no knowledge in flask admin. = /

I thought about doing this.
image

@Bernardoow I'll work on this