67 lines
2.3 KiB
HTML
67 lines
2.3 KiB
HTML
{% from "components/icon.html" import Icon %}
|
|
{% from "components/tooltip.html" import Tooltip %}
|
|
|
|
{% macro Link(icon, text, url, active=False) %}
|
|
<a class='icon-link {{ "active icon-link--disabled" if active }}' href='{{ url }}'>
|
|
<div class='col'>
|
|
<div class='icon-link--icon'>{{ Icon(icon) }}</div>
|
|
<div class='icon-link--name'>{{ text }}</div>
|
|
</div>
|
|
</a>
|
|
{% endmacro %}
|
|
|
|
<div class='portfolio-header row'>
|
|
<div class='col col--grow'>
|
|
<div class='portfolio-header__name'>
|
|
{{ secondary_breadcrumb or portfolio.name }}
|
|
</div>
|
|
<div class='portfolio-header__budget row'>
|
|
<div class='column-left'>
|
|
<span>Available budget</span>
|
|
{{
|
|
Tooltip(
|
|
('portfolios.task_orders.available_budget_help_description' | translate),
|
|
title=''
|
|
)
|
|
}}
|
|
</div>
|
|
<div class='portfolio-header__budget--amount'>
|
|
<span class='portfolio-header__budget--dollars'>
|
|
</span>
|
|
<span class='portfolio-header__budget--cents'>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class='row'>
|
|
<div class='column-left'></div>
|
|
<div class='column-right portfolio-funding__header--funded-through {{ "funded" if funding_end_date is not none and funded else "unfunded"}}'>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class='row links'>
|
|
{% if user_can(permissions.VIEW_PORTFOLIO_REPORTS) %}
|
|
{{ Link(
|
|
icon='chart-pie',
|
|
text='navigation.portfolio_navigation.breadcrumbs.reports' | translate,
|
|
url=url_for("portfolios.reports", portfolio_id=portfolio.id),
|
|
active=request.url_rule.endpoint == "portfolios.reports",
|
|
) }}
|
|
{% endif %}
|
|
{{ Link(
|
|
icon='dollar-sign',
|
|
text='navigation.portfolio_navigation.breadcrumbs.funding' | translate,
|
|
url=url_for("task_orders.portfolio_funding", portfolio_id=portfolio.id),
|
|
active=request.url_rule.endpoint == "task_orders.portfolio_funding",
|
|
) }}
|
|
{% if user_can(permissions.VIEW_PORTFOLIO_ADMIN) %}
|
|
{{ Link(
|
|
icon='cog',
|
|
text='navigation.portfolio_navigation.breadcrumbs.admin' | translate,
|
|
url=url_for("portfolios.admin", portfolio_id=portfolio.id),
|
|
active=request.url_rule.endpoint == "portfolios.admin",
|
|
) }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|