mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
show the sidebar with help during first_boot
This commit is contained in:
parent
9c95da8751
commit
e4c11e7d8e
@ -21,8 +21,10 @@
|
||||
|
||||
<h3>Getting Help</h3>
|
||||
|
||||
<p>We've done our best to make your FreedomBox easy to use. If
|
||||
you have questions during setup, there are a few places to turn
|
||||
for help. TODO: add links to such help.</p>
|
||||
<p>If you have any questions or problems please take a look at the
|
||||
<a target="_blank" href="https://wiki.debian.org/FreedomBox/Manual/Jessie">
|
||||
Debian Wiki
|
||||
</a> where you also find links to the mailing list and IRC channels.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
@ -33,6 +33,13 @@ class State0View(CreateView):
|
||||
form_class = State0Form
|
||||
success_url = reverse_lazy('first_boot:state10')
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
"""Set 'sidebar_right' to display the sidebar_right in the templates.
|
||||
Otherwise we wouldn't be able to include firstboot_sidebar.html"""
|
||||
context = super(State0View, self).get_context_data(**kwargs)
|
||||
context['sidebar_right'] = "a"
|
||||
return context
|
||||
|
||||
def get_initial(self):
|
||||
initial = super(State0View, self).get_initial()
|
||||
initial['hostname'] = config.get_hostname()
|
||||
@ -55,5 +62,6 @@ def state10(request):
|
||||
kvstore.set('firstboot_state', 10)
|
||||
|
||||
return render_to_response('firstboot_state10.html',
|
||||
{'title': _('Setup Complete')},
|
||||
{'title': _('Setup Complete'),
|
||||
'sidebar_right': 'a'},
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user