mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
ikiwiki: Fix showing icon for newly created wiki/blog
The add shortcut API was changed but the call where we add shortcuts after creating wiki/blog was not updated. Closes #719.
This commit is contained in:
parent
5549a1a7f2
commit
e5eaf67fa0
@ -83,8 +83,9 @@ def create(request):
|
||||
form.cleaned_data['admin_password'])
|
||||
|
||||
site = form.cleaned_data['name'].replace(' ', '')
|
||||
frontpage.add_shortcut('ikiwiki_' + site, site,
|
||||
'/ikiwiki/' + site, 'glyphicon-edit')
|
||||
frontpage.add_shortcut(
|
||||
'ikiwiki_' + site, site, url='/ikiwiki/' + site,
|
||||
login_required=False, icon='ikiwiki')
|
||||
|
||||
return redirect(reverse_lazy('ikiwiki:manage'))
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user