restrict v10
This commit is contained in:
@@ -46,6 +46,13 @@
|
||||
{{ end }}
|
||||
</select>
|
||||
</div>
|
||||
<!-- 规则同意:前端 required 只是第一道,服务端同样校验(form.Register.AgreeRules) -->
|
||||
<div class="uk-margin">
|
||||
<label class="uk-text-small">
|
||||
<input type="checkbox" name="agree_rules" value="1" class="uk-checkbox" required>
|
||||
{{t .LangCode "auth.register.agreePrefix"}}<a href="/rules" target="_blank" rel="noopener">{{t .LangCode "auth.register.agreeLink"}}</a>
|
||||
</label>
|
||||
</div>
|
||||
<div class="uk-margin">
|
||||
{{ if eq .CaptchaType "math" }}
|
||||
<input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response" value="">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<p class="{{ if .IsPixel }}uk-container{{end}} uk-text-right uk-text-muted uk-text-small">
|
||||
<br>Powered by NekoBox | {{ ICP }}<br>{{t .LangCode "site.footer.runtime"}}:<span id="box_runtime"></span>
|
||||
<br>
|
||||
<a href="/rules">{{t .LangCode "site.footer.rules"}}</a> |
|
||||
<!--<a href="/pixel">画板</a> | -->
|
||||
<a href="https://box.shiroko.one/_/tamakyi" target="_blank">{{t .LangCode "site.footer.admin"}}</a>
|
||||
| <a href="https://blog.shiroko.one" target="_blank">{{t .LangCode "site.footer.notice"}}</a>
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
{{ if .RestrictionLevel }}
|
||||
<!-- 处置期常驻提示:L1 停分发 / L2 新回答不公开 / L3 禁止发布 -->
|
||||
<div class="uk-alert-warning" uk-alert>
|
||||
<div>{{t .LangCode "qlist.restrictionBanner" .RestrictionLevel .RestrictionExpiresAt}}</div>
|
||||
<div>{{t .LangCode "qlist.restrictionBanner" .RestrictionLevel .RestrictionExpiresAt}} <span class="uk-text-meta">·</span> <a href="/rules">{{t .LangCode "qlist.restrictionRulesLink"}}</a></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user