Commit bc7734c9bb4d74808527b4ca7b85de6fd15c925e

Authored by Андрей Ларионов
Exists in master

Merge branch 'master' of http://gitlab.nologostudio.ru/alarionov/rekamore-su

Showing 4 changed files Side-by-side Diff

app/Http/Controllers/EmployerController.php
... ... @@ -226,8 +226,11 @@ class EmployerController extends Controller
226 226 case 'default': $vacancy_list = $vacancy_list->orderbyDesc('updated_at')->orderBy('name'); break;
227 227 default: $vacancy_list = $vacancy_list->orderByDesc('id')->orderbyDesc('updated_at'); break;
228 228 }
  229 + } else {
  230 + $vacancy_list = $vacancy_list->orderByDesc('created_at')->orderBy('id');
229 231 }
230   - $vacancy_list = $vacancy_list->paginate(4);
  232 +
  233 + $vacancy_list = $vacancy_list->paginate(10);
231 234  
232 235 //ajax
233 236 if ($request->ajax()) {
public/css/style_may2024.css
... ... @@ -3446,6 +3446,9 @@ h1 {
3446 3446 line-height: 1.4;
3447 3447 width: 190px;
3448 3448 }
  3449 +.main__employer-page-item.main__employer-page-description{
  3450 + width: unset;
  3451 +}
3449 3452 @media (min-width: 768px) {
3450 3453 .main__employer-page-item {
3451 3454 font-size: 18px;
... ... @@ -2,6 +2,7 @@
2 2  
3 3 use Illuminate\Contracts\Http\Kernel;
4 4 use Illuminate\Http\Request;
  5 +use Symfony\Component\VarDumper\VarDumper;
5 6  
6 7 define('LARAVEL_START', microtime(true));
7 8  
... ... @@ -53,3 +54,16 @@ $response = $kernel->handle(
53 54 )->send();
54 55  
55 56 $kernel->terminate($request, $response);
  57 +
  58 +
  59 +function d(...$vars): void
  60 +{
  61 + if (!in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && !headers_sent()) {
  62 + header('HTTP/1.1 500 Internal Server Error');
  63 + }
  64 +
  65 + foreach ($vars as $v) {
  66 + VarDumper::dump($v);
  67 + }
  68 +}
  69 +
resources/views/info_company_new.blade.php
... ... @@ -175,7 +175,7 @@
175 175 </div>
176 176 </div>
177 177  
178   - <div class="main__employer-page-item">
  178 + <div class="main__employer-page-item main__employer-page-description">
179 179 <b>Описание</b>
180 180 <span>
181 181 {!! $company[0]->text !!}