| @if ( isset($expContainer)) |
| @if (sizeof($expContainer) == 0) |
| @if (isset($pageNo) && $pageNo == 1) |
| {{ CommonUtilities::print_warning_message('No results found. Please try again.') }} |
| @else |
| {{ CommonUtilities::print_warning_message('No more results found.') }} |
| @endif |
| @else |
| <div id="re" class="table-responsive"> |
| |
| <table class="table"> |
| <tr> |
| <th>Name</th> |
| <th>Application</th> |
| @if( isset($dashboard)) |
| <th>User</th> |
| @endif |
| <!--<th>Description</th>--> |
| <th>Resource</th> |
| <th>Creation Time</th> |
| <th>Status</th> |
| <!-- <select class="form-control select-status">--> |
| <!-- <option value="ALL">Status</option>--> |
| <!-- @foreach( $expStates as $index => $state)--> |
| <!-- <option value="{{ $state }}">{{ $state }}</option>--> |
| <!-- @endforeach--> |
| <!-- </select>--> |
| <!-- </th>--> |
| </tr> |
| |
| @foreach($expContainer as $experiment) |
| <tr> |
| <!-- Experiment Name --> |
| <td> |
| {{ $experiment['experiment']->name }} |
| @if( $experiment['expValue']['editable']) |
| <a href="{{URL::to('/')}}/experiment/edit?expId={{$experiment['experiment']->experimentId}}" title="Edit"><span class="glyphicon glyphicon-pencil"></span></a> |
| @endif |
| </td> |
| <!-- Application Name --> |
| <td>{{ $experiment['expValue']['applicationInterface']->applicationName }}</td> |
| <!-- User Names visible to admin --> |
| @if( isset($dashboard)) |
| <td>{{$experiment['experiment']->userName}}</td> |
| @endif |
| <!-- Resource Name --> |
| <td> |
| @if( !empty( explode("_", $experiment['experiment']->resourceHostId)[0] ) ) |
| {{ explode("_", $experiment['experiment']->resourceHostId)[0] }} |
| @endif |
| </td> |
| |
| <td class="time" unix-time="{{ $experiment['experiment']->creationTime / 1000 }}"></td> |
| |
| <?php |
| |
| switch ($experiment['expValue']['experimentStatusString']) { |
| case 'CANCELING': |
| case 'CANCELED': |
| case 'UNKNOWN': |
| $textClass = 'text-warning'; |
| break; |
| case 'FAILED': |
| $textClass = 'text-danger'; |
| break; |
| case 'COMPLETED': |
| $textClass = 'text-success'; |
| break; |
| default: |
| $textClass = 'text-info'; |
| break; |
| } |
| |
| ?> |
| <td> |
| <a class="{{$textClass}}" |
| href="{{ URL::to('/') }}/experiment/summary?expId={{$experiment['experiment']->experimentId }}"> |
| {{$experiment['expValue']['experimentStatusString'] }} |
| </a> |
| </td> |
| |
| </tr> |
| @endforeach |
| |
| </table> |
| </div> |
| @endif |
| @endif |