mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix domain_join link
This commit is contained in:
4 files changed
+6
-5
No files matched your search
@@ -121,6 +121,8 @@ class UserSudoHandler extends Handler {
|
||||
}
|
||||
|
||||
class UserTFAHandler extends Handler {
|
||||
noCheckPermView = true;
|
||||
|
||||
@param('q', Types.String)
|
||||
async get({ }, q: string) {
|
||||
let udoc = await user.getByUname('system', q);
|
||||
|
||||
@@ -42,6 +42,7 @@ __langname: 简体中文
|
||||
'Please use your two factor authentication app to scan the qrcode below:': '请使用你的两步验证APP扫描此二维码:'
|
||||
'Role {1} already exists in domain {0}.': '域 {0} 中已存在角色 {1}。'
|
||||
'Solved {0} problems, RP: {1} (No. {2})': '解决了 {0} 道题目,RP: {1} (No. {2})'
|
||||
'The domain owner:': 域所有者:
|
||||
'The value `{1}` of {0} already exists.': '{0} 的值 `{1}` 已经存在。'
|
||||
'Yes': 是
|
||||
"Effects only when Difficulty is not 'Use algorithm calculated'.": 仅当难度不为“使用算法计算”时才起效。
|
||||
@@ -908,7 +909,6 @@ Testdata: 测试数据
|
||||
Text: 文本
|
||||
The 'default' role applies to ALL REGISTERED USER.: default 角色作用于<b>所有已注册用户</b>
|
||||
The contest is a flexible time contest. You need to complete the contest within a specified time after you attended.: 本场比赛采用灵活时间模式,你需要在参加后的指定时间内完成比赛。
|
||||
The domain owner: 域所有者:
|
||||
The group to join when user joining the domain.: 加入域时自动加入的小组。
|
||||
The homework's deadline is due but in extension. You can still submit for this problem but your score will be penalized.: 作业已超过截止时间,但仍在延期时间内。您递交题目将无法获得全部分数。
|
||||
The invitation code to enter to successfully join the domain. You can only use letters and numbers in the code and it should not be longer than 64 characters.: 加入此域的邀请码。您只能使用字母和数字,并且不能长于 64 个字符。
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
<p>{{ _('By clicking the button, you will become a member of the domain {0}.').format(domainInfo['name']) }}</p>
|
||||
</div>
|
||||
<div class="section__body typo">
|
||||
<p>{{ _('The domain owner:') }}</p>
|
||||
{{ user.render_inline(domainInfo['owner']) }}
|
||||
<p>{{ _('The domain owner:') }} {{ user.render_inline(domainInfo['owner']) }}</p>
|
||||
</div>
|
||||
{% if domainInfo['bulletin'] %}
|
||||
<div class="section__body typo">
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<li class="menu__item"><a class="menu__link" href="javascript:showSignInDialog();">
|
||||
<span class="icon icon-add"></span> {{ _('Login to Create a Discussion') }}</a></li>
|
||||
{% elif not handler.user._dudoc.join %}
|
||||
<li class="menu__item"><a class="menu__link" href="javascript:joinDomain();">
|
||||
<li class="menu__item"><a class="menu__link" href="/domain/join?target={{ pdoc.domainId }}">
|
||||
<span class="icon icon-add"></span> {{ _('Join Domain to Create a Discussion') }}</a></li>
|
||||
{% else %}
|
||||
<li class="menu__item"><a class="menu__link disabled" href="javascript:;">
|
||||
@@ -50,7 +50,7 @@
|
||||
<span class="icon icon-send"></span> {{ _('Login to Submit') }}
|
||||
</a></li>
|
||||
{% elif not handler.user._dudoc.join %}
|
||||
<li class="menu__item scratchpad--hide"><a class="menu__link disabled{% if page_name == 'problem_submit' %} active{% endif %}" href="javascript:joinDomain();">
|
||||
<li class="menu__item scratchpad--hide"><a class="menu__link{% if page_name == 'problem_submit' %} active{% endif %}" href="/domain/join?target={{ pdoc.domainId }}">
|
||||
<span class="icon icon-send"></span> {{ _('Join Domain to Submit') }}
|
||||
</a></li>
|
||||
{% else %}
|
||||
|
||||
Reference in new issue
Block a user