| @@ -1222,10 +1222,18 @@ async function initRepository() { | |||||
| highlight(this); | highlight(this); | ||||
| }); | }); | ||||
| } | } | ||||
| let imageShow = '' | |||||
| const $content = $segment.parent(); | const $content = $segment.parent(); | ||||
| if (!$content.find('.ui.small.images').length) { | if (!$content.find('.ui.small.images').length) { | ||||
| if (data.attachments !== '') { | if (data.attachments !== '') { | ||||
| $content.find('.ui.middle.aligned').html(data.attachments) | |||||
| if ($content.find('.ui.middle.aligned').length === 0) { | |||||
| imageShow += '<div class="ui clearing divider"></div>' | |||||
| imageShow += '<div class="ui middle aligned padded grid">' | |||||
| imageShow += data.attachments | |||||
| imageShow += '</div>' | |||||
| $content.find('.ui.attached.segment').append(imageShow) | |||||
| } | |||||
| else { $content.find('.ui.middle.aligned').html(data.attachments) } | |||||
| } | } | ||||
| } else if (data.attachments === '') { | } else if (data.attachments === '') { | ||||
| $content | $content | ||||