Skip to content

firstboot: dont show normal mainmenu in help pages

Sunil Mohan Adapa requested to merge fonfon:first-boot-improvements into master

Created by: fonfon

When firstboot is not finished, do not show the normal mainmenu in the help pages. Instead, only show two links: the help page itself and a link back to "FreedomBox Setup".

  • templates: renamed add_nav_and_login to mainmenu_right
  • templates: introduced block mainmenu_left to be able to overwrite it
  • some minor adaptions like removing an orphaned link, adapting titles and using cfg.box_name.

I defined the variable firstboot_finished two times in https://github.com/fonfon/Plinth/blob/first-boot-improvements/plinth/modules/help/templates/help_base.html because django doesn't assign variables outside of block statements, and block statements can't be inside of if clauses.

Merge request reports

Loading