Skip to content

Commit

Permalink
Implementa os logs de acesso na gestão de usuários (Ref.: #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul-vlb committed Aug 15, 2024
1 parent 06af30f commit a121aff
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ function _init()
}
});

$app->hook('template(panel.user-detail.management-properties):after', function() {
$this->part( 'blame/user-blame', []);
});

$app->hook('GET(panel.blame)', function() use($app) {
$this->requireAuthentication();
$this->render('blame-system', []);
Expand Down
19 changes: 19 additions & 0 deletions layouts/parts/blame/user-blame.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
use MapasCulturais\i;
$this->import('
blame-table
');
?>

<?php $this->applyTemplateHook('blame', 'before') ?>
<div class="user-management__properties">
<?php $this->applyTemplateHook('blame', 'begin') ?>
<h3 class="user-management__properties-label">
<?= i::__('Logs do usuário') ?>
</h3>

<blame-table :user-id="entity.id"></blame-table>

<?php $this->applyTemplateHook('blame', 'end') ?>
</div>
<?php $this->applyTemplateHook('blame', 'after') ?>

0 comments on commit a121aff

Please sign in to comment.