{% from "components/empty_state.html" import EmptyState %} {% from "components/icon.html" import Icon %}

Funds Expended per Application and Environment

{% set current_month_index = current_month.strftime('%m/%Y') %} {% set prev_month_index = prev_month.strftime('%m/%Y') %} {% if not portfolio.applications %} {% set can_create_applications = user_can(permissions.CREATE_APPLICATION) %} {% set message = ('portfolios.reports.empty_state.sub_message.can_create_applications' | translate) if can_create_applications else ('portfolios.reports.empty_state.sub_message.cannot_create_applications' | translate) %} {{ EmptyState( header='portfolios.reports.empty_state.message' | translate, message=message, button_text="portfolios.applications.empty_state.button_text"|translate, button_link=url_for("applications.view_new_application_step_1", portfolio_id=portfolio.id), view_only_text="portfolios.applications.empty_state.view_only_text"|translate, user_can_create=can_create_applications, ) }} {% else %}
Applications and Environments Current Month Last Month Total Spent
{% endif %}