This commit is contained in:
Montana 2019-02-12 09:37:10 -05:00
parent 6a8d4964d4
commit be44d5f8db
2 changed files with 43 additions and 26 deletions

View File

@ -90,9 +90,19 @@
}
}
.column-left {
width: 12.5rem;
float: left;
}
.column-right {
margin-left: -.4rem;
}
.cents {
font-size: 2rem;
margin-top: .75rem;
margin-left: -.7rem;
font-weight: bold;
}

View File

@ -15,10 +15,13 @@
{{ secondary_breadcrumb or portfolio.name }}
</div>
<div class='portfolio-header__budget row'>
<div class='column-left'>
<span>Available budget</span>
<button type="button" tabindex="0" class="icon-tooltip" v-tooltip.right="{content: 'The available budget shown includes the available budget of all active task orders', container: false}">
{{ Icon('info') }}
</button>
</div>
<div>
<span class='portfolio-header__budget--dollars'>
{{ portfolio.task_orders | selectattr('is_active') | sum(attribute='budget') | justDollars }}
</span>
@ -26,7 +29,10 @@
{{ portfolio.task_orders | selectattr('is_active') | sum(attribute='budget') | justCents }}
</span>
</div>
<div class='portfolio-funding__header--funded-through {{ "funded" if funding_end_date is not none and funded else "unfunded"}}'>
</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"}}'>
{% if funding_end_date and funded %}
{{ Icon('ok') }}
Funded through
@ -44,6 +50,7 @@
{% endif %}
</div>
</div>
</div>
<div class='row links'>
{% if user_can(permissions.VIEW_USAGE_DOLLARS) %}
{{ Link(