mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix grammar mistakes (#570)
This commit is contained in:
1 parent
831b8352fe
commit
4dcc2a2e78
19 files changed
+53
-53
No files matched your search
@@ -2,7 +2,7 @@
|
||||
{% import "components/user.html" as user with context %}
|
||||
{% import "components/paginator.html" as paginator with context %}
|
||||
{% if not ddocs.length %}
|
||||
{{ nothing.render('no discussion yet...') }}
|
||||
{{ nothing.render('No discussion yet...') }}
|
||||
{% else %}
|
||||
<ol class="section__list discussion__list">
|
||||
{%- for ddoc in ddocs -%}
|
||||
|
||||
@@ -39,6 +39,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
{{ nothing.render('No file at current.') }}
|
||||
{{ nothing.render('There are no files currently.') }}
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -81,7 +81,7 @@
|
||||
{%- for html in (model.system.get('ui-default.footer_extra_html')|default('')).split('\n') -%}
|
||||
<li class="footer__extra-link-item">{{ html|safe }}</li>
|
||||
{%- endfor -%}
|
||||
<li class="footer__extra-link-item">Worker {{ process.env.NODE_APP_INSTANCE }} in {{ Date.now() - handler.args.__start }}ms</li>
|
||||
<li class="footer__extra-link-item">Worker {{ process.env.NODE_APP_INSTANCE }}, {{ Date.now() - handler.args.__start }}ms</li>
|
||||
<!-- Prepare {{ handler.args.__prepareDone - handler.args.__prepare }}ms -->
|
||||
<!-- Method {{ handler.args.__methodDone - handler.args.__method }}ms -->
|
||||
<li class="footer__extra-link-item">Powered by <a href="https://hydro.js.org">Hydro v{{ global.Hydro.version.hydrooj }}</a> {{ "Professional" if model.system.get('server.pro') else "Community" }}</li>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{% import "components/nothing.html" as nothing with context %}
|
||||
<div data-fragment-id="problem_list">
|
||||
{% if not pdocs.length %}
|
||||
{{ nothing.render('Sorry, there is no problem in the problem set') }}
|
||||
{{ nothing.render('Sorry, there are no problems in the problem set.') }}
|
||||
{% else %}
|
||||
{{ paginator.render(page, ppcount, position='top', add_qs=('q=' + qs if qs else '')) }}
|
||||
<table class="data-table hide-problem-tag">
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
</a>
|
||||
</p>
|
||||
<div class="typo supplementary">
|
||||
<p>{{ _('Pick a problem randomly based on current filter') }}</p>
|
||||
<p>{{ _('Pick a problem randomly based on the current filter.') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2,7 +2,7 @@
|
||||
<h1 class="section__tab-title">{{ _('Recent Activities') }}</h1>
|
||||
<div class="section__tab-main">
|
||||
{% if not tdocs.length %}
|
||||
{{ nothing.render("This person is lazy and didn't join any contest or homework") }}
|
||||
{{ nothing.render("This person is lazy and didn't join any contests or homework.") }}
|
||||
{% else %}
|
||||
<div class="typo section__body no-media">
|
||||
<ul>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<h1 class="section__tab-title">{{ _('Recent Solutions') }}</h1>
|
||||
<div class="section__tab-main">
|
||||
{% if not psdocs.length %}
|
||||
{{ nothing.render("This person is lazy and didn't wrote any solution") }}
|
||||
{{ nothing.render("This person is lazy and didn't write any solutions.") }}
|
||||
{% else %}
|
||||
<div class="section__body typo no-media">
|
||||
<div class="typo section__body">
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
</ol>
|
||||
<div class="section__body">
|
||||
<div class="typo supplementary">
|
||||
<p>{{ _('You have permissions to create problems for this domain.') }}</p>
|
||||
<p>{{ _('You have permission to create problems for this domain.') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="section__body no-padding">
|
||||
<div data-fragment-id="ranking">
|
||||
{% if not udocs.length %}
|
||||
{{ nothing.render('Sorry, there is no user in this domain.') }}
|
||||
{{ nothing.render('Sorry, there are no users in this domain.') }}
|
||||
{% else %}
|
||||
<table class="data-table">
|
||||
<colgroup>
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
{% if not filterUidOrName and not filterPid and not filterTid %}
|
||||
{{ nothing.render('Oh, there is no task in the queue!') }}
|
||||
{% else %}
|
||||
{{ nothing.render('Oh, there is no task that matches the filter!') }}
|
||||
{{ nothing.render('Oh, there are no tasks that match the filter!') }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<table class="data-table record_main__table">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<h1 class="section__title">{{ _('All Training Plans') }}</h1>
|
||||
</div>
|
||||
{% if not tdocs.length %}
|
||||
{{ nothing.render('Sorry, there is no training plan.') }}
|
||||
{{ nothing.render('Sorry, there are no training plans.') }}
|
||||
{% else %}
|
||||
<ol class="section__list all primary training__list">
|
||||
{%- for tdoc in tdocs -%}
|
||||
@@ -88,7 +88,7 @@
|
||||
</ol>
|
||||
<div class="section__body">
|
||||
<div class="typo supplementary">
|
||||
<p>{{ _('You can create your own training plans and share with others.') }}</p>
|
||||
<p>{{ _('You can create your own training plans and share them with others.') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
<h1 class="section__tab-title">{{ _('Bio') }}</h1>
|
||||
<div class="section__tab-main">
|
||||
{% if not udoc.bio %}
|
||||
{{ nothing.render("This person is lazy and didn't wrote anything.") }}
|
||||
{{ nothing.render("This person is lazy and didn't write anything.") }}
|
||||
{% else %}
|
||||
<div class="section__body typo">
|
||||
{{ udoc.bio|default('')|markdown|safe }}
|
||||
|
||||
Reference in new issue
Block a user