Combine current and past trip views

This commit is contained in:
Ben Goldsworthy 2022-10-19 15:48:11 -07:00
parent fac44484b4
commit ff3c265968
3 changed files with 23 additions and 37 deletions

View file

@ -16,8 +16,7 @@
</head>
<body>
<header>
<header class="page-header">
<h1 class="page-title">Past Trips</h1>
<nav class="other-links">
<ul>
@ -26,12 +25,10 @@
</nav>
</header>
<main class="main--list">
<main id="pastTripsList">
<ul>
<li><a href="/past-trip/47xj8go928ql9mq3r20p">Europespedition III: Leds Free or Die Hard</a></li>
<li><a href="/47xj8go928ql9mq3r20p">Europespedition III: Leds Free or Die Hard</a></li>
</ul>
</main>
</body>
</html>

View file

@ -16,9 +16,8 @@
</head>
<body>
<header class="page-header">
<h1 class="page-title">Where in the World is Ben?</h1>
<h1 class="page-title">@if ($trip->is_active) Where in the World is Ben? @else {{ $trip->title }} @endif</h1>
<nav class="other-links">
<ul>
<li><p><a href="/past-trips">Past trips</a></p></li>