Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 54 additions & 58 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions templates/admin/email_template/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
<thead>
<tr>
<th><a href="#">範本名稱</a></th>
<th>動作</th>
<th class="actions-as-dropdown-table-head">
<span class="visually-hidden">動作</span>
</th>
</tr>
</thead>
<tbody>
{% for template in templates %}
<tr>
<td>{{ template }}</td>
<td><a class="btn" href="{{ ea_url().setRoute('admin_emailtemplate_details', {name: template}) }}">預覽</a></td>
<td data-label="範本名稱">{{ template }}</td>
<td class="actions"><a class="btn" href="{{ ea_url().setRoute('admin_emailtemplate_details', {name: template}) }}">預覽</a></td>
</tr>
{% endfor %}
</tbody>
Expand Down
6 changes: 3 additions & 3 deletions templates/admin/statistics/completed_questions.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
<tbody>
{% for user in userSolvedQuestionsCount %}
<tr>
<td><a href="{{ ea_url()
<td data-label="帳號"><a href="{{ ea_url()
.setController('App\\Controller\\Admin\\UserCrudController')
.setAction('detail')
.setEntityId(user.id) }}">{{ user.email }}</a></td>
<td>{{ user.solved_questions }}</td>
<td>{{ totalQuestions > 0 ? (user.solved_questions / totalQuestions * 100)|round(2) : 0 }}%</td>
<td data-label="完成題數">{{ user.solved_questions }}</td>
<td data-label="進度">{{ totalQuestions > 0 ? (user.solved_questions / totalQuestions * 100)|round(2) : 0 }}%</td>
</tr>
{% endfor %}
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions templates/admin/statistics/experience_points.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<tbody>
{% for user in usersWithPoints %}
<tr>
<td><a href="{{ ea_url()
<td data-label="帳號"><a href="{{ ea_url()
.setController('App\\Controller\\Admin\\UserCrudController')
.setAction('detail')
.setEntityId(user.id) }}">{{ user.email }}</a></td>
<td>{{ user.points }}</td>
<td data-label="經驗值">{{ user.points }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down
Loading
Loading