-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrated sessions page to controller (#3257)
- Loading branch information
Showing
17 changed files
with
437 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
58 changes: 31 additions & 27 deletions
58
phpmyfaq/assets/templates/admin/statistics/sessions.day.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> | ||
<h1 class="h2"> | ||
<i aria-hidden="true" class="bi bi-tasks"></i> | ||
{{ adminHeaderSessionsPerDay }} {{ currentDay }} | ||
</h1> | ||
</div> | ||
{% extends '@admin/index.twig' %} | ||
|
||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<table class="table table-striped align-middle"> | ||
<thead> | ||
<tr> | ||
<th>{{ msgIpAddress }}</th> | ||
<th>{{ msgSessionDate }}</th> | ||
<th>{{ msgSession }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for sid, data in sessionData %} | ||
<tr> | ||
<td>{{ data.ip }}</td> | ||
<td>{{ data.time | date }}</td> | ||
<td><a href="?action=viewsession&id={{ sid }}">{{ sid }}</a></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% block content %} | ||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> | ||
<h1 class="h2"> | ||
<i aria-hidden="true" class="bi bi-tasks"></i> | ||
{{ adminHeaderSessionsPerDay }} {{ currentDay }} | ||
</h1> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<table class="table table-striped align-middle"> | ||
<thead> | ||
<tr> | ||
<th>{{ msgIpAddress }}</th> | ||
<th>{{ msgSessionDate }}</th> | ||
<th>{{ msgSession }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for sid, data in sessionData %} | ||
<tr> | ||
<td>{{ data.ip }}</td> | ||
<td>{{ data.time | date }}</td> | ||
<td><a href="?action=viewsession&id={{ sid }}">{{ sid }}</a></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.