diff --git a/account/views.py b/account/views.py index c482aeae..2583f364 100644 --- a/account/views.py +++ b/account/views.py @@ -49,7 +49,7 @@ def logout(request): return http.HttpResponseRedirect("/") -def page_jump(request): +def index_page(request): if not request.user.is_authenticated(): return render(request, "oj/index.html") diff --git a/oj/urls.py b/oj/urls.py index e1908712..6d556fc6 100644 --- a/oj/urls.py +++ b/oj/urls.py @@ -25,7 +25,8 @@ from contest_submission.views import contest_problem_my_submissions_list_page urlpatterns = [ - url("^$", "account.views.page_jump", name="page_jump_api"), + url(r'^install/$', "install.views.install"), + url("^$", "account.views.index_page", name="index_page"), url(r'^docs/', include('rest_framework_swagger.urls')), url(r'^admin/$', TemplateView.as_view(template_name="admin/admin.html"), name="admin_spa_page"), url(r'^admin/contest/$', TemplateView.as_view(template_name="admin/contest/add_contest.html"), diff --git a/static/src/css/global.css b/static/src/css/global.css index 3eebd701..0e7d3579 100644 --- a/static/src/css/global.css +++ b/static/src/css/global.css @@ -43,3 +43,8 @@ pre { font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; background-color: white; } + +.CodeMirror-code{ + font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; + background-color: white; +} diff --git a/template/src/oj/account/change_password.html b/template/src/oj/account/change_password.html index 0ed8fdc0..d69357fb 100644 --- a/template/src/oj/account/change_password.html +++ b/template/src/oj/account/change_password.html @@ -1,4 +1,7 @@ {% extends "oj_base.html" %} +{% block title %} + 用户修改密码 +{% endblock %} {% block body %}
diff --git a/template/src/oj/account/login.html b/template/src/oj/account/login.html index b09b0f1a..f92142be 100644 --- a/template/src/oj/account/login.html +++ b/template/src/oj/account/login.html @@ -1,4 +1,7 @@ {% extends "oj_base.html" %} +{% block title %} + 用户登录 +{% endblock %} {% block body %}
diff --git a/template/src/oj/account/register.html b/template/src/oj/account/register.html index ccb09022..a5e95e95 100644 --- a/template/src/oj/account/register.html +++ b/template/src/oj/account/register.html @@ -1,4 +1,7 @@ {% extends "oj_base.html" %} +{% block title %} + 用户注册 +{% endblock %} {% block body %}
diff --git a/template/src/oj/announcement/announcement.html b/template/src/oj/announcement/announcement.html index c2f84300..2ce84a19 100644 --- a/template/src/oj/announcement/announcement.html +++ b/template/src/oj/announcement/announcement.html @@ -1,5 +1,7 @@ {% extends "oj_base.html" %} - +{% block title %} + {{ announcement.title }} +{% endblock %} {% block body %}

{{ announcement.title }}

diff --git a/template/src/oj/contest/contest_index.html b/template/src/oj/contest/contest_index.html index 7d32910f..7b977a03 100644 --- a/template/src/oj/contest/contest_index.html +++ b/template/src/oj/contest/contest_index.html @@ -1,5 +1,7 @@ {% extends 'oj_base.html' %} - +{% block title %} + {{ contest.title }} +{% endblock %} {% block body %}