瀏覽代碼

Reworked order of dashboard navigation

master
David Winterbottom 13 年之前
父節點
當前提交
2c98b4f8ec

+ 1
- 1
oscar/apps/dashboard/catalogue/app.py 查看文件

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

+ 1
- 1
oscar/apps/dashboard/offers/app.py 查看文件

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

+ 1
- 1
oscar/apps/dashboard/orders/app.py 查看文件

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

+ 0
- 4
oscar/apps/dashboard/pages/app.py 查看文件

3
 
3
 
4
 from oscar.core.application import Application
4
 from oscar.core.application import Application
5
 from oscar.apps.dashboard.pages import views
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
 class FlatPageManagementApplication(Application):
8
 class FlatPageManagementApplication(Application):

+ 4
- 4
oscar/apps/dashboard/promotions/app.py 查看文件

6
 from oscar.apps.promotions.conf import PROMOTION_CLASSES
6
 from oscar.apps.promotions.conf import PROMOTION_CLASSES
7
 from oscar.apps.dashboard.nav import register, Node
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
 class PromotionsDashboardApplication(Application):
15
 class PromotionsDashboardApplication(Application):

+ 1
- 1
oscar/apps/dashboard/reports/app.py 查看文件

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

+ 2
- 2
oscar/apps/dashboard/users/app.py 查看文件

5
 from oscar.apps.dashboard.users import views
5
 from oscar.apps.dashboard.users import views
6
 from oscar.apps.dashboard.nav import register, Node
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
 class UserManagementApplication(Application):
12
 class UserManagementApplication(Application):

Loading…
取消
儲存