Skip to content

Commit

Permalink
Remove horizontal scrollbar in statistics modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Quy committed Oct 27, 2019
1 parent f86ad18 commit 7938fb2
Showing 1 changed file with 38 additions and 40 deletions.
78 changes: 38 additions & 40 deletions administrator/components/com_finder/tmpl/statistics/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,42 @@
use Joomla\CMS\Language\Text;

?>
<div class="row">
<div class="col-md-12">
<p class="tab-description"><?php echo Text::sprintf('COM_FINDER_STATISTICS_STATS_DESCRIPTION', number_format($this->data->term_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')), number_format($this->data->link_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')), number_format($this->data->taxonomy_node_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')), number_format($this->data->taxonomy_branch_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR'))); ?></p>
<table class="table table-sm">
<thead>
<tr>
<th scope="col">
<?php echo Text::_('COM_FINDER_STATISTICS_LINK_TYPE_HEADING'); ?>
</th>
<th scope="col">
<?php echo Text::_('COM_FINDER_STATISTICS_LINK_TYPE_COUNT'); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->data->type_list as $type) : ?>
<tr>
<th scope="row">
<?php
$lang_key = 'PLG_FINDER_STATISTICS_' . str_replace(' ', '_', $type->type_title);
$lang_string = Text::_($lang_key);
echo $lang_string === $lang_key ? $type->type_title : $lang_string;
?>
</th>
<td>
<span class="badge badge-info"><?php echo number_format($type->link_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')); ?></span>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td>
<strong><?php echo Text::_('COM_FINDER_STATISTICS_LINK_TYPE_TOTAL'); ?></strong>
</td>
<td>
<span class="badge badge-info"><?php echo number_format($this->data->link_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')); ?></span>
</td>
</tr>
</tbody>
</table>
</div>
<div class="container-popup">
<p class="tab-description"><?php echo Text::sprintf('COM_FINDER_STATISTICS_STATS_DESCRIPTION', number_format($this->data->term_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')), number_format($this->data->link_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')), number_format($this->data->taxonomy_node_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')), number_format($this->data->taxonomy_branch_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR'))); ?></p>
<table class="table table-sm">
<thead>
<tr>
<th scope="col">
<?php echo Text::_('COM_FINDER_STATISTICS_LINK_TYPE_HEADING'); ?>
</th>
<th scope="col">
<?php echo Text::_('COM_FINDER_STATISTICS_LINK_TYPE_COUNT'); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->data->type_list as $type) : ?>
<tr>
<th scope="row">
<?php
$lang_key = 'PLG_FINDER_STATISTICS_' . str_replace(' ', '_', $type->type_title);
$lang_string = Text::_($lang_key);
echo $lang_string === $lang_key ? $type->type_title : $lang_string;
?>
</th>
<td>
<span class="badge badge-info"><?php echo number_format($type->link_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')); ?></span>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td>
<strong><?php echo Text::_('COM_FINDER_STATISTICS_LINK_TYPE_TOTAL'); ?></strong>
</td>
<td>
<span class="badge badge-info"><?php echo number_format($this->data->link_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')); ?></span>
</td>
</tr>
</tbody>
</table>
</div>

0 comments on commit 7938fb2

Please sign in to comment.