fix typo error
This commit is contained in:
+62
-67
@@ -501,6 +501,7 @@
|
||||
<button type="button" class="profile-tab{{ if eq .ActiveProfileTab "question" }} is-active{{ end }}" data-profile-tab="question" role="tab" aria-selected="{{ if eq .ActiveProfileTab "question" }}true{{ else }}false{{ end }}">{{t .LangCode "explore.questionsTab"}}</button>
|
||||
<button type="button" class="profile-tab{{ if eq .ActiveProfileTab "chat" }} is-active{{ end }}" data-profile-tab="chat" role="tab" aria-selected="{{ if eq .ActiveProfileTab "chat" }}true{{ else }}false{{ end }}">{{t .LangCode "qlist.chatsTab"}}</button>
|
||||
<button type="button" class="profile-tab{{ if eq .ActiveProfileTab "vote" }} is-active{{ end }}" data-profile-tab="vote" role="tab" aria-selected="{{ if eq .ActiveProfileTab "vote" }}true{{ else }}false{{ end }}">{{t .LangCode "explore.votesTab"}}</button>
|
||||
<button type="button" class="profile-tab{{ if eq .ActiveProfileTab "security" }} is-active{{ end }}" data-profile-tab="security" role="tab" aria-selected="{{ if eq .ActiveProfileTab "security" }}true{{ else }}false{{ end }}">{{t .LangCode "admin.tabSecurity"}}</button>
|
||||
</div>
|
||||
|
||||
<!-- ===================== 用户设置面板 ===================== -->
|
||||
@@ -764,22 +765,8 @@
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<!-- 7 页面访问密码:独立表单 -->
|
||||
<section class="tb-pcard">
|
||||
<h3 class="tb-pcard-title">{{t .LangCode "admin.pagePassword"}}</h3>
|
||||
<form method="post" action="/user/profile/update-page-password">
|
||||
{{ .CSRFTokenHTML }}
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label">{{t .LangCode "admin.pagePasswordHint"}}</label>
|
||||
<input name="password" class="uk-input" type="password" placeholder="{{t .LangCode "admin.pagePasswordPlaceholder"}}">
|
||||
</div>
|
||||
<div class="tb-card-save">
|
||||
<button type="submit" class="uk-button uk-button-primary">{{t .LangCode "admin.updatePagePassword"}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<!-- 8 账号操作:导出两按钮同行;退出登录与停用我的账号同行 -->
|
||||
<!-- 7 账号操作:导出两按钮同行;退出登录与停用我的账号同行
|
||||
(原「页面访问密码」已迁入「防护设置」面板,此处不再重复) -->
|
||||
<section class="tb-pcard">
|
||||
<h3 class="tb-pcard-title">{{t .LangCode "admin.account"}}</h3>
|
||||
<div class="tb-account-actions">
|
||||
@@ -811,46 +798,6 @@
|
||||
<!-- ===================== 提问功能管理面板 ===================== -->
|
||||
<div class="profile-panel" data-profile-panel="question"{{ if ne .ActiveProfileTab "question" }} hidden{{ end }}>
|
||||
{{ with .FeatureQuestion }}{{template "user/feature-control-form" .}}{{ end }}
|
||||
|
||||
<hr>
|
||||
<div class="uk-margin">
|
||||
<form method="post" action="/user/harassment/update?tab=question">
|
||||
{{ $.CSRFTokenHTML }}
|
||||
<legend class="uk-legend">{{t $.LangCode "admin.harassment"}}</legend>
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label">{{t $.LangCode "admin.askLimit"}}</label><br>
|
||||
<label>
|
||||
<input name="register_only" class="uk-checkbox" type="checkbox"
|
||||
{{ if eq $.LoggedUser.HarassmentSetting "register_only"}}checked{{end}} >
|
||||
<span class="uk-text-small"> {{t $.LangCode "admin.registerOnly"}}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="tb-card-save">
|
||||
<button type="submit" class="uk-button uk-button-primary">{{t $.LangCode "admin.updateHarassment"}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- 全局屏蔽词:三个功能面板共用同一份(见 user/global-blockwords 部分模板) -->
|
||||
{{ template "user/global-blockwords" (dict "Root" $ "Action" "/user/blockwords/update?tab=question") }}
|
||||
|
||||
<!-- 审核严格度:三个功能面板共用同一份(见 user/moderation-strictness 部分模板) -->
|
||||
{{ template "user/moderation-strictness" (dict "Root" $ "Action" "/user/moderation-strictness/update?tab=question") }}
|
||||
|
||||
<hr>
|
||||
<div class="uk-margin">
|
||||
<form method="post" action="/user/profile/update-ask-password">
|
||||
{{ $.CSRFTokenHTML }}
|
||||
<legend class="uk-legend">{{t $.LangCode "admin.askPassword"}}</legend>
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label">{{t $.LangCode "admin.askPasswordHint"}}</label>
|
||||
<input name="password" class="uk-input" type="password" placeholder="{{t $.LangCode "admin.askPasswordPlaceholder"}}">
|
||||
</div>
|
||||
<div class="tb-card-save">
|
||||
<button type="submit" class="uk-button uk-button-primary">{{t $.LangCode "admin.updateAskPassword"}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div><!-- /提问功能管理面板 -->
|
||||
|
||||
<!-- ===================== 私聊功能管理面板 ===================== -->
|
||||
@@ -881,25 +828,73 @@
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<hr>
|
||||
<!-- 全局屏蔽词:提问/私聊/投票三面板共用同一份(见 user/global-blockwords 部分模板) -->
|
||||
{{ template "user/global-blockwords" (dict "Root" $ "Action" "/user/blockwords/update?tab=chat") }}
|
||||
<!-- 审核严格度:同样三面板共用一份(见 user/moderation-strictness 部分模板) -->
|
||||
{{ template "user/moderation-strictness" (dict "Root" $ "Action" "/user/moderation-strictness/update?tab=chat") }}
|
||||
</div><!-- /私聊功能管理面板 -->
|
||||
|
||||
<!-- ===================== 投票功能管理面板 ===================== -->
|
||||
<div class="profile-panel" data-profile-panel="vote"{{ if ne .ActiveProfileTab "vote" }} hidden{{ end }}>
|
||||
{{ with .FeatureVote }}{{template "user/feature-control-form" .}}{{ end }}
|
||||
</div><!-- /投票功能管理面板 -->
|
||||
|
||||
<!-- ===================== 内容防护面板 =====================
|
||||
聚合「内容防护」相关设置:防骚扰、屏蔽词、审核严格度、页面访问密码、提问密码。
|
||||
原先散落在提问/私聊/投票三个面板(屏蔽词与审核严格度还被重复渲染 3 份),
|
||||
现统一收拢到本面板;各表单 action 携带 ?tab=security,保存后回到此处。 -->
|
||||
<div class="profile-panel" data-profile-panel="security"{{ if ne .ActiveProfileTab "security" }} hidden{{ end }}>
|
||||
<div class="uk-margin">
|
||||
<form method="post" action="/user/harassment/update?tab=security">
|
||||
{{ $.CSRFTokenHTML }}
|
||||
<legend class="uk-legend">{{t $.LangCode "admin.harassment"}}</legend>
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label">{{t $.LangCode "admin.askLimit"}}</label><br>
|
||||
<label>
|
||||
<input name="register_only" class="uk-checkbox" type="checkbox"
|
||||
{{ if eq $.LoggedUser.HarassmentSetting "register_only"}}checked{{end}} >
|
||||
<span class="uk-text-small"> {{t $.LangCode "admin.registerOnly"}}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="tb-card-save">
|
||||
<button type="submit" class="uk-button uk-button-primary">{{t $.LangCode "admin.updateHarassment"}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<!-- 全局屏蔽词:三个功能面板共用同一份(见 user/global-blockwords 部分模板) -->
|
||||
{{ template "user/global-blockwords" (dict "Root" $ "Action" "/user/blockwords/update?tab=vote") }}
|
||||
<!-- 全局屏蔽词:提问/私聊/投票共用同一份词表(见 user/global-blockwords 部分模板) -->
|
||||
{{ template "user/global-blockwords" (dict "Root" $ "Action" "/user/blockwords/update?tab=security") }}
|
||||
|
||||
<!-- 审核严格度:三个功能面板共用同一份(见 user/moderation-strictness 部分模板) -->
|
||||
{{ template "user/moderation-strictness" (dict "Root" $ "Action" "/user/moderation-strictness/update?tab=vote") }}
|
||||
</div><!-- /投票功能管理面板 -->
|
||||
<!-- 审核严格度:提问/私聊/投票三条链路共用同一档位(见 user/moderation-strictness 部分模板) -->
|
||||
{{ template "user/moderation-strictness" (dict "Root" $ "Action" "/user/moderation-strictness/update?tab=security") }}
|
||||
|
||||
<hr>
|
||||
<div class="uk-margin">
|
||||
<form method="post" action="/user/profile/update-page-password?tab=security">
|
||||
{{ $.CSRFTokenHTML }}
|
||||
<legend class="uk-legend">{{t $.LangCode "admin.pagePassword"}}</legend>
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label">{{t $.LangCode "admin.pagePasswordHint"}}</label>
|
||||
<input name="password" class="uk-input" type="password" placeholder="{{t $.LangCode "admin.pagePasswordPlaceholder"}}">
|
||||
</div>
|
||||
<div class="tb-card-save">
|
||||
<button type="submit" class="uk-button uk-button-primary">{{t $.LangCode "admin.updatePagePassword"}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div class="uk-margin">
|
||||
<form method="post" action="/user/profile/update-ask-password?tab=security">
|
||||
{{ $.CSRFTokenHTML }}
|
||||
<legend class="uk-legend">{{t $.LangCode "admin.askPassword"}}</legend>
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label">{{t $.LangCode "admin.askPasswordHint"}}</label>
|
||||
<input name="password" class="uk-input" type="password" placeholder="{{t $.LangCode "admin.askPasswordPlaceholder"}}">
|
||||
</div>
|
||||
<div class="tb-card-save">
|
||||
<button type="submit" class="uk-button uk-button-primary">{{t $.LangCode "admin.updateAskPassword"}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div><!-- /内容防护面板 -->
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
|
||||
Reference in New Issue
Block a user