Skip to content

Commit

Permalink
Merge pull request #75 from alphagov/service-id-as-array
Browse files Browse the repository at this point in the history
Make service ID template always expect an array
  • Loading branch information
tombye committed Jun 11, 2015
2 parents f316259 + 02a712b commit abcee93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion pages_builder/pages/service-id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ examples:
- 9012
- 3456
-
id: 5.G2.0151.068
id:
- "5.G2.0151.068"
6 changes: 1 addition & 5 deletions toolkit/templates/service-id.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<div class="service-id">
{% if id is string -%}
{{ id }}
{%- else -%}
{% for chunk in id %}<span class="service-id-chunk">{{chunk}}</span>{% endfor %}
{%- endif %}
{% for chunk in id -%}<span class="service-id-chunk">{{chunk}}</span>{%- endfor %}
</div>

0 comments on commit abcee93

Please sign in to comment.