Skip to content

Commit b601004

Browse files
committed
Template override link
Changes the badge with the count of files to a link directly to the correct tab of the template manager
1 parent 19a2b79 commit b601004

File tree

1 file changed

+3
-1
lines changed
  • administrator/components/com_templates/tmpl/templates

1 file changed

+3
-1
lines changed

administrator/components/com_templates/tmpl/templates/default.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@
118118
<?php if ($this->pluginState) : ?>
119119
<td class="d-none d-md-table-cell text-center">
120120
<?php if (!empty($item->updated)) : ?>
121-
<span class="badge bg-warning text-dark"><?php echo Text::plural('COM_TEMPLATES_N_CONFLICT', $item->updated); ?></span>
121+
<a href="<?php echo Route::_('index.php?option=com_templates&view=template&id=' . (int) $item->extension_id . '#files');?>">
122+
<span class="badge bg-warning text-dark"><?php echo Text::plural('COM_TEMPLATES_N_CONFLICT', $item->updated); ?></span>
123+
</a>
122124
<?php else : ?>
123125
<span class="badge bg-success"><?php echo Text::_('COM_TEMPLATES_UPTODATE'); ?></span>
124126
<?php endif; ?>

0 commit comments

Comments
 (0)