switch workspace routes and templates to Flask and Jinja

This commit is contained in:
dandds
2018-08-01 13:15:07 -04:00
committed by richard-dds
parent 0976aed778
commit 3a53fc122d
8 changed files with 86 additions and 35 deletions

View File

@@ -30,3 +30,15 @@
{% endif %}
</li>
{%- endmacro %}
{% macro EmptyState(self, message, actionLabel, actionHref, icon=None) -%}
<div class='empty-state'>
<p>{{ message }}</p>
{% if icon %}
{{ Icon(icon) }}
{% endif %}
<a href='{{ actionHref }}' class='usa-button usa-button-big'>{{ actionLabel }}</a>
</div>
{%- endmacro %}