Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Toby Hodges
image-analysis-training-resources
Commits
e1b907df
Verified
Commit
e1b907df
authored
Jun 03, 2019
by
Toby Hodges
Browse files
use an assign to capture platform string
parent
0005aad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/binarization.md
View file @
e1b907df
...
...
@@ -85,20 +85,21 @@ Open an image and binarize it by applying a threshold.
{% assign first = true %}
{% endif %}
{% for platform in page.platforms %}
{% assign platstring = platform[0] %}
{% if first %}
<option
value=
"{{plat
form[0]
}}"
id=
"{{plat
form[0]
}}"
selected=
"selected"
>
{{plat
form[0]
}}
</option>
<option
value=
"{{plat
string
}}"
id=
"{{plat
string
}}"
selected=
"selected"
>
{{plat
string
}}
</option>
{% assign first = false %}
{% else %}
<option
value=
"{{plat
form[0]
}}"
id=
"{{plat
form[0]
}}"
>
{{plat
form[0]
}}
</option>
<option
value=
"{{plat
string
}}"
id=
"{{plat
string
}}"
>
{{plat
string
}}
</option>
{% endif %}
{% endfor %}
{% if page.platforms %}
</select>
{% endif %}
{% for platform in page.platforms %}
<div
id=
"{{plat
form[0]
}}"
>
<h4>
{{plat
form[0
]}}
</h4>
<div
id=
"{{plat
string
}}"
>
<h4>
{{plat
string
]}}
</h4>
{% assign includefile = platform[1] %}
{% capture my_include %}{% include {{includefile}} %}{% endcapture %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment