ui: fix domain_join link

This commit is contained in:
undefined committed 2025-03-24 19:43:04 +08:00
1 parent 6009a3cb4c
commit 3d6b7831dd
4 files changed
+6 -5

No files matched your search

+2
View File
@@ -121,6 +121,8 @@ class UserSudoHandler extends Handler {
} }
class UserTFAHandler extends Handler { class UserTFAHandler extends Handler {
noCheckPermView = true;
@param('q', Types.String) @param('q', Types.String)
async get({ }, q: string) { async get({ }, q: string) {
let udoc = await user.getByUname('system', q); let udoc = await user.getByUname('system', q);
+1 -1
View File
@@ -42,6 +42,7 @@ __langname: 简体中文
'Please use your two factor authentication app to scan the qrcode below:': '请使用你的两步验证APP扫描此二维码:' 'Please use your two factor authentication app to scan the qrcode below:': '请使用你的两步验证APP扫描此二维码:'
'Role {1} already exists in domain {0}.': '域 {0} 中已存在角色 {1}。' 'Role {1} already exists in domain {0}.': '域 {0} 中已存在角色 {1}。'
'Solved {0} problems, RP: {1} (No. {2})': '解决了 {0} 道题目,RP: {1} (No. {2})' 'Solved {0} problems, RP: {1} (No. {2})': '解决了 {0} 道题目,RP: {1} (No. {2})'
'The domain owner:': 域所有者:
'The value `{1}` of {0} already exists.': '{0} 的值 `{1}` 已经存在。' 'The value `{1}` of {0} already exists.': '{0} 的值 `{1}` 已经存在。'
'Yes': 是 'Yes': 是
"Effects only when Difficulty is not 'Use algorithm calculated'.": 仅当难度不为“使用算法计算”时才起效。 "Effects only when Difficulty is not 'Use algorithm calculated'.": 仅当难度不为“使用算法计算”时才起效。
@@ -908,7 +909,6 @@ Testdata: 测试数据
Text: 文本 Text: 文本
The 'default' role applies to ALL REGISTERED USER.: default 角色作用于<b>所有已注册用户</b> 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 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 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 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 个字符。 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> <p>{{ _('By clicking the button, you will become a member of the domain {0}.').format(domainInfo['name']) }}</p>
</div> </div>
<div class="section__body typo"> <div class="section__body typo">
<p>{{ _('The domain owner:') }}</p> <p>{{ _('The domain owner:') }} {{ user.render_inline(domainInfo['owner']) }}</p>
{{ user.render_inline(domainInfo['owner']) }}
</div> </div>
{% if domainInfo['bulletin'] %} {% if domainInfo['bulletin'] %}
<div class="section__body typo"> <div class="section__body typo">
@@ -18,7 +18,7 @@
<li class="menu__item"><a class="menu__link" href="javascript:showSignInDialog();"> <li class="menu__item"><a class="menu__link" href="javascript:showSignInDialog();">
<span class="icon icon-add"></span> {{ _('Login to Create a Discussion') }}</a></li> <span class="icon icon-add"></span> {{ _('Login to Create a Discussion') }}</a></li>
{% elif not handler.user._dudoc.join %} {% 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> <span class="icon icon-add"></span> {{ _('Join Domain to Create a Discussion') }}</a></li>
{% else %} {% else %}
<li class="menu__item"><a class="menu__link disabled" href="javascript:;"> <li class="menu__item"><a class="menu__link disabled" href="javascript:;">
@@ -50,7 +50,7 @@
<span class="icon icon-send"></span> {{ _('Login to Submit') }} <span class="icon icon-send"></span> {{ _('Login to Submit') }}
</a></li> </a></li>
{% elif not handler.user._dudoc.join %} {% 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') }} <span class="icon icon-send"></span> {{ _('Join Domain to Submit') }}
</a></li> </a></li>
{% else %} {% else %}