Skip to content

Commit

Permalink
Update. Moved the pdf from gdrive to repository. Closes #1644
Browse files Browse the repository at this point in the history
  • Loading branch information
artengin committed Nov 8, 2024
1 parent cfa37f9 commit b5da33c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
8 changes: 0 additions & 8 deletions app/Helpers/TemplateHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,4 @@ public static function getTitleContent(string $header): string
$name = __('layout.title.name_SICP');
return "{$header} - {$name}";
}

public static function getBookLink(string $locale): string
{
return match ($locale) {
'ru' => 'https://drive.google.com/file/d/1xc9r6txuTZMZ5lPy9YQuD1Dwv9spg7Nt/view?usp=sharing',
default => 'https://drive.google.com/file/d/1t3rlltwuU85ow7g0ZI6Kx7eY5n-Umh8p/view?usp=sharing',
};
}
}
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions resources/views/layouts/_nav.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@php
use App\Helpers\TemplateHelper;
use App\Helpers\LocalizationHelper;
$currentLocale = LaravelLocalization::getCurrentLocale();
$locales = LaravelLocalization::getSupportedLocales();
Expand Down Expand Up @@ -29,8 +28,8 @@ class="nav-link p-2">{{ __('layout.nav.sicp_read') }}</a></li>
@endif
<li class="nav-item"><a href="{{ route('top.index') }}" class="nav-link p-2">{{ __('layout.nav.rating') }}</a>
</li>
<li class="nav-item"><a href="{{ Vite::asset("resources/assets/images/sicp-{$currentLocale}.pdf") }}"
class="nav-link link-info p-2">{{ __('layout.nav.sicp_book') }}</a></li>
<li class="nav-item"><a href="{{ Vite::asset("resources/assets/pdf/sicp-{$currentLocale}.pdf") }}"
class="nav-link link-info p-2" target="_blank">{{ __('layout.nav.sicp_book') }}</a></li>
</ul>
<ul class="navbar-nav ms-md-auto">
@guest
Expand Down

0 comments on commit b5da33c

Please sign in to comment.