summaryrefslogtreecommitdiff
path: root/resources/views/individual-page.phtml
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-12-06 14:56:55 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-12-07 09:02:29 +0000
commit0973b4d2a5f3531c82ebbf8b05182471efe5edad (patch)
treef818703e3cd935dbc5f42bc94e15e137238fd6b8 /resources/views/individual-page.phtml
parentcbebe65f93a20d60122fc7119268c45fbfd57c0e (diff)
downloadwebtrees-0973b4d2a5f3531c82ebbf8b05182471efe5edad.tar.gz
webtrees-0973b4d2a5f3531c82ebbf8b05182471efe5edad.tar.bz2
webtrees-0973b4d2a5f3531c82ebbf8b05182471efe5edad.zip
Replace help-link function with template #1584
Diffstat (limited to 'resources/views/individual-page.phtml')
-rw-r--r--resources/views/individual-page.phtml9
1 files changed, 4 insertions, 5 deletions
diff --git a/resources/views/individual-page.phtml b/resources/views/individual-page.phtml
index 68c6c68700..a9e8421fa7 100644
--- a/resources/views/individual-page.phtml
+++ b/resources/views/individual-page.phtml
@@ -1,7 +1,6 @@
<?php
use Fisharebest\Webtrees\Auth;
-use Fisharebest\Webtrees\Functions\FunctionsPrint;
use Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact;
use Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptRecord;
use Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectRecord;
@@ -26,19 +25,19 @@ use Illuminate\Support\Collection;
<?php if (Auth::isModerator($individual->tree())) : ?>
<?= view('components/alert-warning-dismissible', [
'alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */
- I18N::translate('This individual has been deleted. You should review the deletion and then %1$s or %2$s it.', '<a href="#" class="alert-link" data-post-url="' . e(route(PendingChangesAcceptRecord::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) . '">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" class="alert-link" data-post-url="' . e(route(PendingChangesRejectRecord::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) . '">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes'),
+ I18N::translate('This individual has been deleted. You should review the deletion and then %1$s or %2$s it.', '<a href="#" class="alert-link" data-post-url="' . e(route(PendingChangesAcceptRecord::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) . '">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" class="alert-link" data-post-url="' . e(route(PendingChangesRejectRecord::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) . '">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '</a>') . ' ' . view('help/link', ['topic' => 'pending_changes']),
]) ?>
<?php elseif (Auth::isEditor($individual->tree())) : ?>
- <?= view('components/alert-warning-dismissible', ['alert' => I18N::translate('This individual has been deleted. The deletion will need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?>
+ <?= view('components/alert-warning-dismissible', ['alert' => I18N::translate('This individual has been deleted. The deletion will need to be reviewed by a moderator.') . ' ' . view('help/link', ['topic' => 'pending_changes'])]) ?>
<?php endif ?>
<?php elseif ($individual->isPendingAddition()) : ?>
<?php if (Auth::isModerator($individual->tree())) : ?>
<?= view('components/alert-warning-dismissible', [
'alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */
- I18N::translate('This individual has been edited. You should review the changes and then %1$s or %2$s them.', '<a href="#" class="alert-link" data-post-url="' . e(route(PendingChangesAcceptRecord::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) . '">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" data-post-url="' . e(route(PendingChangesRejectRecord::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) . '">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes'),
+ I18N::translate('This individual has been edited. You should review the changes and then %1$s or %2$s them.', '<a href="#" class="alert-link" data-post-url="' . e(route(PendingChangesAcceptRecord::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) . '">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" data-post-url="' . e(route(PendingChangesRejectRecord::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) . '">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>') . ' ' . view('help/link', ['topic' => 'pending_changes']),
]) ?>
<?php elseif (Auth::isEditor($individual->tree())) : ?>
- <?= view('components/alert-warning-dismissible', ['alert' => I18N::translate('This individual has been edited. The changes need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?>
+ <?= view('components/alert-warning-dismissible', ['alert' => I18N::translate('This individual has been edited. The changes need to be reviewed by a moderator.') . ' ' . view('help/link', ['topic' => 'pending_changes'])]) ?>
<?php endif ?>
<?php endif ?>