Skip to content

Commit dbe1fa3

Browse files
authored
Merge branch 'master' into signpost-handbook
2 parents 101d78f + fc36625 commit dbe1fa3

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Steps to installation:
5555
* Create a virtual environment (note this application uses python3)
5656
* Activate the virtual environment
5757
* Install dependencies
58+
* Apply migrations
5859
* Run the development server
5960

6061
```
@@ -63,6 +64,7 @@ cd org-ids
6364
virtualenv .ve --python=/usr/bin/python3
6465
source .ve/bin/activate
6566
pip install -r requirements_dev.txt
67+
python manage.py migrate
6668
python manage.py runserver
6769
```
6870

prefix_finder/frontend/templates/list.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,25 @@ <h1>{{ org_list.name.en }} <span>({{ org_list.code }})</span></h1>
2020
</div>
2121

2222
<div class="single-sidebar__block single-sidebar--dark">
23+
<h2>How to use</h2>
2324
<p>The code for this list is <br/><code>{{ org_list.code }}</code>. When you have located the organization you wish to identify in this list, you should either:</p>
2425
<p>Enter it in an identifier database field prefixed with <code>{{ org_list.code }}</code>.</p>
25-
<h2>Example</h2>
2626
<pre>
2727
<code>{{ org_list.code }}-[ IDENTIFIER ]</code>
2828
</pre>
29-
<p>Or, use it within a two-part identifier, with <code>{{ org_list.code }}</code> as the 'scheme', and the identifier you have located as the 'identifier' field. </p>
29+
{% if org_list.access.exampleIdentifiers|length >= 1 %}
30+
{% if org_list.access.exampleIdentifiers|length = 1 %}
31+
<h2>Example</h2>
32+
{% else %}
33+
<h2>Examples</h2>
34+
{% endif %}
35+
<pre>
36+
{% for x in org_list.access.exampleIdentifiers|slice:":3" %}
37+
<code>{{ org_list.code }}-{{ x }}</code>
38+
{% endfor %}
39+
</pre>
40+
{% endif %}
41+
<p>Alternatively, use it within a two-part identifier, with <code>{{ org_list.code }}</code> as the 'scheme', and the identifier you have located as the 'identifier' field. </p>
3042
</div>
3143
</div>
3244

0 commit comments

Comments
 (0)