summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-07-02 22:36:22 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-07-02 22:36:22 +0100
commit8af8bd06be68bdb3bd3a55e3b7c071909e66e4fd (patch)
tree9653a39ec3838cab4e5270443efdb4f33ac729ea /resources
parent0d02e119c530a550b569ab625febe5555acfbaec (diff)
downloadwebtrees-8af8bd06be68bdb3bd3a55e3b7c071909e66e4fd.tar.gz
webtrees-8af8bd06be68bdb3bd3a55e3b7c071909e66e4fd.tar.bz2
webtrees-8af8bd06be68bdb3bd3a55e3b7c071909e66e4fd.zip
Fix: #1768 - cannot accept/reject all changes
Diffstat (limited to 'resources')
-rw-r--r--resources/views/source-page.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/source-page.php b/resources/views/source-page.php
index 746799c724..385762e812 100644
--- a/resources/views/source-page.php
+++ b/resources/views/source-page.php
@@ -14,7 +14,7 @@
<?php endif ?>
<?php elseif ($source->isPendingAddition()): ?>
<?php if (Auth::isModerator($source->getTree())): ?>
- <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate( 'This source 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($record->getXref()) . '\', \'' . e($record->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . $source->getXref() . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>' ) . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?>
+ <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate( 'This source 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($source->getXref()) . '\', \'' . e($source->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . $source->getXref() . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>' ) . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?>
<?php elseif (Auth::isEditor($source->getTree())): ?>
<?= view('alerts/warning-dissmissible', ['alert' => I18N::translate('This source has been edited. The changes need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?>
<?php endif ?>