Skip to content

Commit a696d04

Browse files
committed
Amend markdown call
This closes #351
1 parent 447b0fb commit a696d04

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

resources/views/learning/lookthinkdoactivity.blade.php

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,20 @@ class="img-fluid" alt="{{ $look['title_of_work'] }}" loading="lazy"
2929
alt="Creative Commons Licence"
3030
src="https://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png"/></a></span>
3131
</div>
32-
<h3>
33-
Description of this object or artwork
34-
</h3>
35-
<div class="shadow-sm p-3 mx-auto">
36-
@markdown($look['main_text_description'])
37-
</div>
38-
39-
<div class="shadow-sm p-3 mx-auto mb-3 mt-3">
40-
@markdown($look['object_metadata'])
32+
@if(!is_null($look['main_text_description']))
4133

42-
</div>
34+
<div class="shadow-sm p-3 mx-auto">
35+
<h3 class="text-info">
36+
Description of this object or artwork
37+
</h3>
38+
@markdown($look['main_text_description'] ?? 'No description provided')
39+
</div>
40+
@endif
41+
@if(!is_null($look['object_metadata']))
42+
<div class="shadow-sm p-3 mx-auto mb-3 mt-3">
43+
@markdown($look['object_metadata'] ?? 'No metadata available')
44+
</div>
45+
@endif
4346
@if(isset($look['adlib_id_number']))
4447
@foreach($adlib as $record)
4548
@include('includes.elements.iiif')
@@ -51,35 +54,34 @@ class="img-fluid" alt="{{ $look['title_of_work'] }}" loading="lazy"
5154

5255
<!-- column two -->
5356
<div class="col-md-5 mt-3">
54-
<h3>
55-
Look
56-
</h3>
57-
<div class="col shadow-sm p-3 mx-auto mb-3">
5857

58+
<div class="col shadow-sm p-3 mx-auto mb-3">
59+
<h3 class="text-info">
60+
Look
61+
</h3>
5962
{!! $look['look_text'] !!}
6063
@if(isset($look['look_answers']))
6164
<button type="button" class="btn btn-dark" data-bs-toggle="modal"
6265
data-bs-target="#lookanswers">Answers
6366
</button>
6467
@endif
6568
</div>
66-
<h3>
67-
Think
68-
</h3>
6969
<div class="col shadow-sm p-3 mx-auto mb-3">
70-
70+
<h3 class="text-info">
71+
Think
72+
</h3>
7173
{!! $look['think_text'] !!}
7274
@if(isset($look['think_answers']))
7375
<button type="button" class="btn btn-dark" data-bs-toggle="modal"
7476
data-bs-target="#thinkanswers">Answers
7577
</button>
7678
@endif
7779
</div>
78-
<h3>
79-
Do
80-
</h3>
81-
<div class="col shadow-sm p-3 mx-auto mb-3">
8280

81+
<div class="col shadow-sm p-3 mx-auto mb-3">
82+
<h3 class="text-info">
83+
Do
84+
</h3>
8385
{!! $look['do_text'] !!}
8486
@if(isset($look['do_answers']))
8587
<button type="button" class="btn btn-dark" data-bs-toggle="modal"
@@ -89,10 +91,10 @@ class="img-fluid" alt="{{ $look['title_of_work'] }}" loading="lazy"
8991
</div>
9092

9193
@if(isset($look['adlib_id_number']))
92-
<h3>
93-
Collections record
94-
</h3>
9594
<div class="col shadow-sm p-3 mx-auto mb-3">
95+
<h3 class="text-info">
96+
Collections record
97+
</h3>
9698
<p>
9799
{!! $look['adlib_id_number'] !!}
98100
@foreach($adlib as $record)

0 commit comments

Comments
 (0)