site/templates/project.html

17 lines
654 B
HTML
Raw Normal View History

2020-09-30 14:15:44 +00:00
{% extends 'page.html' %}{% import "tests.html" as tests %}
{% block main %}
{{ super() }}
{% if page.extra.pipeline %}
{% if page.extra.pipeline in config.extra.tests.pipelines %}
2020-09-30 19:19:16 +00:00
<hr>
<aside class="widget-tests">
2020-09-30 14:15:44 +00:00
{{ tests::pipeline(directory=config.extra.tests.directory, name=page.extra.pipeline) }}
2020-09-30 19:19:16 +00:00
</aside>
2020-09-30 14:15:44 +00:00
{% else %}
2020-09-30 19:19:16 +00:00
<h2>No such pipeline ({{ page.extra.pipeline }}) defined in config.extra.pipelines</h2>
2020-09-30 14:15:44 +00:00
{% endif %}
2020-09-30 19:19:16 +00:00
{% else %}
<h2>Test pipeline for project not defined in frontmatter (page.extra.pipeline).</h2>
2020-09-30 14:15:44 +00:00
{% endif %}
{% endblock %}