Browse Source

Reworked order of dashboard navigation

master
David Winterbottom 13 years ago
parent
commit
2c98b4f8ec

+ 1
- 1
oscar/apps/dashboard/catalogue/app.py View File

@@ -8,7 +8,7 @@ from oscar.apps.dashboard.nav import register, Node
8 8
 node = Node('Catalogue')
9 9
 node.add_child(Node('Products', 'dashboard:catalogue-product-list'))
10 10
 node.add_child(Node('Stock alerts', 'dashboard:stock-alert-list'))
11
-register(node, 1)
11
+register(node, 10)
12 12
 
13 13
 
14 14
 class CatalogueApplication(Application):

+ 1
- 1
oscar/apps/dashboard/offers/app.py View File

@@ -7,7 +7,7 @@ from oscar.apps.dashboard.nav import register, Node
7 7
 
8 8
 node = Node('Offers')
9 9
 node.add_child(Node('All offers', 'dashboard:offer-list'))
10
-register(node, 7)
10
+register(node, 50)
11 11
 
12 12
 
13 13
 class OffersDashboardApplication(Application):

+ 1
- 1
oscar/apps/dashboard/orders/app.py View File

@@ -8,7 +8,7 @@ from oscar.apps.dashboard.nav import register, Node
8 8
 node = Node('Orders')
9 9
 node.add_child(Node('Orders', 'dashboard:order-list'))
10 10
 node.add_child(Node('Statistics', 'dashboard:order-stats'))
11
-register(node)
11
+register(node, 60)
12 12
 
13 13
 
14 14
 class OrdersDashboardApplication(Application):

+ 0
- 4
oscar/apps/dashboard/pages/app.py View File

@@ -3,10 +3,6 @@ from django.contrib.admin.views.decorators import staff_member_required
3 3
 
4 4
 from oscar.core.application import Application
5 5
 from oscar.apps.dashboard.pages import views
6
-from oscar.apps.dashboard.nav import register, Node
7
-
8
-node = Node('Pages', 'dashboard:page-list')
9
-register(node, 4)
10 6
 
11 7
 
12 8
 class FlatPageManagementApplication(Application):

+ 4
- 4
oscar/apps/dashboard/promotions/app.py View File

@@ -6,10 +6,10 @@ from oscar.apps.dashboard.promotions import views
6 6
 from oscar.apps.promotions.conf import PROMOTION_CLASSES
7 7
 from oscar.apps.dashboard.nav import register, Node
8 8
 
9
-node = Node('Content blocks')
10
-node.add_child(Node('All blocks', 'dashboard:promotion-list'))
11
-node.add_child(Node('By page', 'dashboard:promotion-list-by-page'))
12
-register(node, 3)
9
+node = Node('Content')
10
+node.add_child(Node('Re-usable content blocks', 'dashboard:promotion-list'))
11
+node.add_child(Node('Pages', 'dashboard:page-list'))
12
+register(node, 20)
13 13
 
14 14
 
15 15
 class PromotionsDashboardApplication(Application):

+ 1
- 1
oscar/apps/dashboard/reports/app.py View File

@@ -6,7 +6,7 @@ from oscar.apps.dashboard.reports import views
6 6
 from oscar.apps.dashboard.nav import register, Node
7 7
 
8 8
 node = Node('Reports', 'dashboard:reports-index')
9
-register(node, 6)
9
+register(node, 70)
10 10
 
11 11
 
12 12
 class ReportsApplication(Application):

+ 2
- 2
oscar/apps/dashboard/users/app.py View File

@@ -5,8 +5,8 @@ from oscar.core.application import Application
5 5
 from oscar.apps.dashboard.users import views
6 6
 from oscar.apps.dashboard.nav import register, Node
7 7
 
8
-node = Node('Users', 'dashboard:users-index')
9
-register(node, 5)
8
+node = Node('Customers', 'dashboard:users-index')
9
+register(node, 30)
10 10
 
11 11
 
12 12
 class UserManagementApplication(Application):

Loading…
Cancel
Save