Change page of Message
This commit is contained in:
parent
cbffbea2ad
commit
34fddd45e4
3 changed files with 15 additions and 11 deletions
|
@ -21,9 +21,20 @@ class Message extends Page
|
|||
$this->httpStatus = $status;
|
||||
$this->httpHeaders = $headers;
|
||||
$this->titles = \ForkBB\__('Info');
|
||||
$this->message = \ForkBB\__($message);
|
||||
$this->back = $back;
|
||||
|
||||
|
||||
if ($status < 200) {
|
||||
$type = 'i';
|
||||
} elseif ($status < 300) {
|
||||
$type = 's';
|
||||
} elseif ($status < 400) {
|
||||
$type = 'w';
|
||||
} else {
|
||||
$type = 'e';
|
||||
}
|
||||
$this->fIswev = [$type, \ForkBB\__($message)];
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
@extends ('layouts/main')
|
||||
<section class="f-main f-message">
|
||||
<h2>{!! __('Info') !!}</h2>
|
||||
<p>{!! $p->message !!}</p>
|
||||
@if ($p->back)
|
||||
<div class="f-backlink">
|
||||
<p><a href="{!! $p->fRootLink !!}" onclick="window.history.back(); return false;">{!! __('Go back') !!}</a></p>
|
||||
</div>
|
||||
@endif
|
||||
</section>
|
||||
|
|
|
@ -823,12 +823,7 @@ body,
|
|||
/* Сообщение */
|
||||
/*************/
|
||||
|
||||
#fork .f-message > h2 {
|
||||
display: block;
|
||||
padding: 0.625rem;
|
||||
}
|
||||
|
||||
#fork .f-message > p {
|
||||
#fork .f-backlink > p {
|
||||
padding: 0.625rem;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue