Skip to content

Commit

Permalink
mark solution cta banner (laravelio#736)
Browse files Browse the repository at this point in the history
* mark solution cta banner

* change cta banner style

* wip

Co-authored-by: Dries Vints <dries@vints.io>
  • Loading branch information
faissaloux and driesvints authored Nov 17, 2021
1 parent de3657c commit 9aa2436
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
19 changes: 14 additions & 5 deletions resources/views/forum/threads/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
@section('content')
<section class="pt-5 pb-10 px-4 container mx-auto flex flex-col gap-x-12 lg:flex-row lg:pt-10 lg:pb-0">
<div class="w-full lg:w-3/4">
@unless ($thread->isSolved())
@can(App\Policies\ThreadPolicy::UPDATE, $thread)
<div class="bg-lio-500 shadow rounded px-4 py-3 mb-4 text-white text-xs sm:text-sm flex">
<x-heroicon-o-badge-check class="h-4 w-4 inline-block self-center mr-1" />
Please make sure to mark the correct reply as the solution when your question gets answered.
</div>
@endcan
@endunless

<div class="relative">
<div class="relative flex flex-col gap-y-6 z-20">
<x-threads.thread :thread="$thread" />
Expand All @@ -42,11 +51,11 @@
<form action="{{ route('replies.store') }}" method="POST">
@csrf

<livewire:editor
hasButton
buttonLabel="Reply"
buttonIcon="send"
label="Write a reply"
<livewire:editor
hasButton
buttonLabel="Reply"
buttonIcon="send"
label="Write a reply"
/>

@error('body')
Expand Down
2 changes: 2 additions & 0 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ mix.js('resources/js/app.js', 'public/js')
.sourceMaps(true, 'hidden-source-map')
.postCss('resources/css/app.css', 'public/css', [require('tailwindcss')])
.version();

mix.disableSuccessNotifications();

0 comments on commit 9aa2436

Please sign in to comment.