diff --git a/prefix_finder/frontend/static/css/main.css b/prefix_finder/frontend/static/css/main.css index ce5b19e..a82d7a6 100644 --- a/prefix_finder/frontend/static/css/main.css +++ b/prefix_finder/frontend/static/css/main.css @@ -148,7 +148,7 @@ code { .sidebar { width: 300px; - position: fixed; + position: absolute; left: 0; top: 0; bottom: 0; diff --git a/prefix_finder/frontend/views.py b/prefix_finder/frontend/views.py index 9f8e43b..3f4b295 100644 --- a/prefix_finder/frontend/views.py +++ b/prefix_finder/frontend/views.py @@ -476,7 +476,7 @@ def home(request): def results(request): - branch = request.session.get('branch', 'master') + use_branch = request.session.get('branch', 'master') query = {key: value for key, value in request.GET.items() if value and value != 'all'} context = { 'lookups': { @@ -490,8 +490,11 @@ def results(request): if query: context['lookups'] = get_lookups(query, branch) + context['branch'] = use_branch + return render(request, 'results.html', context=context) + def list_details(request, prefix): use_branch = request.session.get('branch', 'master')