Skip to content

Commit

Permalink
Improve link for laravel idea section
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Aug 15, 2024
1 parent b5207b2 commit 80e52df
Show file tree
Hide file tree
Showing 12 changed files with 127 additions and 127 deletions.
2 changes: 1 addition & 1 deletion app/Orchid/PlatformProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function menu(): array
->icon('bs.collection')
->route('platform.challenges'),

Menu::make('Idea')
Menu::make('Ключи Idea')
->icon('bs.box-seam')
->route('platform.idea')
->badge(function () {
Expand Down
15 changes: 7 additions & 8 deletions app/Orchid/Screens/Idea/ListScreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,9 @@ public function layout(): iterable

Layout::table('ideaRequests', [

TD::make(__('Actions'))
->width(100)
->render(fn (IdeaRequest $ideaRequest) => Link::make('Просмотр')
->route('platform.idea.request', $ideaRequest->id)
->icon('bs.pencil')),

TD::make('Пользователь')
->cantHide()
->width(200)
->width(230)
->render(fn (IdeaRequest $ideaRequest) => new Persona($ideaRequest->user->presenter())),

/*
Expand All @@ -115,7 +109,12 @@ public function layout(): iterable

TD::make('message', 'Сообщение')
->alignLeft()
->render(fn (IdeaRequest $ideaRequest) => Str::of($ideaRequest->message)->trim()->words(10))
->render(fn (IdeaRequest $ideaRequest) =>
Str::of($ideaRequest->message)->trim()->words(10) . Link::make()
->class('hidden')
->route('platform.idea.request', $ideaRequest->id)
->stretched()
)
->width(300),

TD::make('key', 'Статус')
Expand Down
Loading

0 comments on commit 80e52df

Please sign in to comment.