mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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>
|
<h3>Getting Help</h3>
|
||||||
|
|
||||||
<p>We've done our best to make your FreedomBox easy to use. If
|
<p>If you have any questions or problems please take a look at the
|
||||||
you have questions during setup, there are a few places to turn
|
<a target="_blank" href="https://wiki.debian.org/FreedomBox/Manual/Jessie">
|
||||||
for help. TODO: add links to such help.</p>
|
Debian Wiki
|
||||||
|
</a> where you also find links to the mailing list and IRC channels.
|
||||||
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -33,6 +33,13 @@ class State0View(CreateView):
|
|||||||
form_class = State0Form
|
form_class = State0Form
|
||||||
success_url = reverse_lazy('first_boot:state10')
|
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):
|
def get_initial(self):
|
||||||
initial = super(State0View, self).get_initial()
|
initial = super(State0View, self).get_initial()
|
||||||
initial['hostname'] = config.get_hostname()
|
initial['hostname'] = config.get_hostname()
|
||||||
@ -55,5 +62,6 @@ def state10(request):
|
|||||||
kvstore.set('firstboot_state', 10)
|
kvstore.set('firstboot_state', 10)
|
||||||
|
|
||||||
return render_to_response('firstboot_state10.html',
|
return render_to_response('firstboot_state10.html',
|
||||||
{'title': _('Setup Complete')},
|
{'title': _('Setup Complete'),
|
||||||
|
'sidebar_right': 'a'},
|
||||||
context_instance=RequestContext(request))
|
context_instance=RequestContext(request))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user