summaryrefslogtreecommitdiff
path: root/app/Stats.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-07-20 16:06:33 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-07-20 16:31:35 +0100
commit210dfef2b733195f1b6bdc67fcfa8fed99e6bac4 (patch)
treea77ac7edb63159410d5f82dbaa65a699bed1591d /app/Stats.php
parent5d6a11b60ba68021cfe46f98a97cff6f010b6f12 (diff)
downloadwebtrees-210dfef2b733195f1b6bdc67fcfa8fed99e6bac4.tar.gz
webtrees-210dfef2b733195f1b6bdc67fcfa8fed99e6bac4.tar.bz2
webtrees-210dfef2b733195f1b6bdc67fcfa8fed99e6bac4.zip
Update fontawesome and start to refactor icons using views
Diffstat (limited to 'app/Stats.php')
-rw-r--r--app/Stats.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/app/Stats.php b/app/Stats.php
index 907e28b42a..acdf636b4e 100644
--- a/app/Stats.php
+++ b/app/Stats.php
@@ -6385,6 +6385,8 @@ class Stats
/**
* Who is currently logged in?
*
+ * @TODO - this is duplicated from the LoggedInUsersModule class.
+ *
* @param string $type
*
* @return string
@@ -6431,17 +6433,11 @@ class Stats
} else {
$content .= e($user->getRealName()) . ' - ' . e($user->getUserName());
}
- if (Auth::id() != $user->getUserId() && $user->getPreference('contactmethod') != 'none') {
+ if (Auth::id() !== $user->getUserId() && $user->getPreference('contactmethod') !== 'none') {
if ($type == 'list') {
$content .= '<br>';
}
- $content .= FontAwesome::linkIcon('email', I18N::translate('Send a message'), [
- 'class' => 'btn btn-link',
- 'href' => route('message', [
- 'to' => $user->getUserName(),
- 'ged' => $this->tree->getName(),
- ]),
- ]);
+ $content .= '<a href="' . e(route('message', ['to' => $user->getUserName(), 'ged' => $this->tree->getName()])) . '" class="btn btn-link" title="' . I18N::translate('Send a message') . '">' . view('icons/email') . '</a>';
}
if ($type == 'list') {
$content .= '</li>';