|
|
|
@@ -1214,7 +1214,7 @@ async function initRepository() { |
|
|
|
files: $attachments |
|
|
|
}, |
|
|
|
(data) => { |
|
|
|
if (data.length === 0) { |
|
|
|
if (data.length === 0 || data.content === '') { |
|
|
|
$renderContent.html($('#no-content').html()); |
|
|
|
} else { |
|
|
|
$renderContent.html(data.content); |
|
|
|
@@ -1225,7 +1225,7 @@ async function initRepository() { |
|
|
|
let imageShow = '' |
|
|
|
const $content = $segment.parent(); |
|
|
|
if (!$content.find('.ui.small.images').length) { |
|
|
|
if (data.attachments !== '') { |
|
|
|
if (data.attachments !== '' && 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">' |
|
|
|
|