Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
f9504282
Commit
f9504282
authored
Jun 14, 2015
by
nplus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment position is wrong
parent
d501cb04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
base.py
flask_admin/base.py
+6
-6
No files found.
flask_admin/base.py
View file @
f9504282
...
@@ -540,12 +540,6 @@ class Admin(object):
...
@@ -540,12 +540,6 @@ class Admin(object):
self
.
_menu_links
.
append
(
link
)
self
.
_menu_links
.
append
(
link
)
def
_add_menu_item
(
self
,
menu_item
,
target_category
):
def
_add_menu_item
(
self
,
menu_item
,
target_category
):
"""
Add a view to the menu tree
:param view:
View to add
"""
if
target_category
:
if
target_category
:
category
=
self
.
_menu_categories
.
get
(
target_category
)
category
=
self
.
_menu_categories
.
get
(
target_category
)
...
@@ -560,6 +554,12 @@ class Admin(object):
...
@@ -560,6 +554,12 @@ class Admin(object):
self
.
_menu
.
append
(
menu_item
)
self
.
_menu
.
append
(
menu_item
)
def
_add_view_to_menu
(
self
,
view
):
def
_add_view_to_menu
(
self
,
view
):
"""
Add a view to the menu tree
:param view:
View to add
"""
self
.
_add_menu_item
(
MenuView
(
view
.
name
,
view
),
view
.
category
)
self
.
_add_menu_item
(
MenuView
(
view
.
name
,
view
),
view
.
category
)
def
get_category_menu_item
(
self
,
name
):
def
get_category_menu_item
(
self
,
name
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment