diff --git a/dojo_plugin/pages/course.py b/dojo_plugin/pages/course.py index d9d8b20ce..548014bee 100644 --- a/dojo_plugin/pages/course.py +++ b/dojo_plugin/pages/course.py @@ -236,22 +236,10 @@ def view_course(dojo, resource=None): identity = dict(identity_name=dojo.course.get("student_id", "Identity"), identity_value=student.token if student else None) - setup = {} - setup["create_account"] = "complete" if user else "incomplete" - setup["link_student"] = ( - "incomplete" if not student else - "unknown" if not student.official else - "complete" - ) - - setup_complete = all(status == "complete" for status in setup.values()) - return render_template("course.html", name=name, **grades, **identity, - **setup, - setup_complete=setup_complete, user=user, dojo=dojo) diff --git a/dojo_theme/templates/course.html b/dojo_theme/templates/course.html index 3824b580a..7f112d317 100644 --- a/dojo_theme/templates/course.html +++ b/dojo_theme/templates/course.html @@ -30,18 +30,17 @@ {% block content %}
-

Course

+

课程

@@ -62,11 +61,11 @@

{{ name }} current grade in the class: {{ lette - - - - - + + + + + @@ -94,7 +93,7 @@

{{ name }} current grade in the class: {{ lette
- This will be shared with the admins of this dojo. + 这将共享给本道馆的所有管理员。
@@ -108,18 +107,6 @@

{{ name }} current grade in the class: {{ lette {% endif %} -
-
    - - -
- {% if setup_complete %} -

Setup complete!

- {% else %} -

Setup incomplete.

- {% endif %} -

-
diff --git a/dojo_theme/templates/dojos.html b/dojo_theme/templates/dojos.html index 34b2a2572..ac8e26c99 100644 --- a/dojo_theme/templates/dojos.html +++ b/dojo_theme/templates/dojos.html @@ -7,7 +7,7 @@

神奇宝贝道馆

- 为了获得神奇宝贝联盟大会的参赛资格,同学们需要在 pwn.hust.college 上挑战各个城市的神奇宝贝道馆,只有战胜馆主大家才能获得相应的道馆徽章。 + 怀揣着成为神奇宝贝大师的梦想,新手训练家们将要开展自己的旅程,在 pwn.hust.college 平台上挑战各个城市的神奇宝贝道馆,战胜馆主后获得 8 枚道馆徽章,并获得神奇宝贝联盟大会的参赛资格。

@@ -15,7 +15,7 @@

神奇宝贝道馆

{% for type, dojos in typed_dojos.items() %} {% if type == "Start Here" %}

入门篇

-

在开展神奇宝贝道馆挑战前,神奇宝贝需要在真新镇的大木博士研究所获得初始神奇宝贝,神奇宝贝图鉴,神奇宝贝球。

+

在开展神奇宝贝道馆挑战前,新手训练家们需要在真新镇的大木博士研究所获得初始神奇宝贝,神奇宝贝图鉴,神奇宝贝球等物资。

{% elif type == "Elementary" %}

初级篇

深灰道馆,华蓝道馆构成了 pwn.hust.college 平台初级篇的主要课程内容,完成关卡后你可以获得徽章奖励。建议按照顺序进行学习,祝你好运!

@@ -25,8 +25,9 @@

中级篇

{% elif type == "Advanced" %}

高级篇

神奇宝贝联盟大会

- + {% elif type == "Course" %} +

课程

+

我们在平台上提供了众多课程,包含软件安全。

{% endif %}
    {% for dojo in dojos %}

NameDateWeightProgressCredit姓名日期权重进度学分