Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 33f221f

Browse files
committed
fix(admin): No headers and wrong action layout in mobile
1 parent fd82d13 commit 33f221f

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

templates/admin/email_template/index.html.twig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
<thead>
88
<tr>
99
<th><a href="#">範本名稱</a></th>
10-
<th>動作</th>
10+
<th class="actions-as-dropdown-table-head">
11+
<span class="visually-hidden">動作</span>
12+
</th>
1113
</tr>
1214
</thead>
1315
<tbody>
1416
{% for template in templates %}
1517
<tr>
16-
<td>{{ template }}</td>
17-
<td><a class="btn" href="{{ ea_url().setRoute('admin_emailtemplate_details', {name: template}) }}">預覽</a></td>
18+
<td data-label="範本名稱">{{ template }}</td>
19+
<td class="actions"><a class="btn" href="{{ ea_url().setRoute('admin_emailtemplate_details', {name: template}) }}">預覽</a></td>
1820
</tr>
1921
{% endfor %}
2022
</tbody>

templates/admin/statistics/completed_questions.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
<tbody>
1515
{% for user in userSolvedQuestionsCount %}
1616
<tr>
17-
<td><a href="{{ ea_url()
17+
<td data-label="帳號"><a href="{{ ea_url()
1818
.setController('App\\Controller\\Admin\\UserCrudController')
1919
.setAction('detail')
2020
.setEntityId(user.id) }}">{{ user.email }}</a></td>
21-
<td>{{ user.solved_questions }}</td>
22-
<td>{{ totalQuestions > 0 ? (user.solved_questions / totalQuestions * 100)|round(2) : 0 }}%</td>
21+
<td data-label="完成題數">{{ user.solved_questions }}</td>
22+
<td data-label="進度">{{ totalQuestions > 0 ? (user.solved_questions / totalQuestions * 100)|round(2) : 0 }}%</td>
2323
</tr>
2424
{% endfor %}
2525
</tbody>

templates/admin/statistics/experience_points.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<tbody>
1414
{% for user in usersWithPoints %}
1515
<tr>
16-
<td><a href="{{ ea_url()
16+
<td data-label="帳號"><a href="{{ ea_url()
1717
.setController('App\\Controller\\Admin\\UserCrudController')
1818
.setAction('detail')
1919
.setEntityId(user.id) }}">{{ user.email }}</a></td>
20-
<td>{{ user.points }}</td>
20+
<td data-label="經驗值">{{ user.points }}</td>
2121
</tr>
2222
{% endfor %}
2323
</tbody>

templates/admin/statistics/last_login_at.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
<tbody>
1515
{% for result in results %}
1616
<tr>
17-
<td><a href="{{ ea_url()
17+
<td data-label="帳號"><a href="{{ ea_url()
1818
.setController('App\\Controller\\Admin\\UserCrudController')
1919
.setAction('detail')
2020
.setEntityId(result.id) }}">{{ result.email }}</a></td>
21-
<td>{{ result.last_login_at ?? '沒登入過' }}</td>
22-
<td>{{ result.recency ?? 'N/A' }}</td>
21+
<td data-label="最近登入時間">{{ result.last_login_at ?? '沒登入過' }}</td>
22+
<td data-label="距今天數">{{ result.recency ?? 'N/A' }}</td>
2323
</tr>
2424
{% endfor %}
2525
</tbody>

0 commit comments

Comments
 (0)