補充資料
+Schema SQLs
+Schema SQLs
-{{ schema.id }}
-{{ schema.id }}
+適用題目:{{ - schema.questions - |sort - |map((question) => "\##{question.id}") - |join('、') - ?: '無' - }}
+適用題目:{{ schema.questions + |sort + |map((question) => "\##{question.id}") + |join('、') + ?: '無' }}
+
#{{ question.id }} {{ question.title }}
--- {{ question.difficulty|trans }}
- - {{ question.type }}
- -
+
+
-
- {{ this.solveState|trans }}
+ {% set solveState = this.solveState %}
+
+ {{ solveState|trans }}
-
+
+ {% set previousPage = this.previousPage %}
+ {% set nextPage = this.nextPage %}
+
diff --git a/templates/components/Challenge/ResultPresenterModule/AnswerPresenter.html.twig b/templates/components/Challenge/ResultPresenterModule/AnswerPresenter.html.twig
index 18a4584..c3e7cf1 100644
--- a/templates/components/Challenge/ResultPresenterModule/AnswerPresenter.html.twig
+++ b/templates/components/Challenge/ResultPresenterModule/AnswerPresenter.html.twig
@@ -1,4 +1,4 @@
-
+
{% if this.result %}
{% if not this.result.answer %}
{% if this.result.same %}
@@ -14,7 +14,8 @@
{% elseif this.error %}
- {{ this.error.property|trans }}:{{ this.error.message }}
+ {% set error = this.error %}
+ {{ error.property|trans }}:{{ error.message }}
{% else %}
diff --git a/templates/components/Challenge/ResultPresenterModule/DiffPresenter.html.twig b/templates/components/Challenge/ResultPresenterModule/DiffPresenter.html.twig
index 8581811..ee77b2c 100644
--- a/templates/components/Challenge/ResultPresenterModule/DiffPresenter.html.twig
+++ b/templates/components/Challenge/ResultPresenterModule/DiffPresenter.html.twig
@@ -1,6 +1,8 @@
- {% if this.diff != '' %}
- {{ this.diff|raw }}
+ {% set diff = this.diff %}
+
+ {% if diff %}
+ {{ diff|raw }}
#{{ question.id }} {{ question.title }}
++- {{ question.difficulty|trans }}
+ - {{ question.type }}
+ -
通過率
{% set passRate = this.passRate %}
-
{{ passRate.passRate }}%
@@ -15,24 +15,28 @@