-
-
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 single session page to controller (#3257)
- Loading branch information
Showing
17 changed files
with
129 additions
and
124 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 was deleted.
Oops, something went wrong.
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
47 changes: 47 additions & 0 deletions
47
phpmyfaq/assets/templates/admin/statistics/sessions.session.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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{% extends '@admin/index.twig' %} | ||
|
||
{% 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-clock-history"></i> | ||
{{ ad_sess_session }} #{{ sessionId }} | ||
</h1> | ||
</div> | ||
<table class="table table-striped align-middle border shadow"> | ||
<tbody> | ||
{% set num = 0 %} | ||
{% for line in trackingData %} | ||
{% set data = line|split(';') %} | ||
{% if data.0 == sessionId %} | ||
{% set num = num + 1 %} | ||
<tr> | ||
<td>{{ data.7|date('Y-m-d H:i:s') }}</td> | ||
<td>{{ data.1 }} ({{ data.2 }})</td> | ||
</tr> | ||
{% if num == 1 %} | ||
<tr> | ||
<td>{{ ad_sess_referer }}:</td> | ||
<td> | ||
{% set temp = data.5|replace({'?': '? '}) %} | ||
{{ temp|escape }} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>{{ ad_sess_browser }}:</td> | ||
<td>{{ data.6|escape }}</td> | ||
</tr> | ||
<tr> | ||
<td>{{ ad_sess_ip }}:</td> | ||
<td>{{ data.3|escape }}</td> | ||
</tr> | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<td colspan="2"><a href="./statistics/sessions/{{ thisDay }}">{{ ad_sess_back }}</a></td> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
{% endblock %} |
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
43 changes: 0 additions & 43 deletions
43
phpmyfaq/assets/templates/admin/statistics/statistics.show.twig
This file was deleted.
Oops, something went wrong.
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 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
Oops, something went wrong.