Fullscreen view for credits
This commit is contained in:
parent
638a2a9230
commit
cd2a104fbc
2 changed files with 12 additions and 3 deletions
|
|
@ -22,8 +22,15 @@ class CreditController extends Controller
|
|||
|
||||
public function show(ShowCreditRequest $request, Credit $credit)
|
||||
{
|
||||
return $this->render('credits.show', [
|
||||
'credit' => $credit,
|
||||
]);
|
||||
set_time_limit(0);
|
||||
|
||||
$data = ['credit' => $credit];
|
||||
|
||||
|
||||
if ($request->query('mode') === 'fullscreen') {
|
||||
return render('credits.show-fullscreen', $data);
|
||||
}
|
||||
|
||||
return $this->render('credits.show', $data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
<iframe src="{{ $credit->pdf_file_path(null, 'url', true) }}"
|
||||
style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"></iframe>
|
||||
Loading…
Add table
Reference in a new issue