Compare commits

...

2 commits

Author SHA1 Message Date
9a000fb08e Remove superfluous meta from finished trips 2022-10-07 20:03:09 +01:00
3c03aeaabc Tweak styling 2022-10-07 20:02:57 +01:00
2 changed files with 11 additions and 1 deletions

View file

@ -43,10 +43,18 @@ details h2 {
.other-links {
display: block;
text-align: center;
margin: auto;
}
.other-links ul {
list-style: none;
}
.other-links li {
float: left;
margin-right: 1.5em;
}
.trip-meta {
display: block;
width: 100%;

View file

@ -28,7 +28,9 @@
<p>
<span> Tracking started: {{ date('j M Y (G:H)', strtotime($trip->date_start)) }}</span> |
<span class="{{ ($trip->is_active) ? "positive" : "negative" }}">{{ ($trip->is_active) ? "Active" : "Ended" }}</span> |
@if ($trip->is_active)
<span class="{{ ($trip->is_tracking) ? "positive" : "negative" }}">{{ ($trip->is_tracking) ? "Currently tracking" : "Not currently tracking" }}</span>
@endif
<span class="small">(Last update: {{ date('j M Y (G:H)', strtotime($trip->updated_at)) }})</span>
</p>
</section>