tethys/resources/views/workflow/publish/index.blade.php

80 lines
3.0 KiB
PHP
Raw Permalink Normal View History

2019-04-17 17:02:00 +00:00
@extends('settings.layouts.app')
@section('content')
<div class="header">
<h3 class="header-title">
2019-04-18 11:16:50 +00:00
<i class="fas fa-list"></i> PUBLISH PAGE: Publish reviewed datasets
2019-04-17 17:02:00 +00:00
</h3>
</div>
<div class="pure-g box-content">
<div class="pure-u-1">
2019-04-18 11:16:50 +00:00
@if($datasets->count() > 0)
2019-04-17 17:02:00 +00:00
<table class="pure-table pure-table-horizontal">
<thead>
<th>Dataset Title</th>
<th>ID</th>
<th>Server State</th>
<th>Editor</th>
<th>Reviewer</th>
<th></th>
</thead>
<tbody>
@foreach($datasets as $dataset)
@php
//if userid changed from last iteration, store new userid and change color
// $lastid = $detail->payment->userid;
if ($dataset->server_state == 'editor_accepted') {
$rowclass = 'editor_accepted';
} elseif ($dataset->server_state == 'released') {
$rowclass = 'released';
}
@endphp
<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>
{{ $dataset->editor?->login }}
2019-04-17 17:02:00 +00:00
</td>
<td>
{{ $dataset->reviewer?->login }}
2019-04-17 17:02:00 +00:00
</td>
<td>
@if ($dataset->server_state == "reviewed")
2019-05-28 17:02:21 +00:00
<a href="{{ URL::route('publish.workflow.editor.publish', $dataset->id) }}" class="pure-button">
2019-04-17 17:02:00 +00:00
<i class="fa fa-check"></i>
<span>Publish</span>
</a>
@endif
</td>
{{-- <td>
@if ($dataset->server_state == "unpublished")
<a href="{{ URL::route('publish.review.changestate',['id' => $dataset->id, 'targetState' => 'published']) }}" class="pure-button button-small is-success">Publish</a>
@endif
</td> --}}
</tr>
@endforeach
</tbody>
</table>
2019-04-18 11:16:50 +00:00
@else
<p>there are no reviewed datasets for publishing...</p>
@endif
2019-04-17 17:02:00 +00:00
</div>
</div>
@stop