Skip to content

Commit 35542bc

Browse files
committed
lookups context in list_details view
1 parent 3b3155e commit 35542bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

prefix_finder/frontend/templates/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h2>Description</h2>
4040
<div class="single-content__block single-meta-info">
4141
<ul class="single-meta-info__categories single-categories">
4242
<li class="single-categories__item single-categories--coverage">
43-
<p>Coverage: {% for x in org_list.coverage %}<span><abbr title="{% for key, value in lookups %}{% if key == x %}{{ value }}{% endif %}{% endfor %}">{{ x }}</abbr>{% if not forloop.last %},{% endif %} </span>{% endfor %}</p>
43+
<p>Coverage: {% for x in org_list.coverage %}<span><abbr title="{% for key, value in lookups.coverage %}{% if key == x %}{{ value }}{% endif %}{% endfor %}">{{ x }}</abbr>{% if not forloop.last %},{% endif %} </span>{% endfor %}</p>
4444
</li>
4545

4646
{% if org_list.sector %}

prefix_finder/frontend/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def list_details(request, prefix):
500500

501501
except KeyError:
502502
raise Http404('Organization list {} does not exist'.format(prefix))
503-
return render(request, 'list.html', context={'org_list': org_list, 'branch':use_branch})
503+
return render(request, 'list.html', context={'org_list': org_list, 'lookups': lookups, 'branch':use_branch})
504504

505505

506506
def _get_filename(use_branch='master'):

0 commit comments

Comments
 (0)