restrict v6
This commit is contained in:
@@ -85,6 +85,25 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
<p class="uk-text-small uk-text-right uk-text-muted">{{t .LangCode "qitem.answeredBy" .PageUser.Name (Date .Question.UpdatedAt "Y-m-d H:i:s")}}</p>
|
||||
{{ if not .CanDelete }}
|
||||
<!-- 举报入口:仅对非箱主显示;默认折叠,避免在每条回答下方都堆一个显眼按钮。
|
||||
理由为固定枚举(不接受自由文本),重复举报服务端幂等处理。 -->
|
||||
<div class="uk-margin-small-top">
|
||||
<details>
|
||||
<summary class="uk-text-small uk-text-muted" style="cursor: pointer;">⚑ {{t .LangCode "report.entry"}}</summary>
|
||||
<form method="post" action="/_/{{ .PageUser.Domain }}/{{ .Question.ID }}/report" class="uk-margin-small-top uk-flex uk-flex-middle uk-flex-wrap" style="gap: 8px;">
|
||||
{{ .CSRFTokenHTML }}
|
||||
<select name="reason" class="uk-select uk-form-small" style="max-width: 200px;">
|
||||
<option value="harassment">{{t .LangCode "report.reason.harassment"}}</option>
|
||||
<option value="doxxing">{{t .LangCode "report.reason.doxxing"}}</option>
|
||||
<option value="divisive">{{t .LangCode "report.reason.divisive"}}</option>
|
||||
<option value="other">{{t .LangCode "report.reason.other"}}</option>
|
||||
</select>
|
||||
<button type="submit" class="uk-button uk-button-default uk-button-small">{{t .LangCode "report.submit"}}</button>
|
||||
</form>
|
||||
</details>
|
||||
</div>
|
||||
{{ end }}
|
||||
<!-- 分享此提问(左)与 更新回答(右)一左一右分开;箱主未登录(无更新回答按钮)时分享按钮居中;编辑区在下方由 tbToggleAnswerEditor 控制 -->
|
||||
<div class="uk-flex uk-flex-middle uk-flex-wrap uk-margin-small-top {{ if not .CanDelete }}uk-flex-center{{ end }}" style="gap: 8px;">
|
||||
{{ if and (not .Question.IsPrivate) (ne .Question.Answer "") }}
|
||||
|
||||
Reference in New Issue
Block a user