Add about page
This commit is contained in:
parent
21f1035b66
commit
6b92b23b4f
@ -28,6 +28,10 @@ def create_app(test_config=None):
|
|||||||
def index():
|
def index():
|
||||||
return render_template("index.html")
|
return render_template("index.html")
|
||||||
|
|
||||||
|
@app.route("/about")
|
||||||
|
def about_page():
|
||||||
|
return render_template("about.html")
|
||||||
|
|
||||||
@app.route("/options")
|
@app.route("/options")
|
||||||
@login_required
|
@login_required
|
||||||
def options():
|
def options():
|
||||||
|
@ -14,7 +14,11 @@ EXISTING_STRINGS = {
|
|||||||
"include_kanji",
|
"include_kanji",
|
||||||
"include_kotoba",
|
"include_kotoba",
|
||||||
"username_required",
|
"username_required",
|
||||||
"password_required"
|
"password_required",
|
||||||
|
"incorrect_username",
|
||||||
|
"incorrect_password"
|
||||||
|
"about",
|
||||||
|
"about-para"
|
||||||
}
|
}
|
||||||
|
|
||||||
ENGLISH = {
|
ENGLISH = {
|
||||||
@ -35,7 +39,10 @@ ENGLISH = {
|
|||||||
"username_required": "Username required.",
|
"username_required": "Username required.",
|
||||||
"password_required": "Password required.",
|
"password_required": "Password required.",
|
||||||
"incorrect_username": "Incorrect username.",
|
"incorrect_username": "Incorrect username.",
|
||||||
"incorrect_password": "Incorrect password."
|
"incorrect_password": "Incorrect password.",
|
||||||
|
"about": "About KankenOnline",
|
||||||
|
"about-para": "KankenOnline is a website seeking to provide resources to pass the Kanji Kentei level 1 exam. You can search through the approximately 6,300 characters included in Kanken, as well as generate a number of study materials automatically. For example, you can generate a PDF-format exam resembling the Kanken level 1 exam, which has the goal of mirroring the real thing as closely as possible for your preparation. Additionally, a variety of information about kanji is provided, among which phonetic series, rimes/kanji phonology, radicals, inseparable kanji, character origins and etymologies."
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
JAPANESE = {
|
JAPANESE = {
|
||||||
@ -56,7 +63,9 @@ JAPANESE = {
|
|||||||
"username_required": "ユーザー名が必要です",
|
"username_required": "ユーザー名が必要です",
|
||||||
"password_required": "パスワードが必要です",
|
"password_required": "パスワードが必要です",
|
||||||
"incorrect_username": "ユーザー名が違います",
|
"incorrect_username": "ユーザー名が違います",
|
||||||
"incorrect_password": "パスワードが違います"
|
"incorrect_password": "パスワードが違います",
|
||||||
|
"about": "漢検オンラインとは",
|
||||||
|
"about-para": "漢検オンラインとは、漢検一級合格を目当てにした資料を供用しているサイトです。ここで漢検のやく6300字を検索でき、いろんな勉強材を自動的に作ることができます。たとえば、漢検一級模様の試験PDFを作ることができて、本物の漢検試験に大抵該当することが目的です。さらに、色々漢字についての情報を取り集めております。諧声域(かいせいいき)・音韻学・部首・不可分漢字・字源・語源などがその内です。"
|
||||||
}
|
}
|
||||||
|
|
||||||
LANGUAGES = [
|
LANGUAGES = [
|
||||||
|
9
kanken_online/templates/about.html
Normal file
9
kanken_online/templates/about.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
|
{% block header %}
|
||||||
|
<h1>{% block title %}{{ localize("about") }}{% endblock %}</h1>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{{ localize("about-para") }}
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user