Calculate distance between PLZs if given
This commit is contained in:
parent
853b570f0f
commit
d33e28467b
7 changed files with 716 additions and 472 deletions
|
@ -17,17 +17,30 @@
|
|||
<div class="alert alert-info" role="alert">This is your offer!</div>
|
||||
{% endif %}
|
||||
|
||||
<h1 class="mb-3">{{ offer.title }}</h1>
|
||||
|
||||
<div class="show-offer-container d-flex flex-wrap">
|
||||
<div class="show-img-container">
|
||||
<img class="mb-3 img-fluid rounded" alt="Generic placeholder image" src="{{ asset('uploads/photos/' ~ offer.photofilename) }}">
|
||||
</div>
|
||||
<div class="show-offer-info">
|
||||
<div class="show-offer-info w-50">
|
||||
<h1 class="mb-3">{{ offer.title }}</h1>
|
||||
<div class="mb-3 d-flex">
|
||||
<p class="pr-3">
|
||||
<i class="fas fa-user"></i>
|
||||
{% if offer.byUser == user %}
|
||||
Me
|
||||
{% else %}
|
||||
{{ offer.byUser }}
|
||||
{% endif %}
|
||||
</p>
|
||||
<p class="pr-3">
|
||||
<i class="fas fa-map-marker-alt"></i> {{ offer.zipCode }}
|
||||
{% if distance > 0 %}
|
||||
(ca. {{ distance }} km)
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
<h3>Description</h3>
|
||||
<p>{{ offer.description }}</p>
|
||||
<h3>From</h3>
|
||||
<p>{% if offer.byUser == user %}Me{% else %}{{ offer.byUser }}{% endif %} in {{ offer.zipCode }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Reference in a new issue