2019-02-12 11:21:35 +00:00
|
|
|
@extends('settings.layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="header">
|
|
|
|
<h3 class="header-title">
|
2019-02-21 13:07:00 +00:00
|
|
|
<i class="fa fa-file"></i> Review unpblished datasets
|
2019-02-12 11:21:35 +00:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-g box-content">
|
|
|
|
<div class="pure-u-1">
|
|
|
|
<table class="pure-table pure-table-horizontal">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
<th>Dataset Title</th>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Server State</th>
|
2019-02-21 13:07:00 +00:00
|
|
|
<th></th>
|
2019-02-12 11:21:35 +00:00
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach($datasets as $dataset)
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@if ($dataset->titles()->first())
|
|
|
|
{{ $dataset->titles()->first()->value }}
|
|
|
|
@else
|
|
|
|
no title
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $dataset->id }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $dataset->server_state }}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
@if ($dataset->server_state == "unpublished")
|
2019-04-03 16:06:10 +00:00
|
|
|
<a href="{{ URL::route('publish.review.changestate',['id' => $dataset->id, 'targetState' => 'published']) }}" class="pure-button button-small is-success">Publish</a>
|
2019-02-12 11:21:35 +00:00
|
|
|
{{-- <a href="" class="pure-button button-small is-success">Restrict</a> --}}
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|