0.7.57
articles paging
This commit is contained in:
@@ -202,9 +202,9 @@ def get_routes_Dict(user=None, data=None):
|
|||||||
to_el = 25
|
to_el = 25
|
||||||
routes = routes[:to_el]
|
routes = routes[:to_el]
|
||||||
|
|
||||||
last_block_routes = False
|
last_block = False
|
||||||
if not to_el or to_el >= routes_count:
|
if not to_el or to_el >= routes_count:
|
||||||
last_block_routes = True
|
last_block = True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -231,7 +231,7 @@ def get_routes_Dict(user=None, data=None):
|
|||||||
|
|
||||||
res_Dict.update({
|
res_Dict.update({
|
||||||
'routes': routes,
|
'routes': routes,
|
||||||
'last_block_routes': last_block_routes,
|
'last_block': last_block,
|
||||||
'last_el': to_el
|
'last_el': to_el
|
||||||
})
|
})
|
||||||
return res_Dict
|
return res_Dict
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ def find_routes_ajax(request):
|
|||||||
|
|
||||||
res_Dict = {
|
res_Dict = {
|
||||||
'html': html,
|
'html': html,
|
||||||
'last_block_routes': routes_Dict['last_block_routes']
|
'last_block': routes_Dict['last_block']
|
||||||
# 'form': RouteForm(initial=data)
|
# 'form': RouteForm(initial=data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user