Working on projects

This commit is contained in:
Hillel Coren 2017-12-25 12:59:46 +02:00
parent 56dc889879
commit fa223f33e6

View File

@ -76,7 +76,7 @@
{{ $project->private_notes }} {{ $project->private_notes }}
</div> </div>
<div class="col-md-3"> <div class="col-md-4">
<h3>{{ trans('texts.summary') }} <h3>{{ trans('texts.summary') }}
<table class="table" style="width:100%"> <table class="table" style="width:100%">
<tr> <tr>
@ -85,7 +85,12 @@
</tr> </tr>
<tr> <tr>
<td><small>{{ trans('texts.duration') }}</small></td> <td><small>{{ trans('texts.duration') }}</small></td>
<td style="text-align: right">{{ Utils::formatTime($chartData->duration) }}</td> <td style="text-align: right">
{{ Utils::formatTime($chartData->duration) }}
@if ($project->budgeted_hours)
[{{ round($chartData->duration / ($project->budgeted_hours * 60 * 60) * 100) }}%]
@endif
</td>
</tr> </tr>
</table> </table>
</h3> </h3>
@ -174,7 +179,7 @@
yAxes: [{ yAxes: [{
ticks: { ticks: {
@if ($project->budgeted_hours) @if ($project->budgeted_hours)
max: {{ $project->budgeted_hours }}, max: {{ max($project->budgeted_hours, $chartData->duration / 60 / 60) }},
@endif @endif
beginAtZero: true, beginAtZero: true,
callback: function(label, index, labels) { callback: function(label, index, labels) {