Small UI improvements
This commit is contained in:
parent
37e5e6a3b3
commit
164a712902
6 changed files with 74 additions and 55 deletions
|
@ -2,7 +2,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: lqdoj2\n"
|
"Project-Id-Version: lqdoj2\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2023-08-24 10:09+0700\n"
|
"POT-Creation-Date: 2023-08-24 23:09+0700\n"
|
||||||
"PO-Revision-Date: 2021-07-20 03:44\n"
|
"PO-Revision-Date: 2021-07-20 03:44\n"
|
||||||
"Last-Translator: Icyene\n"
|
"Last-Translator: Icyene\n"
|
||||||
"Language-Team: Vietnamese\n"
|
"Language-Team: Vietnamese\n"
|
||||||
|
@ -160,7 +160,7 @@ msgstr "Tính toán lại kết quả"
|
||||||
msgid "username"
|
msgid "username"
|
||||||
msgstr "tên đăng nhập"
|
msgstr "tên đăng nhập"
|
||||||
|
|
||||||
#: judge/admin/contest.py:503 templates/base.html:317
|
#: judge/admin/contest.py:503 templates/base.html:331
|
||||||
msgid "virtual"
|
msgid "virtual"
|
||||||
msgstr "ảo"
|
msgstr "ảo"
|
||||||
|
|
||||||
|
@ -467,73 +467,73 @@ msgstr ""
|
||||||
msgid "New IOI"
|
msgid "New IOI"
|
||||||
msgstr "IOI mới"
|
msgstr "IOI mới"
|
||||||
|
|
||||||
#: judge/forms.py:112
|
#: judge/forms.py:113
|
||||||
msgid "File size exceeds the maximum allowed limit of 5MB."
|
msgid "File size exceeds the maximum allowed limit of 5MB."
|
||||||
msgstr "File tải lên không được quá 5MB."
|
msgstr "File tải lên không được quá 5MB."
|
||||||
|
|
||||||
#: judge/forms.py:142
|
#: judge/forms.py:144
|
||||||
msgid "Any judge"
|
msgid "Any judge"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: judge/forms.py:348
|
#: judge/forms.py:350
|
||||||
msgid "Enter usernames separating by space"
|
msgid "Enter usernames separating by space"
|
||||||
msgstr "Nhập các tên đăng nhập, cách nhau bởi dấu cách"
|
msgstr "Nhập các tên đăng nhập, cách nhau bởi dấu cách"
|
||||||
|
|
||||||
#: judge/forms.py:349 judge/views/stats.py:166 templates/stats/site.html:27
|
#: judge/forms.py:351 judge/views/stats.py:166 templates/stats/site.html:27
|
||||||
msgid "New users"
|
msgid "New users"
|
||||||
msgstr "Thành viên mới"
|
msgstr "Thành viên mới"
|
||||||
|
|
||||||
#: judge/forms.py:366
|
#: judge/forms.py:368
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "These usernames don't exist: {usernames}"
|
msgid "These usernames don't exist: {usernames}"
|
||||||
msgstr "Các tên đăng nhập này không tồn tại: {usernames}"
|
msgstr "Các tên đăng nhập này không tồn tại: {usernames}"
|
||||||
|
|
||||||
#: judge/forms.py:425 judge/views/register.py:30
|
#: judge/forms.py:427 judge/views/register.py:30
|
||||||
#: templates/registration/registration_form.html:34
|
#: templates/registration/registration_form.html:34
|
||||||
#: templates/user/base-users-table.html:5
|
#: templates/user/base-users-table.html:5
|
||||||
#: templates/user/import/table_csv.html:4
|
#: templates/user/import/table_csv.html:4
|
||||||
msgid "Username"
|
msgid "Username"
|
||||||
msgstr "Tên đăng nhập"
|
msgstr "Tên đăng nhập"
|
||||||
|
|
||||||
#: judge/forms.py:426 templates/registration/registration_form.html:46
|
#: judge/forms.py:428 templates/registration/registration_form.html:46
|
||||||
#: templates/registration/registration_form.html:60
|
#: templates/registration/registration_form.html:60
|
||||||
#: templates/user/import/table_csv.html:5
|
#: templates/user/import/table_csv.html:5
|
||||||
msgid "Password"
|
msgid "Password"
|
||||||
msgstr "Mật khẩu"
|
msgstr "Mật khẩu"
|
||||||
|
|
||||||
#: judge/forms.py:452
|
#: judge/forms.py:454
|
||||||
msgid "Two Factor Authentication tokens must be 6 decimal digits."
|
msgid "Two Factor Authentication tokens must be 6 decimal digits."
|
||||||
msgstr "Two Factor Authentication phải chứa 6 chữ số."
|
msgstr "Two Factor Authentication phải chứa 6 chữ số."
|
||||||
|
|
||||||
#: judge/forms.py:465 templates/registration/totp_auth.html:32
|
#: judge/forms.py:467 templates/registration/totp_auth.html:32
|
||||||
msgid "Invalid Two Factor Authentication token."
|
msgid "Invalid Two Factor Authentication token."
|
||||||
msgstr "Token Two Factor Authentication không hợp lệ."
|
msgstr "Token Two Factor Authentication không hợp lệ."
|
||||||
|
|
||||||
#: judge/forms.py:472 judge/models/problem.py:133
|
#: judge/forms.py:474 judge/models/problem.py:133
|
||||||
msgid "Problem code must be ^[a-z0-9]+$"
|
msgid "Problem code must be ^[a-z0-9]+$"
|
||||||
msgstr "Mã bài phải có dạng ^[a-z0-9]+$"
|
msgstr "Mã bài phải có dạng ^[a-z0-9]+$"
|
||||||
|
|
||||||
#: judge/forms.py:479
|
#: judge/forms.py:481
|
||||||
msgid "Problem with code already exists."
|
msgid "Problem with code already exists."
|
||||||
msgstr "Mã bài đã tồn tại."
|
msgstr "Mã bài đã tồn tại."
|
||||||
|
|
||||||
#: judge/forms.py:486 judge/models/contest.py:93
|
#: judge/forms.py:488 judge/models/contest.py:93
|
||||||
msgid "Contest id must be ^[a-z0-9]+$"
|
msgid "Contest id must be ^[a-z0-9]+$"
|
||||||
msgstr "Mã kỳ thi phải có dạng ^[a-z0-9]+$"
|
msgstr "Mã kỳ thi phải có dạng ^[a-z0-9]+$"
|
||||||
|
|
||||||
#: judge/forms.py:493 templates/problem/search-form.html:46
|
#: judge/forms.py:495 templates/problem/search-form.html:46
|
||||||
msgid "Group"
|
msgid "Group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: judge/forms.py:501
|
#: judge/forms.py:503
|
||||||
msgid "Contest with key already exists."
|
msgid "Contest with key already exists."
|
||||||
msgstr "Mã kỳ thi đã tồn tại."
|
msgstr "Mã kỳ thi đã tồn tại."
|
||||||
|
|
||||||
#: judge/forms.py:509
|
#: judge/forms.py:511
|
||||||
msgid "Group doesn't exist."
|
msgid "Group doesn't exist."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: judge/forms.py:511
|
#: judge/forms.py:513
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#| msgid "You do not have the permission to rejudge submissions."
|
#| msgid "You do not have the permission to rejudge submissions."
|
||||||
msgid "You don't have permission in this group."
|
msgid "You don't have permission in this group."
|
||||||
|
@ -3248,8 +3248,8 @@ msgstr "Thống kê ngôn ngữ"
|
||||||
msgid "Submissions"
|
msgid "Submissions"
|
||||||
msgstr "Bài nộp"
|
msgstr "Bài nộp"
|
||||||
|
|
||||||
#: judge/views/stats.py:160 templates/blog/list.html:45
|
#: judge/views/stats.py:160 templates/comments/list.html:4
|
||||||
#: templates/comments/list.html:4 templates/stats/site.html:39
|
#: templates/stats/site.html:39
|
||||||
msgid "Comments"
|
msgid "Comments"
|
||||||
msgstr "Bình luận"
|
msgstr "Bình luận"
|
||||||
|
|
||||||
|
@ -3430,22 +3430,22 @@ msgstr "j M, Y"
|
||||||
msgid "M j, Y, G:i"
|
msgid "M j, Y, G:i"
|
||||||
msgstr "j M, Y, G:i"
|
msgstr "j M, Y, G:i"
|
||||||
|
|
||||||
#: judge/views/user.py:414
|
#: judge/views/user.py:416
|
||||||
msgid "Updated on site"
|
msgid "Updated on site"
|
||||||
msgstr "Được cập nhật trên web"
|
msgstr "Được cập nhật trên web"
|
||||||
|
|
||||||
#: judge/views/user.py:429 templates/admin/auth/user/change_form.html:14
|
#: judge/views/user.py:431 templates/admin/auth/user/change_form.html:14
|
||||||
#: templates/admin/auth/user/change_form.html:17 templates/base.html:282
|
#: templates/admin/auth/user/change_form.html:17 templates/base.html:291
|
||||||
#: templates/user/user-tabs.html:11
|
#: templates/user/user-tabs.html:11
|
||||||
msgid "Edit profile"
|
msgid "Edit profile"
|
||||||
msgstr "Chỉnh sửa thông tin"
|
msgstr "Chỉnh sửa thông tin"
|
||||||
|
|
||||||
#: judge/views/user.py:440 templates/user/user-left-sidebar.html:2
|
#: judge/views/user.py:442 templates/user/user-left-sidebar.html:2
|
||||||
#: templates/user/user-list-tabs.html:4
|
#: templates/user/user-list-tabs.html:4
|
||||||
msgid "Leaderboard"
|
msgid "Leaderboard"
|
||||||
msgstr "Xếp hạng"
|
msgstr "Xếp hạng"
|
||||||
|
|
||||||
#: judge/views/user.py:541
|
#: judge/views/user.py:543
|
||||||
msgid "Import Users"
|
msgid "Import Users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -3462,7 +3462,7 @@ msgstr "Kinh độ / Vĩ độ không hợp lệ"
|
||||||
msgid "Like"
|
msgid "Like"
|
||||||
msgstr "Thích"
|
msgstr "Thích"
|
||||||
|
|
||||||
#: templates/actionbar/list.html:28
|
#: templates/actionbar/list.html:28 templates/blog/list.html:45
|
||||||
msgid "Comment"
|
msgid "Comment"
|
||||||
msgstr "Bình luận"
|
msgstr "Bình luận"
|
||||||
|
|
||||||
|
@ -3538,11 +3538,11 @@ msgstr "Thông báo"
|
||||||
msgid "Dark Mode"
|
msgid "Dark Mode"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/base.html:274
|
#: templates/base.html:275
|
||||||
msgid "Profile"
|
msgid "Profile"
|
||||||
msgstr "Trang cá nhân"
|
msgstr "Trang cá nhân"
|
||||||
|
|
||||||
#: templates/base.html:276 templates/chat/chat.html:21
|
#: templates/base.html:279 templates/chat/chat.html:21
|
||||||
#: templates/comments/content-list.html:81
|
#: templates/comments/content-list.html:81
|
||||||
#: templates/contest/contest-list-tabs.html:4
|
#: templates/contest/contest-list-tabs.html:4
|
||||||
#: templates/contest/ranking-table.html:47 templates/internal/problem.html:57
|
#: templates/contest/ranking-table.html:47 templates/internal/problem.html:57
|
||||||
|
@ -3554,44 +3554,44 @@ msgstr "Trang cá nhân"
|
||||||
msgid "Admin"
|
msgid "Admin"
|
||||||
msgstr "Admin"
|
msgstr "Admin"
|
||||||
|
|
||||||
#: templates/base.html:279
|
#: templates/base.html:284
|
||||||
msgid "Internal"
|
msgid "Internal"
|
||||||
msgstr "Nội bộ"
|
msgstr "Nội bộ"
|
||||||
|
|
||||||
#: templates/base.html:280
|
#: templates/base.html:287
|
||||||
msgid "Stats"
|
msgid "Stats"
|
||||||
msgstr "Thống kê"
|
msgstr "Thống kê"
|
||||||
|
|
||||||
#: templates/base.html:287
|
#: templates/base.html:300
|
||||||
msgid "Log out"
|
msgid "Log out"
|
||||||
msgstr "Đăng xuất"
|
msgstr "Đăng xuất"
|
||||||
|
|
||||||
#: templates/base.html:296
|
#: templates/base.html:310
|
||||||
#: templates/registration/password_reset_complete.html:4
|
#: templates/registration/password_reset_complete.html:4
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr "Đăng nhập"
|
msgstr "Đăng nhập"
|
||||||
|
|
||||||
#: templates/base.html:297 templates/registration/registration_form.html:72
|
#: templates/base.html:311 templates/registration/registration_form.html:72
|
||||||
msgid "or"
|
msgid "or"
|
||||||
msgstr "hoặc"
|
msgstr "hoặc"
|
||||||
|
|
||||||
#: templates/base.html:298
|
#: templates/base.html:312
|
||||||
msgid "Sign up"
|
msgid "Sign up"
|
||||||
msgstr "Đăng ký"
|
msgstr "Đăng ký"
|
||||||
|
|
||||||
#: templates/base.html:311
|
#: templates/base.html:325
|
||||||
msgid "spectating"
|
msgid "spectating"
|
||||||
msgstr "đang theo dõi"
|
msgstr "đang theo dõi"
|
||||||
|
|
||||||
#: templates/base.html:323
|
#: templates/base.html:337
|
||||||
msgid "Compete"
|
msgid "Compete"
|
||||||
msgstr "Thi"
|
msgstr "Thi"
|
||||||
|
|
||||||
#: templates/base.html:325
|
#: templates/base.html:339
|
||||||
msgid "General"
|
msgid "General"
|
||||||
msgstr "Chung"
|
msgstr "Chung"
|
||||||
|
|
||||||
#: templates/base.html:332
|
#: templates/base.html:346
|
||||||
msgid "This site works best with JavaScript enabled."
|
msgid "This site works best with JavaScript enabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -3638,7 +3638,7 @@ msgid "News"
|
||||||
msgstr "Tin tức"
|
msgstr "Tin tức"
|
||||||
|
|
||||||
#: templates/blog/list.html:46
|
#: templates/blog/list.html:46
|
||||||
msgid "Tickets"
|
msgid "Ticket"
|
||||||
msgstr "Báo cáo"
|
msgstr "Báo cáo"
|
||||||
|
|
||||||
#: templates/blog/list.html:47
|
#: templates/blog/list.html:47
|
||||||
|
|
|
@ -313,6 +313,11 @@
|
||||||
padding: 0.8em 0.2em 0.8em 1em;
|
padding: 0.8em 0.2em 0.8em 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-text {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
.middle-content,
|
.middle-content,
|
||||||
.blog-sidebar,
|
.blog-sidebar,
|
||||||
.right-sidebar {
|
.right-sidebar {
|
||||||
|
|
|
@ -271,24 +271,38 @@
|
||||||
</a></li></ul>
|
</a></li></ul>
|
||||||
</span>
|
</span>
|
||||||
<div class="dropdown" id="userlink_dropdown" role="tooptip">
|
<div class="dropdown" id="userlink_dropdown" role="tooptip">
|
||||||
<div class="dropdown-item"><a href="{{ url('user_page') }}">{{ _('Profile') }}</a></div>
|
<a href="{{ url('user_page') }}">
|
||||||
|
<div class="dropdown-item">{{ _('Profile') }}</div>
|
||||||
|
</a>
|
||||||
{% if request.user.is_staff or request.user.is_superuser %}
|
{% if request.user.is_staff or request.user.is_superuser %}
|
||||||
<div class="dropdown-item"><a href="{{ url('admin:index') }}">{{ _('Admin') }}</a></div>
|
<a href="{{ url('admin:index') }}">
|
||||||
|
<div class="dropdown-item">{{ _('Admin') }}</div>
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if request.user.is_superuser %}
|
{% if request.user.is_superuser %}
|
||||||
<div class="dropdown-item"><a href="{{ url('internal_problem') }}">{{ _('Internal') }}</a></div>
|
<a href="{{ url('internal_problem') }}">
|
||||||
<div class="dropdown-item"><a href="{{ url('site_stats') }}">{{ _('Stats') }}</a></div>
|
<div class="dropdown-item">{{ _('Internal') }}</div>
|
||||||
|
</a>
|
||||||
|
<a href="{{ url('site_stats') }}">
|
||||||
|
<div class="dropdown-item">{{ _('Stats') }}</div>
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="dropdown-item"><a href="{{ url('user_edit_profile') }}">{{ _('Edit profile') }}</a></div>
|
<a href="{{ url('user_edit_profile') }}">
|
||||||
|
<div class="dropdown-item">{{ _('Edit profile') }}</div>
|
||||||
|
</a>
|
||||||
{% if request.user.is_impersonate %}
|
{% if request.user.is_impersonate %}
|
||||||
<div class="dropdown-item"><a href="{{ url('impersonate-stop') }}">Stop impersonating</a></div>
|
<a href="{{ url('impersonate-stop') }}">
|
||||||
|
<div class="dropdown-item">Stop impersonating</div>
|
||||||
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="dropdown-item">
|
<a href="#" id="logout" class="red">
|
||||||
<a href="#" id="logout" class="red">{{ _('Log out') }}</a>
|
<div class="dropdown-item">
|
||||||
<form id="logout-form" action="{{ url('auth_logout') }}" method="POST">
|
{{ _('Log out') }}
|
||||||
{% csrf_token %}
|
<form id="logout-form" action="{{ url('auth_logout') }}" method="POST">
|
||||||
</form>
|
{% csrf_token %}
|
||||||
</div>
|
</form>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -42,8 +42,8 @@
|
||||||
{% block left_sidebar %}
|
{% block left_sidebar %}
|
||||||
<div class="left-sidebar">
|
<div class="left-sidebar">
|
||||||
{{ make_tab_item('blog', 'fa fa-rss', url('home'), _('News')) }}
|
{{ make_tab_item('blog', 'fa fa-rss', url('home'), _('News')) }}
|
||||||
{{ make_tab_item('comment', 'fa fa-comments', url('comment_feed'), _('Comments')) }}
|
{{ make_tab_item('comment', 'fa fa-comments', url('comment_feed'), _('Comment')) }}
|
||||||
{{ make_tab_item('ticket', 'fa fa-question-circle', url('ticket_feed'), _('Tickets')) }}
|
{{ make_tab_item('ticket', 'fa fa-question-circle', url('ticket_feed'), _('Ticket')) }}
|
||||||
{{ make_tab_item('event', 'fa fa-calendar', '#', _('Events')) }}
|
{{ make_tab_item('event', 'fa fa-calendar', '#', _('Events')) }}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -118,7 +118,7 @@
|
||||||
{% macro make_tab_item(name, fa, url, text) %}
|
{% macro make_tab_item(name, fa, url, text) %}
|
||||||
<div class="left-sidebar-item {% if page_type == name %}active{% endif %}" data-href="{{ url }}" id="{{ name }}-tab">
|
<div class="left-sidebar-item {% if page_type == name %}active{% endif %}" data-href="{{ url }}" id="{{ name }}-tab">
|
||||||
<span class="sidebar-icon"><i class="{{ fa }}"></i></span>
|
<span class="sidebar-icon"><i class="{{ fa }}"></i></span>
|
||||||
<span>{{ text }}</span>
|
<span class="sidebar-text">{{ text }}</span>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
<td> {{ form_user.last_name }} </td>
|
<td> {{ form_user.last_name }} </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ _('Avatar') }}: </td>
|
<td style="padding-top: 1em">{{ _('Avatar') }}: </td>
|
||||||
<td style="padding-top: 1em">{{ form.profile_image }}</td>
|
<td style="padding-top: 1em">{{ form.profile_image }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue