Skip to content

Commit 8814d37

Browse files
committed
add Tool Learning Part
1 parent 01c6d11 commit 8814d37

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

dojo_plugin/pages/dojos.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def listing():
3131
user = get_current_user()
3232
typed_dojos = {
3333
"Start Here": [],
34+
"Tools Learning": [],
3435
"Elementary": [],
3536
"Intermediate": [],
3637
"Advanced": [],
@@ -42,6 +43,8 @@ def listing():
4243
for dojo in Dojos.viewable(user=user):
4344
if dojo.type == "welcome":
4445
typed_dojos["Start Here"].append(dojo)
46+
elif dojo.type == "tools":
47+
typed_dojos["Tools Learning"].append(dojo)
4548
elif dojo.type == "elementary":
4649
typed_dojos["Elementary"].append(dojo)
4750
elif dojo.type == "intermediate":

dojo_theme/templates/dojos.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ <h1>神奇宝贝道馆</h1>
1616
{% if type == "Start Here" %}
1717
<h2>入门篇</h2>
1818
<p>在开展神奇宝贝道馆挑战前,新手训练家们需要在真新镇的大木博士研究所获得初始神奇宝贝,神奇宝贝图鉴,神奇宝贝球等物资。</p>
19+
{% elif type == "Tools Learning" %}
20+
<h2>工具篇</h2>
21+
<p>工欲善其事必先利其器。我们提供了多种新手训练家门需要的工具学习课程,例如如何使用神器宝贝图鉴,如何使用神奇宝贝球,如何收服神奇宝贝等。</p>
22+
{% elif type == "Course" %}
23+
<h2>课程</h2>
24+
<p>我们在平台上提供了众多课程,包含软件安全。</p>
1925
{% elif type == "Elementary" %}
2026
<h2>初级篇</h2>
2127
<p>深灰道馆,华蓝道馆构成了 pwn.hust.college 平台初级篇的主要课程内容,完成关卡后你可以获得<a href="{{ url_for("pwncollege_belts.view_belts") }}">徽章</a>奖励。建议按照顺序进行学习,祝你好运!</p>
@@ -25,9 +31,6 @@ <h2>中级篇</h2>
2531
{% elif type == "Advanced" %}
2632
<h2>高级篇</h2>
2733
<p> 神奇宝贝联盟大会 </p>
28-
{% elif type == "Course" %}
29-
<h2>课程</h2>
30-
<p>我们在平台上提供了众多课程,包含软件安全。</p>
3134
{% elif type == "Archive" %}
3235
<h2>归档</h2>
3336
<p>历史课程</p>

0 commit comments

Comments
 (0)