Further changes to the ui design

This commit is contained in:
Raelon Masters
2020-06-29 17:50:10 -04:00
parent 9070a3a558
commit 059d308a0f
8 changed files with 116 additions and 23 deletions

View File

@@ -18,6 +18,8 @@ collections = Collections.objects.all()
def index(request):
"""
Return template index
TODO: revise the way sets are handled so that they can be used uniformly in js
for ui page displays
"""
_set = 1
return render(
@@ -49,7 +51,11 @@ def show_collection(request, _collection, _colset):
"Version": config.VERSION,
"LeftNavCollections": menu("collections"),
"LeftNav": menu("collections"),
"Collections": collections_list()
"Collections": collections_list(),
"LeftNavMenu0": menu("nav_l_0"),
"BookStats": Books.objects.all().count,
"CollectionStats": Collections.objects.all().count,
"CollectionObject": collections_list()
},
)
@@ -70,6 +76,13 @@ def next_page(request, bookset):
"Version": config.VERSION,
"LeftNavCollections": menu("collections"),
"LeftNav": menu("collections"),
"Collections": collections_list(),
"LeftNavMenu0": menu("nav_l_0"),
"BookStats": Books.objects.all().count,
"CollectionStats": Collections.objects.all().count,
"CollectionObject": collections_list(),
"LeftNavCollections": menu("collections"),
"LeftNav": menu("collections"),
},
)
@@ -94,6 +107,13 @@ def prev_page(request, bookset):
"Version": config.VERSION,
"LeftNavCollections": menu("collections"),
"LeftNav": menu("collections"),
"Collections": collections_list(),
"LeftNavMenu0": menu("nav_l_0"),
"BookStats": Books.objects.all().count,
"CollectionStats": Collections.objects.all().count,
"CollectionObject": collections_list(),
"LeftNavCollections": menu("collections"),
"LeftNav": menu("collections"),
},
)