Added NarrativeWeb menu option for Drop Drop Menus.
svn: r18769
This commit is contained in:
parent
22dd294bc4
commit
520287dacc
@ -1552,11 +1552,9 @@ class BasePage(object):
|
|||||||
# return to its caller, page and body
|
# return to its caller, page and body
|
||||||
return page, head, body
|
return page, head, body
|
||||||
|
|
||||||
def display_nav_links(self, currentsection):
|
def get_navigation_menu(self):
|
||||||
"""
|
"""
|
||||||
Creates the navigation menu
|
get the navigation menu items for main navigation...
|
||||||
|
|
||||||
@param: currentsection = which menu item are you on
|
|
||||||
"""
|
"""
|
||||||
# include repositories or not?
|
# include repositories or not?
|
||||||
inc_repos = True
|
inc_repos = True
|
||||||
@ -1590,8 +1588,15 @@ class BasePage(object):
|
|||||||
('contact', _("Contact"), self.report.use_contact)]
|
('contact', _("Contact"), self.report.use_contact)]
|
||||||
|
|
||||||
# Remove menu sections if they are not being created?
|
# Remove menu sections if they are not being created?
|
||||||
navs = ((u, n) for u, n, c in navs if c)
|
nreturn ((u, n) for u, n, c in navs if c)
|
||||||
menu_items = [[url, text] for url, text in navs]
|
|
||||||
|
def display_nav_links(self, currentsection):
|
||||||
|
"""
|
||||||
|
Creates the navigation menu
|
||||||
|
|
||||||
|
@param: currentsection = which menu item are you on
|
||||||
|
"""
|
||||||
|
menu_items = [[url, text] for url, text in self.get_navigation_menu()]
|
||||||
|
|
||||||
number_items = len(menu_items)
|
number_items = len(menu_items)
|
||||||
num_cols = 10
|
num_cols = 10
|
||||||
@ -7597,10 +7602,12 @@ class NavWebOptions(MenuReportOptions):
|
|||||||
self.__css.connect("value-changed", self.__stylesheet_changed)
|
self.__css.connect("value-changed", self.__stylesheet_changed)
|
||||||
|
|
||||||
_nav_opts = [
|
_nav_opts = [
|
||||||
(_("Horizontal - Default"), "Horizontal"),
|
(_("Horizontal - Default"), "Horizontal"),
|
||||||
(_("Vertical"), "Vertical"),
|
(_("Vertical - Left side"), "Vertical"),
|
||||||
(_("Fade - WebKit browsers"), "Fade")
|
(_("Fade - WebKit browsers Only"), "Fade"),
|
||||||
|
(_("Drop-Down -- WebKit browsers Only"), "DropDown")
|
||||||
]
|
]
|
||||||
|
|
||||||
self.__navigation = EnumeratedListOption(_("Navigation Menu Layout"), _nav_opts[0][1])
|
self.__navigation = EnumeratedListOption(_("Navigation Menu Layout"), _nav_opts[0][1])
|
||||||
for layout in _nav_opts:
|
for layout in _nav_opts:
|
||||||
self.__navigation.add_item(layout[1], layout[0])
|
self.__navigation.add_item(layout[1], layout[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user