Skip to content

Commit 1599c97

Browse files
authored
[4.0] download key tip (#34419)
* [4.0] download key tip * change to a link * remove debug * style * fix styles and link * route * updated tooltip * id
1 parent 4f83a9d commit 1599c97

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

administrator/components/com_installer/tmpl/update/default.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,9 @@
9999
<?php endif; ?>
100100
</div>
101101
<?php if($item->isMissingDownloadKey): ?>
102-
<?php HTMLHelper::_('bootstrap.popover', 'span.hasPopover', ['trigger' => 'hover focus']); ?>
103-
<span class="badge bg-danger">
104-
<span class="hasPopover"
105-
title="<?php echo Text::_('COM_INSTALLER_DOWNLOADKEY_MISSING_LABEL') ?>"
106-
data-bs-content="<?php echo Text::_('COM_INSTALLER_DOWNLOADKEY_MISSING_TIP') ?>"
107-
>
108-
<?php echo Text::_('COM_INSTALLER_DOWNLOADKEY_MISSING_LABEL'); ?>
109-
</span>
110-
</span>
111-
<?php endif; ?>
102+
<?php $url = 'index.php?option=com_installer&task=updatesite.edit&update_site_id=' . (int) $item->update_site_id; ?>
103+
<a class="btn btn-danger btn-sm text-decoration-none" href="<?php echo Route::_($url); ?>"><?php echo Text::_('COM_INSTALLER_DOWNLOADKEY_MISSING_LABEL'); ?></a>
104+
<?php endif; ?>
112105
</th>
113106
<td class="d-none d-md-table-cell">
114107
<?php echo $item->client_translated; ?>

administrator/components/com_installer/tmpl/updatesites/default.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,12 @@
112112
</span>
113113
<code><?php echo $item->downloadKey['value']; ?></code>
114114
<?php elseif ($item->downloadKey['supported']) : ?>
115-
<span class="badge bg-danger">
116-
<span class="hasPopover"
117-
title="<?php echo Text::_('COM_INSTALLER_DOWNLOADKEY_MISSING_LABEL') ?>"
118-
data-bs-content="<?php echo Text::_('COM_INSTALLER_DOWNLOADKEY_MISSING_TIP') ?>"
119-
>
115+
<span class="badge bg-danger" tabindex="0">
120116
<?php echo Text::_('COM_INSTALLER_DOWNLOADKEY_MISSING_LABEL'); ?>
121-
</span>
122117
</span>
118+
<div role="tooltip" id="tip-missing<?php echo $i; ?>">
119+
<?php echo Text::_('COM_INSTALLER_DOWNLOADKEY_MISSING_TIP'); ?>
120+
</div>
123121
<?php endif; ?>
124122
</div>
125123
</th>

0 commit comments

Comments
 (0)