Skip to content

Commit 985df5e

Browse files
committed
Fix document index display formatting
1 parent a2c37f7 commit 985df5e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/templates/Document/Index.phtml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ require('./header.inc.phtml'); ?>
4242
$doc_brief = rtrim(Common::stripUpTo(Common::stripUpTo(trim(filter_var($document->getContent(true), FILTER_SANITIZE_STRING)), "\n", 128), '. ', 128), '.');
4343
$doc_user = $document->getUser();
4444
$doc_user_string = ($doc_user ?
45-
sprintf('<a href="%s"><img class="img-fluid rounded mr-2" src="%s"/>%s</a>',
45+
sprintf('<a href="%s"><img class="mr-2 rounded" src="%s"/>%s</a>',
4646
$doc_user->getURI(), $doc_user->getAvatarURI(40), filter_var($doc_user->getName(), FILTER_SANITIZE_FULL_SPECIAL_CHARS)
4747
) : 'Anonymous'
4848
);
49-
echo '<tr><td><strong><a href="' . $document->getURI() . '">' . $doc_title . '</a></strong><br/>'
50-
. '<span class="text-muted">' . $doc_brief . '</span></td><td>' . $doc_user_string . '</td></tr>';
49+
printf('<tr><td><strong><a href="%s">%s</a></strong><br/><span class="text-muted">%s</span></td><td>%s</td></tr>',
50+
$document->getURI(), $doc_title, $doc_brief, $doc_user_string
51+
);
5152
} ?>
5253
</tbody></table>
5354
</div>
@@ -56,8 +57,8 @@ require('./header.inc.phtml'); ?>
5657
$(document).ready(function(){
5758
$('#docs_tbl').DataTable({
5859
'aaSorting': [],
59-
"language": {"zeroRecords": "No matching documents found"},
60-
"responsive": true,
60+
'language': {'zeroRecords': 'No matching documents found'},
61+
'responsive': false,
6162
});
6263
});
6364
</script>

0 commit comments

Comments
 (0)