summaryrefslogtreecommitdiff
path: root/resources/views/individual-page.phtml
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-10-10 20:00:38 +0100
committerGreg Roach <fisharebest@webtrees.net>2019-10-10 20:29:01 +0100
commit7adfb8e5bf629f97da1afaababed31941e6cc2a4 (patch)
treef6e8144d6dc2b13e84d480894d5cb0809f1f69e9 /resources/views/individual-page.phtml
parent3bf411f69e94737977ad5f3e90a85833f62d752b (diff)
downloadwebtrees-7adfb8e5bf629f97da1afaababed31941e6cc2a4.tar.gz
webtrees-7adfb8e5bf629f97da1afaababed31941e6cc2a4.tar.bz2
webtrees-7adfb8e5bf629f97da1afaababed31941e6cc2a4.zip
Working on routing
Diffstat (limited to 'resources/views/individual-page.phtml')
-rw-r--r--resources/views/individual-page.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/views/individual-page.phtml b/resources/views/individual-page.phtml
index 20f02b020b..ada8068cf0 100644
--- a/resources/views/individual-page.phtml
+++ b/resources/views/individual-page.phtml
@@ -22,7 +22,7 @@ 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" onclick="accept_changes(\'' . e($individual->xref()) . '\', \'' . e($individual->tree()->name()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($individual->xref()) . '\', \'' . e($individual->tree()->name()) . '\');">' . 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('accept-changes', ['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('reject-changes', ['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'),
]) ?>
<?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')]) ?>
@@ -31,7 +31,7 @@ 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 edited. You should review the changes and then %1$s or %2$s them.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($individual->xref()) . '\', \'' . e($individual->tree()->name()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($individual->xref()) . '\', \'' . e($individual->tree()->name()) . '\');">' . 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('accept-changes', ['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('reject-changes', ['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'),
]) ?>
<?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')]) ?>