-
-
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: move session view to twig (#2791)
- Loading branch information
1 parent
5ccab23
commit 69dcc9a
Showing
3 changed files
with
80 additions
and
68 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
43 changes: 43 additions & 0 deletions
43
phpmyfaq/assets/templates/admin/statistics/statistics.show.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,43 @@ | ||
<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"> | ||
<tfoot> | ||
<tr> | ||
<td colspan="2"><a href="?action=viewsessions">{{ ad_sess_back }}</a></td> | ||
</tr> | ||
</tfoot> | ||
<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> | ||
</table> |