quokkaproject / quokka

LOOKING FOR NEW MAINTAINER - Quokka is a Content Management System - `docker run --rm -it -p 5000:5000 quokka/quokka`
http://www.quokkaproject.org
Other
2.23k stars 448 forks source link

Logout Action in Admin #654

Closed Bernardoow closed 6 years ago

Bernardoow commented 6 years ago

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' )

rochacbruno commented 6 years ago

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

Bernardoow commented 6 years ago

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

rochacbruno commented 6 years ago

@Bernardoow I'll work on this