Skip to content

Commit

Permalink
chore: cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
flemming-pr committed Aug 9, 2023
1 parent e17add8 commit 4bfb2e0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

AUTO_LOGIN_CREDENTIALS=
AUTO_LOGIN_CREDENTIALS="user%40example.com:password"
2 changes: 2 additions & 0 deletions .env.testing
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

AUTO_LOGIN_CREDENTIALS="user%40example.com:password"
6 changes: 3 additions & 3 deletions database/seeders/UserSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class UserSeeder extends Seeder
public function run(): void
{
User::create([
'name' => 'Admin',
'email' => 'user@ctfl.space',
'password' => bcrypt('Schnell33'),
'name' => 'User',
'email' => 'user@example.com',
'password' => bcrypt('password'),
'is_admin' => true,
]);
}
Expand Down
4 changes: 2 additions & 2 deletions resources/views/templates/item/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
<p class="mb-8">{{ $item->included }}</p>
@endif
@if ($item->manual_link)
<a class="btn btn-primary" href="{{ $item->manual_link }}" target="_blank" role="button">Anleitung</a>
<a class="btn btn-primary" href="{{ $item->manual_link }}" target="_blank" role="button">Anleitung / Wiki-Eintrag</a>
@endif
<hr>
<a class="btn btn-success" href="{{ route('item.transaction', $item->id) }}" role="button">{{ $item->borrow_state === 0 ? 'Ausleihen' : 'Zurückgeben' }}</a>
<a class="btn btn-success" href="{{ route('item.transaction', $item->id) }}" role="button">{{ $item->borrow_state === App\Models\Item::STATE_AVAILABLE ? 'Ausleihen' : 'Zurückgeben' }}</a>
@if ($item->borrow_state === App\Models\Item::STATE_BORROWED)
<a class="btn btn-error" href="{{ route('item.extend', $item->id) }}" role="button">Verlängern</a>
@endif
Expand Down

0 comments on commit 4bfb2e0

Please sign in to comment.