mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-15 03:02:39 -04:00
HTML validation, avoid empty <ul>
This commit is contained in:
committed by
Tim Almdal
parent
1a951cb7f6
commit
64e5d438c7
@@ -10,7 +10,9 @@
|
||||
<?= t("No comments yet. Be the first to <a %attrs>comment</a>!",
|
||||
array("attrs" => html::mark_clean("id= \"g-no-comments\" href=\"" . url::site("form/add/comments/{$item->id}") . "\" class=\"showCommentForm\""))) ?>
|
||||
</p>
|
||||
<ul> </ul>
|
||||
<? endif ?>
|
||||
<? if ($comments->count()): ?>
|
||||
<ul>
|
||||
<? foreach ($comments as $comment): ?>
|
||||
<li id="g-comment-<?= $comment->id ?>">
|
||||
@@ -39,4 +41,5 @@
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
</ul>
|
||||
<? endif ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user