ConfigController: provide quick filter showing...

...own changes in the activity log

refs #13809
This commit is contained in:
Thomas Gelf 2016-12-28 12:39:13 +01:00
parent 6800d2cbd2
commit 935db47a81
1 changed files with 9 additions and 1 deletions

View File

@ -118,8 +118,16 @@ class ConfigController extends ActionController
$lastDeployedId = $this->db()->getLastDeploymentActivityLogId();
$this->prepareTable('activityLog');
$this->view->table->setLastDeployedId($lastDeployedId);
$this->view->addLink = $this->view->qlink(
$this->translate('My changes'),
$this->getRequest()->getUrl()
->with('author', $this->Auth()->getUser()->getUsername())
->without('page'),
null,
array('class' => 'icon-user', 'data-base-target' => '_self')
);
if ($this->hasPermission('director/deploy')) {
$this->view->addLink = $this
$this->view->addLink .= $this
->loadForm('DeployConfig')
->setDb($this->db())
->setApi($this->api())