Add language filter to server list
This commit is contained in:
parent
e68b68110b
commit
16d1962324
4 changed files with 31 additions and 8 deletions
|
|
@ -1,4 +1,9 @@
|
|||
<h1><?php echo $this->e($title) ?></h1>
|
||||
<h1><?php echo $this->e($title) ?> (<?php echo $this->e($total)?>)</h1>
|
||||
<?php if ($language):?>
|
||||
<p><?php echo $this->__('Filtered by language:')?> <span class="badge badge-secondary"><?php echo $this->e(\Friendica\Directory\Utils\L10n::localeToLanguageString($language)) ?></span> <a href="<?php echo $this->r('servers')?>"><?php echo $this->__('Clear language filter')?></a></p>
|
||||
<?php else:?>
|
||||
<?php echo $popularLanguages?>
|
||||
<?php endif;?>
|
||||
<nav aria-label="<?php echo $this->__('Top servers pagination')?>">
|
||||
<?php echo $this->fetch('sub/pager_full.phtml', $pager) ?>
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -41,10 +41,10 @@ $base_url_display = substr($base_url, strpos($base_url, '/') + 2);
|
|||
<i class="fa fa-heartbeat"></i> <?php echo $server['health_score'] ?>
|
||||
</span>
|
||||
<?php if ($server['language']):?>
|
||||
<span class="badge badge-secondary" title="<?php echo $this->__('Default Language')?>">
|
||||
<a href="<?php echo $this->r('servers', ['language' => $server['language']])?>" class="badge badge-secondary" title="<?php echo $this->__('Default Language')?>">
|
||||
<i class="fa fa-language" alt="<?php echo $this->__('Default Language')?>"></i>
|
||||
<?php echo $this->e(Friendica\Directory\Utils\L10n::localeToLanguageString($server['language'])) ?>
|
||||
</span>
|
||||
</a>
|
||||
<?php endif;?>
|
||||
<span class="badge badge-secondary" title="<?php echo $this->__('Known Users')?>">
|
||||
<i class="fa fa-user"></i>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue