mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
Remove useless "set title"
This commit is contained in:
parent
8b295918ef
commit
9ba005b31d
@ -49,7 +49,7 @@ class Submission(models.Model):
|
||||
USER_DISPLAY_CODES = {
|
||||
'AC': _('Accepted'),
|
||||
'WA': _('Wrong Answer'),
|
||||
'SC': 'Short Circuited',
|
||||
'SC': _('Short Circuited'),
|
||||
'TLE': _('Time Limit Exceeded'),
|
||||
'MLE': _('Memory Limit Exceeded'),
|
||||
'OLE': _('Output Limit Exceeded'),
|
||||
|
@ -25,7 +25,7 @@ def language_data(request, language_count=Language.objects.annotate(count=Count(
|
||||
other_count = sum(map(itemgetter('count'), languages[num_languages:]))
|
||||
|
||||
return JsonResponse({
|
||||
'labels': list(map(itemgetter('name'), languages[:num_languages])) + ['Other'],
|
||||
'labels': list(map(itemgetter('name'), languages[:num_languages])) + [_('Other')],
|
||||
'datasets': [
|
||||
{
|
||||
'backgroundColor': chart_colors[:num_languages] + ['#FDB45C'],
|
||||
|
@ -50,7 +50,6 @@
|
||||
|
||||
{% block title_row %}
|
||||
{% set tab = 'list' %}
|
||||
{% set title = 'Contests' %}
|
||||
{% include "contest/contest-list-tabs.html" %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
{% block title_row %}
|
||||
{% set tab = 'organizations' %}
|
||||
{% set title = _('Organizations') %}
|
||||
{% include "user/user-list-tabs.html" %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -163,7 +163,6 @@
|
||||
|
||||
{% block title_row %}
|
||||
{% set tab = 'list' %}
|
||||
{% set title = 'Problems' %}
|
||||
{% include "problem/problem-list-tabs.html" %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
{% block title_row %}
|
||||
{% set tab = 'language' %}
|
||||
{% set title = 'Statistics' %}
|
||||
{% include "stats/tabs.html" %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -17,10 +17,9 @@
|
||||
|
||||
{% block title_row %}
|
||||
{% set tab = 'list' %}
|
||||
{% set title = 'Leaderboard' %}
|
||||
{% include "user/user-list-tabs.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block users_table %}
|
||||
{% include "user/users-table.html" %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user