Merge pull request 'Move Visit server link to server name' (#103) from MrPetovan/friendica-directory:enhancement/100-move-visit-server-link into stable

Reviewed-on: #103
This commit is contained in:
Tobias Diekershoff 2024-03-07 15:48:26 +01:00
commit 4524ad166b

View file

@ -26,7 +26,10 @@ $base_url_display = substr($base_url, strpos($base_url, '/') + 2);
<div class="card mr-2 mb-2 bg-light" id="server-card-<?php echo $server['id'] ?>"> <div class="card mr-2 mb-2 bg-light" id="server-card-<?php echo $server['id'] ?>">
<div class="card-body"> <div class="card-body">
<h5 class="card-title"> <h5 class="card-title">
<a href="<?php echo $this->escapeHtmlAttr($this->u($base_url)); ?>" target="_blank" title="<?php echo $this->__('Visit Server')?>">
<?php echo $this->e($server['name']); ?> <?php echo $this->e($server['name']); ?>
<i class="fa fa-external-link-alt"></i>
</a>
</h5> </h5>
<h6 class="card-subtitle mb-2 text-muted"> <h6 class="card-subtitle mb-2 text-muted">
<?php if ($server['ssl_state']): ?> <?php if ($server['ssl_state']): ?>
@ -75,8 +78,6 @@ $base_url_display = substr($base_url, strpos($base_url, '/') + 2);
<?php else: ?> <?php else: ?>
<p class="card-text text-muted">&lt;<?php echo $this->__('No description provided')?>&gt;</p> <p class="card-text text-muted">&lt;<?php echo $this->__('No description provided')?>&gt;</p>
<?php endif; ?> <?php endif; ?>
<a href="<?php echo $this->escapeHtmlAttr($this->u($base_url)); ?>" class="card-link btn btn-primary"><i class="fa fa-external-link-alt"></i>
<?php echo $this->__('Visit Server')?></a>
</div> </div>
</div> </div>
<?php /* <?php /*