Browse Source

Add missing closing spans and avoid empty href

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
pull/33361/head
Vincent Petry 4 years ago
committed by nextcloud-command
parent
commit
b896cd7f01
  1. 1
      apps/files_sharing/tests/js/publicAppSpec.js
  2. 2
      apps/files_trashbin/templates/index.php
  3. 2
      apps/systemtags/tests/js/systemtagsfilelistSpec.js
  4. 2
      core/templates/layout.user.php

1
apps/files_sharing/tests/js/publicAppSpec.js

@ -74,6 +74,7 @@ describe('OCA.Sharing.PublicApp tests', function() {
'<a class="name columntitle" data-sort="name"><span>Name</span><span class="sort-indicator"></span></a>' +
'<span class="selectedActions hidden">' +
'<a href class="download">Download</a>' +
'</span>' +
'</th>' +
'<th class="hidden column-size"><a class="columntitle" data-sort="size"><span class="sort-indicator"></span></a></th>' +
'<th class="hidden column-mtime"><a class="columntitle" data-sort="mtime"><span class="sort-indicator"></span></a></th>' +

2
apps/files_trashbin/templates/index.php

@ -31,7 +31,7 @@
<div class="column-name-container">
<a class="name sort columntitle" data-sort="name"><span><?php p($l->t('Name')); ?></span><span class="sort-indicator"></span></a>
<span class='selectedActions'>
<a href="" class="actions-selected">
<a href="#" class="actions-selected">
<span class="icon icon-more"></span>
<span><?php p($l->t('Actions'))?></span>
</a>

2
apps/systemtags/tests/js/systemtagsfilelistSpec.js

@ -40,7 +40,7 @@ describe('OCA.SystemTags.FileList tests', function() {
'<th class="hidden column-name">' +
'<input type="checkbox" id="select_all_files" class="select-all">' +
'<a class="name columntitle" data-sort="name"><span>Name</span><span class="sort-indicator"></span></a>' +
'<span class="selectedActions hidden">' +
'<span class="selectedActions hidden"></span>' +
'</th>' +
'<th class="hidden column-mtime">' +
'<a class="columntitle" data-sort="mtime"><span class="sort-indicator"></span></a>' +

2
core/templates/layout.user.php

@ -175,7 +175,7 @@ $getUserAvatar = static function (int $size) use ($_): string {
<ul>
<?php foreach ($_['settingsnavigation'] as $entry):?>
<li data-id="<?php p($entry['id']); ?>">
<a href="<?php print_unescaped($entry['href']); ?>"
<a href="<?php print_unescaped($entry['href'] !== '' ? $entry['href'] : '#'); ?>"
<?php if ($entry["active"]): ?> class="active"<?php endif; ?>>
<img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
<?php p($entry['name']) ?>

Loading…
Cancel
Save