Skip to content

Commit

Permalink
Fix routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Siewertsen committed Jun 27, 2020
1 parent fd1d03b commit f12264d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 40 deletions.
17 changes: 0 additions & 17 deletions resources/views/documentation/show.blade.php

This file was deleted.

2 changes: 1 addition & 1 deletion resources/views/videos/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>

@forelse ($videos as $video)
<a href="/{{ config('statamic.cp.route') }}/how-to/video/{{ $video->slug() }}" class="w-full lg:w-1/2 p-3 border-b md:flex hover:bg-grey-10">
<a href="{{ route('statamic.cp.howToAddon.show', $video->slug() ) }}" class="w-full lg:w-1/2 p-3 border-b md:flex hover:bg-grey-10">
<div class="h-8 w-8 mr-2 hidden md:block text-blue">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M4.435.913l8.936 3.573a1 1 0 0 1 .629.928v16.848a1 1 0 0 1-1.371.927l-8-3.2A1 1 0 0 1 4 19.062V1.739a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-2"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/videos/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="flex flex-wrap card">

<div class="p-3 -mt-2 w-full">
<a href="{{ route('statamic.cp.howToAddon.videos.index') }}" class="block mb-1">< {{ __('howToAddon::general.back') }}</a>
<a href="{{ route('statamic.cp.howToAddon.index') }}" class="block mb-1">< {{ __('howToAddon::general.back') }}</a>
<h1 class="mb-2">{{ $video->title }}</h1>

<video class="w-full" controls>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/widgets/howToVideos.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</div>

@forelse ($videos as $video)
<a href="/{{ config('statamic.cp.route') }}/how-to-addon/video/{{ $video->slug() }}" class="w-full lg:w-1/2 p-3 border-b md:flex hover:bg-grey-10">
<a href="{{ route('statamic.cp.howToAddon.show', $video->slug() ) }}" class="w-full lg:w-1/2 p-3 border-b md:flex hover:bg-grey-10">
<div class="h-8 w-8 mr-2 hidden md:block text-blue">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M4.435.913l8.936 3.573a1 1 0 0 1 .629.928v16.848a1 1 0 0 1-1.371.927l-8-3.2A1 1 0 0 1 4 19.062V1.739a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-2"
Expand Down
20 changes: 0 additions & 20 deletions src/Http/Controllers/DocumentationController.php

This file was deleted.

0 comments on commit f12264d

Please sign in to comment.