Skip to content

Commit

Permalink
Remove breadcrumbs because they are redundant with taxonomy tree and …
Browse files Browse the repository at this point in the history
…title
  • Loading branch information
MuchQuak committed Feb 13, 2025
1 parent 455f802 commit 3afe383
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions resources/views/core/pages/taxon/profile.blade.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
@props(['taxon', 'parents', 'common_names', 'children' => []])
@php
$breadcrumbs = [
['title' => 'Home', 'href' => url('')]
];
foreach($parents as $parent) {
if($taxon->tid === $parent->tid) {
array_push($breadcrumbs, ['title' => $taxon->sciName ]);
} else if($taxon->parenttid == $parent->tid) {
array_push($breadcrumbs, ['title' => $parent->sciName, 'href' => url('taxon/' . $parent->tid)]);
}
}
@endphp
<x-layout class="grid grid-col-1 gap-4">
<x-breadcrumbs :items="$breadcrumbs" />
<div class="flex items-center">
<h1 class="text-2xl font-bold w-fit">
<i>{{ $taxon->sciName }}</i>
Expand All @@ -37,6 +24,7 @@
</div>
<div class="flex-grow">
<x-tabs :tabs="['Taxonomy', 'Synonyms/Vernaculars', 'Traits']">

{{-- Taxonomy Information --}}
<div class="min-h-72">
<div class="flex items-center gap-2">
Expand Down

0 comments on commit 3afe383

Please sign in to comment.