diff --git a/app/View/Components/Site/Banner.php b/app/View/Components/Site/Banner.php index 9d34e9aa..e526bb88 100644 --- a/app/View/Components/Site/Banner.php +++ b/app/View/Components/Site/Banner.php @@ -4,6 +4,7 @@ namespace App\View\Components\Site; +use App\Services\Features; use Illuminate\Contracts\View\View; use Illuminate\View\Component; @@ -11,9 +12,13 @@ class Banner extends Component { public ?string $text; + public bool $isExternalSite; + public function __construct(?string $text = null) { $this->text = $text; + + $this->isExternalSite = ! Features::isCode4RomaniaSite(); } public function render(): View diff --git a/resources/views/components/site/banner.blade.php b/resources/views/components/site/banner.blade.php index 8a08ebc9..6551a368 100644 --- a/resources/views/components/site/banner.blade.php +++ b/resources/views/components/site/banner.blade.php @@ -12,29 +12,29 @@ class="flex items-center max-w-2xl text-sm hover:text-blue-600 focus:text-blue-6 class="hover:text-blue-600 focus:text-blue-600 focus:outline-0 hover:underline focus:underline" href="https://www.commitglobal.org" target="_blank" - rel="noopener" - > + rel="noopener"> {{ $text }} -
- - @lang('banner.disclaimer') - - - - @lang('banner.report_issue') - -
+ + @if ($isExternalSite) +
+ + @lang('banner.disclaimer') + + + + @lang('banner.report_issue') + +
+ @endif