Fixed alphabet navigation to remove the table elements.
svn: r13192
This commit is contained in:
parent
941fff23ae
commit
44e1291b79
@ -5704,7 +5704,8 @@ def _has_webpage_extension(url):
|
|||||||
|
|
||||||
def alphabet_navigation(db, handle_list, key):
|
def alphabet_navigation(db, handle_list, key):
|
||||||
"""
|
"""
|
||||||
Will create the alphabetical navigation bar...
|
Will create the alphabet navigation bar for classes IndividualListPage,
|
||||||
|
SurnameListPage, and PlaceListPage
|
||||||
|
|
||||||
handle_list -- a list of people's or Places' handles
|
handle_list -- a list of people's or Places' handles
|
||||||
key -- _PERSON or _PLACE
|
key -- _PERSON or _PLACE
|
||||||
@ -5742,18 +5743,12 @@ def alphabet_navigation(db, handle_list, key):
|
|||||||
# begin alphabet division
|
# begin alphabet division
|
||||||
with Html("div", id='alphabet') as section:
|
with Html("div", id='alphabet') as section:
|
||||||
|
|
||||||
# set up table
|
|
||||||
with Html("table", class_ = "infolist alphabet") as table:
|
|
||||||
section += table
|
|
||||||
|
|
||||||
num_ltrs = len(sorted_alpha_index)
|
num_ltrs = len(sorted_alpha_index)
|
||||||
nrows = (num_ltrs / 35) + 1
|
nrows = (num_ltrs / 35) + 1
|
||||||
index = 0
|
index = 0
|
||||||
for rows in xrange(nrows):
|
for rows in xrange(nrows):
|
||||||
trow = Html("tr")
|
|
||||||
table += trow
|
|
||||||
unordered = Html('ul')
|
unordered = Html('ul')
|
||||||
trow += unordered
|
section += unordered
|
||||||
cols = 0
|
cols = 0
|
||||||
while (cols <= 35 and index < num_ltrs):
|
while (cols <= 35 and index < num_ltrs):
|
||||||
ltr = sorted_alpha_index[index]
|
ltr = sorted_alpha_index[index]
|
||||||
|
Loading…
Reference in New Issue
Block a user