forked from timwis/jkan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exposure category, quantity_kind should display
Wasn't handling multiple categories; also quantity_kind file was misnamed
- Loading branch information
1 parent
ad9a8de
commit 5e6b50b
Showing
4 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<tr> | ||
<th>{{ include.field.label }}</th> | ||
<td> | ||
{% capture code %}{{ include.value }}{% endcapture %} | ||
{{ site.data.rdl-exposure_category[code] }} | ||
</td> | ||
{% assign split_string = include.value | split: ", " %} | ||
{% if split_string[0] %} | ||
{% for code in split_string %} | ||
{{ site.data.rdl-exposure_category[code] }}{% unless forloop.last or site.data.rdl-exposure_category[code] == nil %}, {% endunless %} | ||
{% endfor %} | ||
{% else %} | ||
{% capture code %}{{ include.value }}{% endcapture %} | ||
{{ site.data.rdl-exposure_category[code] }} | ||
{% endif %} | ||
</td> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<tr> | ||
<th>{{ include.field.label }}</th> | ||
<td> | ||
{% assign split_string = include.value | split: ", " %} | ||
{% if split_string[0] %} | ||
{% for code in split_string %} | ||
{{ site.data.rdl-quantity_kind[code] }}{% unless forloop.last or site.data.rdl-quantity_kind[code] == nil %}, {% endunless %} | ||
{% endfor %} | ||
{% else %} | ||
{% capture code %}{{ include.value }}{% endcapture %} | ||
{{ site.data.rdl-quantity_kind[code] }} | ||
{% endif %} | ||
</td> |