blob: 534fc13c88f2bae81e64f5b0cb59ff8d51b18afa [file] [log] [blame]
@extends('layout.basic')
@section('page-header')
@parent
@stop
@section('content')
<div class="container" style="max-width: 80%;">
<?php
$project = ProjectUtilities::get_project($_GET['projId']);
?>
<h1>Project Summary
@if( !isset($dashboard))
<small><a href="{{ URL::to('/') }}/project/summary?projId={{ urlencode($project->projectID) }}"
title="Refresh"><span class="glyphicon glyphicon-refresh refresh-exp"></span></a></small>
@endif
</h1>
<div>
<div>
<h3>{{{ $project->name }}}
<a href="edit?projId={{ urlencode($project->projectID) }}" title="Edit">
<span class="glyphicon glyphicon-pencil"></span>
</a>
</h3>
<p>{{{ $project->description }}}</p>
</div>
<div class="table-responsive">
<table class="table">
<tr>
<th>Name</th>
<th>Owner</th>
<th>Application</th>
<th>Compute Resource</th>
<th>Last Modified Time</th>
<th>Experiment Status</th>
<th>Job Status</th>
</tr>
<?php
foreach ($experiments as $experiment) {
$expValues = ExperimentUtilities::get_experiment_values($experiment, true);
$expValues["jobState"] = ExperimentUtilities::get_job_status($experiment);
$applicationInterface = AppUtilities::get_application_interface($experiment->executionId);
try {
$cr = CRUtilities::get_compute_resource($experiment->userConfigurationData->computationalResourceScheduling->resourceHostId);
if (!empty($cr)) {
$resourceName = $cr->hostName;
}
} catch (Exception $ex) {
$resourceName = 'Error while retrieving the CR';
}
?>
<tr>
<td>
<a href="{{URL::to('/')}}/experiment/summary?expId={{urlencode($experiment->experimentId)}}">
{{{ $experiment->experimentName }}}
</a>
<a href="{{URL::to('/')}}/experiment/edit?expId={{urlencode($experiment->experimentId)}}" title="Edit"><span class="glyphicon glyphicon-pencil"></span></a>
</td>
<td>{{{ $experiment->userName }}}</td>
<td>
@if( $applicationInterface != null )
{{{ $applicationInterface->applicationName }}}
@else
<span class='text-danger'>Removed</span>
@endif
</td>
<td>{{{ $resourceName }}}</td>
<td class="time" unix-time="{{{$expValues["experimentTimeOfStateChange"]}}}"></td>
<td>
<div class="{{{ExperimentUtilities::get_status_color_class( $expValues["experimentStatusString"])}}}">
{{{ $expValues["experimentStatusString"] }}}
</div>
</td>
<td>
@if (isset($expValues["jobState"]) )
<div class="{{{ ExperimentUtilities::get_status_color_class( $expValues["jobState"]) }}}">
{{{ $expValues["jobState"] }}}
</div>
@endif
</td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</div>
@stop
@section('scripts')
@parent
{{ HTML::script('js/time-conversion.js')}}
@stop