glacier-web-cli 0.5.0

Command-line tool for creating and running Glacier applications.
{% props tasks: Vec<(String, String, String, String)> %}
{#- tasks: (name, href, status, hint); status is completed, in-progress, not-started, cannot-start or error. -#}
<ul class="ui-task-list">
  {%- for (name, href, status, hint) in tasks.iter() %}
  <li class="ui-task"{% if status == "cannot-start" %} data-state="cannot-start"{% end %}>
    <span class="ui-task-name">{% if status == "cannot-start" %}{{ name }}{% else %}<a href="{{ href }}">{{ name }}</a>{% end %}{% if !hint.is_empty() %}<span class="ui-task-hint">{{ hint }}</span>{% end %}</span>
    {%- if status == "in-progress" %}
    <span class="ui-badge" data-variant="info" data-shape="pill">In progress</span>
    {%- else %}{% if status == "not-started" %}
    <span class="ui-badge" data-variant="secondary" data-shape="pill">Not yet started</span>
    {%- else %}{% if status == "error" %}
    <span class="ui-badge" data-variant="destructive" data-shape="pill">There is a problem</span>
    {%- else %}{% if status == "cannot-start" %}
    <span class="ui-task-status">Cannot start yet</span>
    {%- else %}
    <span class="ui-task-status">Completed</span>
    {%- end %}{% end %}{% end %}{% end %}
  </li>
  {%- end %}
</ul>