_issues.tt 446 B

1234567891011
  1. {% import "_issue.tt" as issue %}
  2. {% macro render(issues, indent="", branch="", with_age=false, empty="No issues at this time.") %}
  3. {#- If "branch" is not empty add a trailing space but no newlines before or after -#}
  4. {%- if branch -%}
  5. {%- set branch = branch ~ " " -%}
  6. {%- endif -%}
  7. {%- for issue in issues %}
  8. {{indent}}- {{ branch }}{{issue::render(issue=issue, with_age=with_age)}}{% else %}
  9. {{indent}}- {{empty}}{% endfor -%}
  10. {% endmacro %}