add show-more comment and add trans

This commit is contained in:
zhaospei 2023-02-05 20:41:18 +07:00
parent d736381beb
commit ef1096c9f3
4 changed files with 428 additions and 407 deletions

File diff suppressed because it is too large Load diff

View file

@ -402,6 +402,9 @@ msgstr ""
msgid "monotonic-queue" msgid "monotonic-queue"
msgstr "" msgstr ""
msgid "mst"
msgstr ""
msgid "multiplicative" msgid "multiplicative"
msgstr "" msgstr ""
@ -555,6 +558,9 @@ msgstr ""
msgid "tortoise-hare" msgid "tortoise-hare"
msgstr "" msgstr ""
msgid "Training"
msgstr ""
msgid "treap/splay" msgid "treap/splay"
msgstr "" msgstr ""

View file

@ -43,7 +43,7 @@
{% endcache %} {% endcache %}
</div> </div>
</div> </div>
<div class="show-more"> {{_("...Xem thêm")}} </div> <div class="show-more"> {{_("...More")}} </div>
<div class="actionbar-box"> <div class="actionbar-box">
{% set pagevote = post.pagevote %} {% set pagevote = post.pagevote %}
{% set bookmark = post.bookmark %} {% set bookmark = post.bookmark %}

View file

@ -5,14 +5,16 @@
{% block middle_content %} {% block middle_content %}
<div class="problem-feed-option"> <div class="problem-feed-option">
<a href="{{url('problem_feed')}}" class="button small {{'btn-midnightblue' if feed_type=='for_you' else 'btn-gray'}}"> <a href="{{url('problem_feed')}}"
class="button small {{'btn-midnightblue' if feed_type=='for_you' else 'btn-gray'}}">
{{_('FOR YOU')}} {{_('FOR YOU')}}
</a> </a>
<a href="{{url('problem_feed_new')}}" class="button small {{'btn-midnightblue' if feed_type=='new' else 'btn-gray'}}"> <a href="{{url('problem_feed_new')}}" class="button small {{'btn-midnightblue' if feed_type=='new' else 'btn-gray'}}">
{{_('NEW')}} {{_('NEW')}}
</a> </a>
{% if request.user.has_perm('judge.suggest_problem_changes') %} {% if request.user.has_perm('judge.suggest_problem_changes') %}
<a href="{{url('problem_feed_volunteer')}}" class="button small {{'btn-midnightblue' if feed_type=='volunteer' else 'btn-gray'}}"> <a href="{{url('problem_feed_volunteer')}}"
class="button small {{'btn-midnightblue' if feed_type=='volunteer' else 'btn-gray'}}">
{{_('VOLUNTEER')}} {{_('VOLUNTEER')}}
</a> </a>
{% endif %} {% endif %}
@ -58,26 +60,23 @@
{{ problem.description|markdown(lazy_load=True)|reference|str|safe }} {{ problem.description|markdown(lazy_load=True)|reference|str|safe }}
{% endcache %} {% endcache %}
{% if problem.pdf_description %} {% if problem.pdf_description %}
<embed src="{{url('problem_pdf_description', problem.code)}}" width="100%" height="500" type="application/pdf" style="margin-top: 0.5em"> <embed src="{{url('problem_pdf_description', problem.code)}}" width="100%" height="500" type="application/pdf"
style="margin-top: 0.5em">
{% endif %} {% endif %}
</div> </div>
{% set include_hr = True %}
{% set hide_actionbar_comment = True %}
{% set pagevote = problem.pagevote %}
{% set bookmark = problem.bookmark %}
{% set share_url = request.build_absolute_uri(problem.get_absolute_url()) %}
{% include "actionbar/list.html" %}
{% if feed_type=='volunteer' and request.user.has_perm('judge.suggest_problem_changes') %} {% if feed_type=='volunteer' and request.user.has_perm('judge.suggest_problem_changes') %}
<br> <br>
<a href="#" class="view-statement-src">{{ _('View source') }}</a> <a href="#" class="view-statement-src">{{ _('View source') }}</a>
<pre class="statement-src" style="display: none">{{ problem.description|str }}</pre> <pre class="statement-src" style="display: none">{{ problem.description|str }}</pre>
<hr> <hr>
<center><h3>{{_('Volunteer form')}}</h3></center> <center>
<h3>{{_('Volunteer form')}}</h3>
</center>
<br> <br>
<button class="edit-btn" id="edit-{{problem.id}}" pid="{{problem.id}}" style="float: right">{{_('Edit')}}</button> <button class="edit-btn" id="edit-{{problem.id}}" pid="{{problem.id}}" style="float: right">{{_('Edit')}}</button>
<form class="volunteer-form" id="form-{{problem.id}}" pid="{{problem.id}}" style="display: none;" method="POST"> <form class="volunteer-form" id="form-{{problem.id}}" pid="{{problem.id}}" style="display: none;" method="POST">
<input type="submit" class="volunteer-submit-btn" id="submit-{{problem.id}}" pid="{{problem.id}}" pcode="{{problem.code}}" style="float: right" value="{{_('Submit')}}"> <input type="submit" class="volunteer-submit-btn" id="submit-{{problem.id}}" pid="{{problem.id}}"
pcode="{{problem.code}}" style="float: right" value="{{_('Submit')}}">
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
@ -124,7 +123,8 @@
<label for="feedback"><i>{{ _('Feedback') }}</i></label> <label for="feedback"><i>{{ _('Feedback') }}</i></label>
</td> </td>
<td> <td>
<textarea id="feedback-{{problem.id}}" rows="2" style="width: 100%" placeholder="{{_('Any additional note here')}}"></textarea> <textarea id="feedback-{{problem.id}}" rows="2" style="width: 100%"
placeholder="{{_('Any additional note here')}}"></textarea>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -133,6 +133,15 @@
<center id="thank-{{problem.id}}" style="display: none; margin-top: 3em"></center> <center id="thank-{{problem.id}}" style="display: none; margin-top: 3em"></center>
{% endif %} {% endif %}
</div> </div>
<div class="show-more"> {{_("...More")}} </div>
<div class="actionbar-box">
{% set pagevote = problem.pagevote %}
{% set bookmark = problem.bookmark %}
{% set hide_actionbar_comment = True %}
{% set include_hr = True %}
{% set share_url = request.build_absolute_uri(problem.get_absolute_url()) %}
{% include "actionbar/list.html" %}
</div>
</div> </div>
{% endfor %} {% endfor %}
{% if page_obj.num_pages > 1 %} {% if page_obj.num_pages > 1 %}