forked from edoburu/django-staff-toolbar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue edoburu#1: Generate toolbar with template rather than hard-code…
…d HTML. Allows overriding the template if using different frameworks. New dependency on `django-app-settings` to permit easy testing.
- Loading branch information
Caroline Nadel
committed
Nov 12, 2014
1 parent
c759ee8
commit d041cec
Showing
14 changed files
with
304 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
from django.conf import settings | ||
|
||
STAFF_TOOLBAR_ITEMS = getattr(settings, 'STAFF_TOOLBAR_ITEMS', ( | ||
STAFF_TOOLBAR_ITEMS = ( | ||
'staff_toolbar.items.AdminIndexLink', | ||
'staff_toolbar.items.ChangeObjectLink', | ||
'staff_toolbar.items.LogoutLink', | ||
)) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% load staff_toolbar_tags %} | ||
<div id="django-staff-toolbar"> | ||
<ul> | ||
{% staff_toolbar %} | ||
<li> | ||
{{ item }} | ||
{% if children %} | ||
<ul> | ||
{{ children }} | ||
</ul> | ||
{% endif %} | ||
</li> | ||
{% end_staff_toolbar %} | ||
</ul> | ||
</div> |
Oops, something went wrong.