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 %}