- md5
- 3d8181fad628ea05e6fe561c6780c904
- sha1
- a277e120e06a4d708c42fc21c5df4e4dddb05fc7
- sha256
- 60fc81946c00e4140634efa493196e31c51e760760024779fad1095f5d02ebec
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_privacy_dashboard
*
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
$totalRequests = 0;
$activeRequests = 0;
?>
<table class="table" id="<?php echo str_replace(' ', '', $module->title) . $module->id; ?>">
<caption class="visually-hidden"><?php echo $module->title; ?></caption>
<thead>
<tr>
<th scope="col" class="w-40"><?php echo Text::_('COM_PRIVACY_DASHBOARD_HEADING_REQUEST_TYPE'); ?></th>
<th scope="col" class="w-40"><?php echo Text::_('COM_PRIVACY_DASHBOARD_HEADING_REQUEST_STATUS'); ?></th>
<th scope="col" class="w-20"><?php echo Text::_('COM_PRIVACY_DASHBOARD_HEADING_REQUEST_COUNT'); ?></th>
</tr>
</thead>
<tbody>
<?php if (count($list)) : ?>
<?php foreach ($list as $i => $item) : ?>
<?php if (in_array($item->status, array(0, 1))) : ?>
<?php $activeRequests += $item->count; ?>
<?php endif; ?>
<?php $totalRequests += $item->count; ?>
<tr>
<th scope="row">
<a href="<?php echo Route::_('index.php?option=com_privacy&view=requests&filter[request_type]=' . $item->request_type . '&filter[status]=' . $item->status); ?>">
<?php echo Text::_('COM_PRIVACY_HEADING_REQUEST_TYPE_TYPE_' . $item->request_type); ?>
</a>
</td>
<td>
<?php echo HTMLHelper::_('privacy.statusLabel', $item->status); ?>
</td>
<td>
<span class="badge bg-info"><?php echo $item->count; ?></span>
</td>
</tr>
<?php endforeach; ?>
<?php else : ?>
<tr>
<td colspan="3">
<?php echo Text::_('COM_PRIVACY_DASHBOARD_NO_REQUESTS'); ?>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php if (count($list)) : ?>
<div class="row">
<div class="col-md-6"><?php echo Text::plural('COM_PRIVACY_DASHBOARD_BADGE_TOTAL_REQUESTS', $totalRequests); ?></div>
<div class="col-md-6"><?php echo Text::plural('COM_PRIVACY_DASHBOARD_BADGE_ACTIVE_REQUESTS', $activeRequests); ?></div>
</div>
<?php endif; ?>
No other release has this exact content. See every version of this file.