adding missing reply
This commit is contained in:
parent
5709dba71a
commit
8903281fe5
3 changed files with 60 additions and 28 deletions
|
@ -3,12 +3,12 @@
|
|||
<a hx-post="{% url 'journal:post_delete' post.pk %}"
|
||||
hx-swap="outerHTML"
|
||||
hx-trigger="click once"
|
||||
{% if post.piece %} hx-confirm="{% trans "are you sure to delete the mark or note related with this post?" %}" {% else %} hx-confirm="{% trans "are you sure to delete this post?" %}" {% endif %}
|
||||
{% if post.piece %} hx-confirm="‼️ {% trans "Are you sure to delete this post and the mark or note related with it?" %}" {% elif parent_post %} hx-confirm="{% trans "Are you sure to delete this reply?" %}" {% else %} hx-confirm="{% trans "Are you sure to delete this post?" %}" {% endif %}
|
||||
hx-target="#replies_{{ parent_post.pk }}">
|
||||
{% if post.piece %}
|
||||
<!--i class="fa-regular fa-trash-can"></i -->
|
||||
{% else %}
|
||||
<i class="fa-regular fa-square-minus"></i>
|
||||
<i class="fa-regular fa-trash-can"></i>
|
||||
{% endif %}
|
||||
</a>
|
||||
</span>
|
||||
|
|
|
@ -6,7 +6,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-06-20 11:26-0400\n"
|
||||
"POT-Creation-Date: 2024-06-20 21:41-0400\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -1102,15 +1102,11 @@ msgid "mark all as read"
|
|||
msgstr "全部标为已读"
|
||||
|
||||
#: catalog/templates/discover.html:170
|
||||
msgid "Popular Posts"
|
||||
msgstr "热门帖文"
|
||||
|
||||
#: catalog/templates/discover.html:178
|
||||
#: common/templates/_sidebar_anonymous.html:51
|
||||
msgid "Popular Tags"
|
||||
msgstr "热门标签"
|
||||
|
||||
#: catalog/templates/discover.html:185 catalog/templates/item_base.html:236
|
||||
#: catalog/templates/discover.html:177 catalog/templates/item_base.html:236
|
||||
#: catalog/templates/item_mark_list.html:54
|
||||
#: catalog/templates/item_review_list.html:50 common/templates/_sidebar.html:99
|
||||
#: common/templates/_sidebar_anonymous.html:43
|
||||
|
@ -1125,6 +1121,10 @@ msgstr "热门标签"
|
|||
msgid "nothing so far."
|
||||
msgstr "暂无内容。"
|
||||
|
||||
#: catalog/templates/discover.html:186
|
||||
msgid "Popular Posts"
|
||||
msgstr "热门帖文"
|
||||
|
||||
#: catalog/templates/edition.html:36
|
||||
msgid "publication date"
|
||||
msgstr "发行时间"
|
||||
|
@ -1380,21 +1380,21 @@ msgstr "条目已不存在"
|
|||
|
||||
#: catalog/views_edit.py:122 catalog/views_edit.py:145
|
||||
#: catalog/views_edit.py:197 catalog/views_edit.py:273
|
||||
#: catalog/views_edit.py:350 journal/views/collection.py:52
|
||||
#: catalog/views_edit.py:352 journal/views/collection.py:52
|
||||
#: journal/views/collection.py:102 journal/views/collection.py:114
|
||||
#: journal/views/collection.py:130 journal/views/collection.py:161
|
||||
#: journal/views/collection.py:180 journal/views/collection.py:200
|
||||
#: journal/views/collection.py:212 journal/views/collection.py:226
|
||||
#: journal/views/collection.py:240 journal/views/collection.py:243
|
||||
#: journal/views/collection.py:267 journal/views/common.py:134
|
||||
#: journal/views/post.py:20 journal/views/review.py:32
|
||||
#: journal/views/post.py:21 journal/views/post.py:43 journal/views/review.py:32
|
||||
#: journal/views/review.py:46
|
||||
msgid "Insufficient permission"
|
||||
msgstr "权限不足"
|
||||
|
||||
#: catalog/views_edit.py:200 journal/views/collection.py:229
|
||||
#: journal/views/collection.py:296 journal/views/common.py:81
|
||||
#: journal/views/mark.py:141 journal/views/post.py:41 journal/views/post.py:55
|
||||
#: journal/views/mark.py:141 journal/views/post.py:57 journal/views/post.py:71
|
||||
#: journal/views/review.py:93 journal/views/review.py:96 users/views.py:169
|
||||
msgid "Invalid parameter"
|
||||
msgstr "无效参数"
|
||||
|
@ -1415,11 +1415,11 @@ msgstr "无法合并到一个已经被合并或删除的条目"
|
|||
msgid "Cannot merge items in different categories"
|
||||
msgstr "无法合并不同类型的条目"
|
||||
|
||||
#: catalog/views_edit.py:324
|
||||
#: catalog/views_edit.py:326
|
||||
msgid "Cannot be linked to an item already deleted or merged"
|
||||
msgstr "无法关联到一个已经被合并或删除的条目"
|
||||
|
||||
#: catalog/views_edit.py:326
|
||||
#: catalog/views_edit.py:328
|
||||
msgid "Cannot link items other than editions"
|
||||
msgstr "无法关联到非图书类的条目"
|
||||
|
||||
|
@ -2274,6 +2274,18 @@ msgstr "评分"
|
|||
msgid "boost"
|
||||
msgstr "转播"
|
||||
|
||||
#: journal/templates/action_delete_post.html:6
|
||||
msgid "Are you sure to delete this post and the mark or note related with it?"
|
||||
msgstr "确认删除这则帖文及其对应的标记/笔记/评论吗?"
|
||||
|
||||
#: journal/templates/action_delete_post.html:6
|
||||
msgid "Are you sure to delete this reply?"
|
||||
msgstr "确认删除这则回应吗?"
|
||||
|
||||
#: journal/templates/action_delete_post.html:6
|
||||
msgid "Are you sure to delete this post?"
|
||||
msgstr "确认删除这则帖文吗?"
|
||||
|
||||
#: journal/templates/action_like_post.html:10
|
||||
msgid "liked"
|
||||
msgstr "已喜欢"
|
||||
|
@ -2533,11 +2545,11 @@ msgstr "收藏单"
|
|||
msgid "liked collection"
|
||||
msgstr "喜欢的收藏单"
|
||||
|
||||
#: journal/templates/replies.html:46
|
||||
#: journal/templates/replies.html:53
|
||||
msgid "no replies so far."
|
||||
msgstr "暂无回应。"
|
||||
|
||||
#: journal/templates/replies.html:53
|
||||
#: journal/templates/replies.html:61
|
||||
msgid "add a reply"
|
||||
msgstr "添加回应"
|
||||
|
||||
|
@ -2698,6 +2710,10 @@ msgstr "进度类型(选填)"
|
|||
msgid "Invalid form data"
|
||||
msgstr "无效表单信息。"
|
||||
|
||||
#: journal/views/post.py:41
|
||||
msgid "Post not found"
|
||||
msgstr "帖文未找到"
|
||||
|
||||
#: journal/views/review.py:112 journal/views/review.py:126
|
||||
#, python-brace-format
|
||||
msgid "Reviews by {0}"
|
||||
|
|
|
@ -6,7 +6,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-06-20 11:26-0400\n"
|
||||
"POT-Creation-Date: 2024-06-20 21:41-0400\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -1102,15 +1102,11 @@ msgid "mark all as read"
|
|||
msgstr "全部標爲已讀"
|
||||
|
||||
#: catalog/templates/discover.html:170
|
||||
msgid "Popular Posts"
|
||||
msgstr "熱門帖文"
|
||||
|
||||
#: catalog/templates/discover.html:178
|
||||
#: common/templates/_sidebar_anonymous.html:51
|
||||
msgid "Popular Tags"
|
||||
msgstr "熱門標籤"
|
||||
|
||||
#: catalog/templates/discover.html:185 catalog/templates/item_base.html:236
|
||||
#: catalog/templates/discover.html:177 catalog/templates/item_base.html:236
|
||||
#: catalog/templates/item_mark_list.html:54
|
||||
#: catalog/templates/item_review_list.html:50 common/templates/_sidebar.html:99
|
||||
#: common/templates/_sidebar_anonymous.html:43
|
||||
|
@ -1125,6 +1121,10 @@ msgstr "熱門標籤"
|
|||
msgid "nothing so far."
|
||||
msgstr "暫無內容。"
|
||||
|
||||
#: catalog/templates/discover.html:186
|
||||
msgid "Popular Posts"
|
||||
msgstr "熱門帖文"
|
||||
|
||||
#: catalog/templates/edition.html:36
|
||||
msgid "publication date"
|
||||
msgstr "發行時間"
|
||||
|
@ -1380,21 +1380,21 @@ msgstr "條目已不存在"
|
|||
|
||||
#: catalog/views_edit.py:122 catalog/views_edit.py:145
|
||||
#: catalog/views_edit.py:197 catalog/views_edit.py:273
|
||||
#: catalog/views_edit.py:350 journal/views/collection.py:52
|
||||
#: catalog/views_edit.py:352 journal/views/collection.py:52
|
||||
#: journal/views/collection.py:102 journal/views/collection.py:114
|
||||
#: journal/views/collection.py:130 journal/views/collection.py:161
|
||||
#: journal/views/collection.py:180 journal/views/collection.py:200
|
||||
#: journal/views/collection.py:212 journal/views/collection.py:226
|
||||
#: journal/views/collection.py:240 journal/views/collection.py:243
|
||||
#: journal/views/collection.py:267 journal/views/common.py:134
|
||||
#: journal/views/post.py:20 journal/views/review.py:32
|
||||
#: journal/views/post.py:21 journal/views/post.py:43 journal/views/review.py:32
|
||||
#: journal/views/review.py:46
|
||||
msgid "Insufficient permission"
|
||||
msgstr "權限不足"
|
||||
|
||||
#: catalog/views_edit.py:200 journal/views/collection.py:229
|
||||
#: journal/views/collection.py:296 journal/views/common.py:81
|
||||
#: journal/views/mark.py:141 journal/views/post.py:41 journal/views/post.py:55
|
||||
#: journal/views/mark.py:141 journal/views/post.py:57 journal/views/post.py:71
|
||||
#: journal/views/review.py:93 journal/views/review.py:96 users/views.py:169
|
||||
msgid "Invalid parameter"
|
||||
msgstr "無效參數"
|
||||
|
@ -1415,11 +1415,11 @@ msgstr "無法合併到一個已經被合併或刪除的條目"
|
|||
msgid "Cannot merge items in different categories"
|
||||
msgstr "無法合併不同類型的條目"
|
||||
|
||||
#: catalog/views_edit.py:324
|
||||
#: catalog/views_edit.py:326
|
||||
msgid "Cannot be linked to an item already deleted or merged"
|
||||
msgstr "無法關聯到一個已經被合併或刪除的條目"
|
||||
|
||||
#: catalog/views_edit.py:326
|
||||
#: catalog/views_edit.py:328
|
||||
msgid "Cannot link items other than editions"
|
||||
msgstr "無法關聯到非圖書類的條目"
|
||||
|
||||
|
@ -2274,6 +2274,18 @@ msgstr "評分"
|
|||
msgid "boost"
|
||||
msgstr "轉播"
|
||||
|
||||
#: journal/templates/action_delete_post.html:6
|
||||
msgid "Are you sure to delete this post and the mark or note related with it?"
|
||||
msgstr "確認刪除這則帖文及其對應的標記/筆記/評論嗎?"
|
||||
|
||||
#: journal/templates/action_delete_post.html:6
|
||||
msgid "Are you sure to delete this reply?"
|
||||
msgstr "確認刪除這則回應嗎?"
|
||||
|
||||
#: journal/templates/action_delete_post.html:6
|
||||
msgid "Are you sure to delete this post?"
|
||||
msgstr "確認刪除這則帖文嗎?"
|
||||
|
||||
#: journal/templates/action_like_post.html:10
|
||||
msgid "liked"
|
||||
msgstr "已喜歡"
|
||||
|
@ -2533,11 +2545,11 @@ msgstr "收藏單"
|
|||
msgid "liked collection"
|
||||
msgstr "喜歡的收藏單"
|
||||
|
||||
#: journal/templates/replies.html:46
|
||||
#: journal/templates/replies.html:53
|
||||
msgid "no replies so far."
|
||||
msgstr "暫無回應。"
|
||||
|
||||
#: journal/templates/replies.html:53
|
||||
#: journal/templates/replies.html:61
|
||||
msgid "add a reply"
|
||||
msgstr "添加回應"
|
||||
|
||||
|
@ -2698,6 +2710,10 @@ msgstr "進度類型(選填)"
|
|||
msgid "Invalid form data"
|
||||
msgstr "無效表單信息。"
|
||||
|
||||
#: journal/views/post.py:41
|
||||
msgid "Post not found"
|
||||
msgstr "帖文未找到"
|
||||
|
||||
#: journal/views/review.py:112 journal/views/review.py:126
|
||||
#, python-brace-format
|
||||
msgid "Reviews by {0}"
|
||||
|
|
Loading…
Add table
Reference in a new issue