Skip to content

Commit

Permalink
add Tool Learning Part
Browse files Browse the repository at this point in the history
  • Loading branch information
mudongliang committed May 16, 2024
1 parent 01c6d11 commit 8814d37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions dojo_plugin/pages/dojos.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def listing():
user = get_current_user()
typed_dojos = {
"Start Here": [],
"Tools Learning": [],
"Elementary": [],
"Intermediate": [],
"Advanced": [],
Expand All @@ -42,6 +43,8 @@ def listing():
for dojo in Dojos.viewable(user=user):
if dojo.type == "welcome":
typed_dojos["Start Here"].append(dojo)
elif dojo.type == "tools":
typed_dojos["Tools Learning"].append(dojo)
elif dojo.type == "elementary":
typed_dojos["Elementary"].append(dojo)
elif dojo.type == "intermediate":
Expand Down
9 changes: 6 additions & 3 deletions dojo_theme/templates/dojos.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ <h1>神奇宝贝道馆</h1>
{% if type == "Start Here" %}
<h2>入门篇</h2>
<p>在开展神奇宝贝道馆挑战前,新手训练家们需要在真新镇的大木博士研究所获得初始神奇宝贝,神奇宝贝图鉴,神奇宝贝球等物资。</p>
{% elif type == "Tools Learning" %}
<h2>工具篇</h2>
<p>工欲善其事必先利其器。我们提供了多种新手训练家门需要的工具学习课程,例如如何使用神器宝贝图鉴,如何使用神奇宝贝球,如何收服神奇宝贝等。</p>
{% elif type == "Course" %}
<h2>课程</h2>
<p>我们在平台上提供了众多课程,包含软件安全。</p>
{% elif type == "Elementary" %}
<h2>初级篇</h2>
<p>深灰道馆,华蓝道馆构成了 pwn.hust.college 平台初级篇的主要课程内容,完成关卡后你可以获得<a href="{{ url_for("pwncollege_belts.view_belts") }}">徽章</a>奖励。建议按照顺序进行学习,祝你好运!</p>
Expand All @@ -25,9 +31,6 @@ <h2>中级篇</h2>
{% elif type == "Advanced" %}
<h2>高级篇</h2>
<p> 神奇宝贝联盟大会 </p>
{% elif type == "Course" %}
<h2>课程</h2>
<p>我们在平台上提供了众多课程,包含软件安全。</p>
{% elif type == "Archive" %}
<h2>归档</h2>
<p>历史课程</p>
Expand Down

0 comments on commit 8814d37

Please sign in to comment.