app/controllers/UserController.php: adding activity action
This commit is contained in:
parent
3f99105588
commit
5890337179
2 changed files with 43 additions and 1 deletions
31
app/views/user/activity.volt
Normal file
31
app/views/user/activity.volt
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
<div class="section">
|
||||
|
||||
<h3>Activity Log</h3>
|
||||
|
||||
<table class="table table-condensed table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Ip</th>
|
||||
<th>Message</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for item in page.items %}
|
||||
<tr>
|
||||
<td>{{ item.getTimestamp() }}</td>
|
||||
<td>{{ item.getIp() }}</td>
|
||||
<td>{{ item.getMessage() }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<nav class="text-center" aria-label="Page navigation">
|
||||
{{ partial('pagination') }}
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in a new issue