Merge pull request #13142 from annando/collapse-author
Add menu entry to directly collapse posts
This commit is contained in:
commit
3dc861a21e
7 changed files with 181 additions and 109 deletions
16
mod/item.php
16
mod/item.php
|
@ -384,6 +384,22 @@ function item_content(App $a)
|
||||||
|
|
||||||
Contact\User::setIgnored($item['author-id'], DI::userSession()->getLocalUserId(), true);
|
Contact\User::setIgnored($item['author-id'], DI::userSession()->getLocalUserId(), true);
|
||||||
|
|
||||||
|
if (DI::mode()->isAjax()) {
|
||||||
|
// ajax return: [<item id>, 0 (no perm) | <owner id>]
|
||||||
|
System::jsonExit([intval($args->get(2)), DI::userSession()->getLocalUserId()]);
|
||||||
|
} else {
|
||||||
|
item_redirect_after_action($item, $args->get(3));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'collapse':
|
||||||
|
$item = Post::selectFirstForUser(DI::userSession()->getLocalUserId(), ['guid', 'author-id', 'parent', 'gravity'], ['id' => $args->get(2)]);
|
||||||
|
if (empty($item['author-id'])) {
|
||||||
|
throw new HTTPException\NotFoundException('Item not found');
|
||||||
|
}
|
||||||
|
|
||||||
|
Contact\User::setCollapsed($item['author-id'], DI::userSession()->getLocalUserId(), true);
|
||||||
|
|
||||||
if (DI::mode()->isAjax()) {
|
if (DI::mode()->isAjax()) {
|
||||||
// ajax return: [<item id>, 0 (no perm) | <owner id>]
|
// ajax return: [<item id>, 0 (no perm) | <owner id>]
|
||||||
System::jsonExit([intval($args->get(2)), DI::userSession()->getLocalUserId()]);
|
System::jsonExit([intval($args->get(2)), DI::userSession()->getLocalUserId()]);
|
||||||
|
|
|
@ -247,6 +247,7 @@ class Page implements ArrayAccess
|
||||||
'delitem' => $l10n->t('Delete this item?'),
|
'delitem' => $l10n->t('Delete this item?'),
|
||||||
'blockAuthor' => $l10n->t('Block this author? They won\'t be able to follow you nor see your public posts, and you won\'t be able to see their posts and their notifications.'),
|
'blockAuthor' => $l10n->t('Block this author? They won\'t be able to follow you nor see your public posts, and you won\'t be able to see their posts and their notifications.'),
|
||||||
'ignoreAuthor' => $l10n->t('Ignore this author? You won\'t be able to see their posts and their notifications.'),
|
'ignoreAuthor' => $l10n->t('Ignore this author? You won\'t be able to see their posts and their notifications.'),
|
||||||
|
'collapseAuthor' => $l10n->t('Collapse this author\'s posts?'),
|
||||||
|
|
||||||
'likeError' => $l10n->t('Like not successful'),
|
'likeError' => $l10n->t('Like not successful'),
|
||||||
'dislikeError' => $l10n->t('Dislike not successful'),
|
'dislikeError' => $l10n->t('Dislike not successful'),
|
||||||
|
|
|
@ -250,6 +250,7 @@ class Post
|
||||||
$drop = false;
|
$drop = false;
|
||||||
$block = false;
|
$block = false;
|
||||||
$ignore = false;
|
$ignore = false;
|
||||||
|
$collapse = false;
|
||||||
if (DI::userSession()->getLocalUserId()) {
|
if (DI::userSession()->getLocalUserId()) {
|
||||||
$drop = [
|
$drop = [
|
||||||
'dropping' => $dropping,
|
'dropping' => $dropping,
|
||||||
|
@ -270,6 +271,11 @@ class Post
|
||||||
'ignore' => DI::l10n()->t('Ignore %s', $item['author-name']),
|
'ignore' => DI::l10n()->t('Ignore %s', $item['author-name']),
|
||||||
'author_id' => $item['author-id'],
|
'author_id' => $item['author-id'],
|
||||||
];
|
];
|
||||||
|
$collapse = [
|
||||||
|
'collapsing' => true,
|
||||||
|
'collapse' => DI::l10n()->t('Collapse %s', $item['author-name']),
|
||||||
|
'author_id' => $item['author-id'],
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
$filer = DI::userSession()->getLocalUserId() ? DI::l10n()->t('Save to folder') : false;
|
$filer = DI::userSession()->getLocalUserId() ? DI::l10n()->t('Save to folder') : false;
|
||||||
|
@ -536,6 +542,7 @@ class Post
|
||||||
'drop' => $drop,
|
'drop' => $drop,
|
||||||
'block' => $block,
|
'block' => $block,
|
||||||
'ignore_author' => $ignore,
|
'ignore_author' => $ignore,
|
||||||
|
'collapse' => $collapse,
|
||||||
'vote' => $buttons,
|
'vote' => $buttons,
|
||||||
'like_html' => $responses['like']['output'],
|
'like_html' => $responses['like']['output'],
|
||||||
'dislike_html' => $responses['dislike']['output'],
|
'dislike_html' => $responses['dislike']['output'],
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 2023.05-rc\n"
|
"Project-Id-Version: 2023.05-rc\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2023-05-19 19:50+0000\n"
|
"POT-Creation-Date: 2023-05-20 12:23+0000\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -38,13 +38,13 @@ msgstr ""
|
||||||
msgid "Empty post discarded."
|
msgid "Empty post discarded."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/item.php:411 src/Module/Admin/Themes/Details.php:39
|
#: mod/item.php:427 src/Module/Admin/Themes/Details.php:39
|
||||||
#: src/Module/Admin/Themes/Index.php:59 src/Module/Debug/ItemBody.php:42
|
#: src/Module/Admin/Themes/Index.php:59 src/Module/Debug/ItemBody.php:42
|
||||||
#: src/Module/Debug/ItemBody.php:57 src/Module/Item/Feed.php:80
|
#: src/Module/Debug/ItemBody.php:57 src/Module/Item/Feed.php:80
|
||||||
msgid "Item not found."
|
msgid "Item not found."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/item.php:435 mod/message.php:67 mod/message.php:113 mod/notes.php:45
|
#: mod/item.php:451 mod/message.php:67 mod/message.php:113 mod/notes.php:45
|
||||||
#: mod/photos.php:152 mod/photos.php:667 src/Model/Event.php:522
|
#: mod/photos.php:152 mod/photos.php:667 src/Model/Event.php:522
|
||||||
#: src/Module/Attach.php:55 src/Module/BaseApi.php:99
|
#: src/Module/Attach.php:55 src/Module/BaseApi.php:99
|
||||||
#: src/Module/BaseNotifications.php:98 src/Module/BaseSettings.php:52
|
#: src/Module/BaseNotifications.php:98 src/Module/BaseSettings.php:52
|
||||||
|
@ -294,7 +294,7 @@ msgstr ""
|
||||||
#: mod/message.php:201 mod/message.php:357 mod/photos.php:1289
|
#: mod/message.php:201 mod/message.php:357 mod/photos.php:1289
|
||||||
#: src/Content/Conversation.php:390 src/Content/Conversation.php:734
|
#: src/Content/Conversation.php:390 src/Content/Conversation.php:734
|
||||||
#: src/Module/Item/Compose.php:205 src/Module/Post/Edit.php:145
|
#: src/Module/Item/Compose.php:205 src/Module/Post/Edit.php:145
|
||||||
#: src/Module/Profile/UnkMail.php:154 src/Object/Post.php:550
|
#: src/Module/Profile/UnkMail.php:154 src/Object/Post.php:557
|
||||||
msgid "Please wait"
|
msgid "Please wait"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ msgstr ""
|
||||||
#: src/Module/Install.php:309 src/Module/Invite.php:178
|
#: src/Module/Install.php:309 src/Module/Invite.php:178
|
||||||
#: src/Module/Item/Compose.php:189 src/Module/Moderation/Item/Source.php:79
|
#: src/Module/Item/Compose.php:189 src/Module/Moderation/Item/Source.php:79
|
||||||
#: src/Module/Profile/Profile.php:274 src/Module/Profile/UnkMail.php:155
|
#: src/Module/Profile/Profile.php:274 src/Module/Profile/UnkMail.php:155
|
||||||
#: src/Module/Settings/Profile/Index.php:230 src/Object/Post.php:1063
|
#: src/Module/Settings/Profile/Index.php:230 src/Object/Post.php:1070
|
||||||
#: view/theme/duepuntozero/config.php:85 view/theme/frio/config.php:171
|
#: view/theme/duepuntozero/config.php:85 view/theme/frio/config.php:171
|
||||||
#: view/theme/quattro/config.php:87 view/theme/vier/config.php:135
|
#: view/theme/quattro/config.php:87 view/theme/vier/config.php:135
|
||||||
msgid "Submit"
|
msgid "Submit"
|
||||||
|
@ -596,28 +596,28 @@ msgstr ""
|
||||||
|
|
||||||
#: mod/photos.php:1133 mod/photos.php:1189 mod/photos.php:1263
|
#: mod/photos.php:1133 mod/photos.php:1189 mod/photos.php:1263
|
||||||
#: src/Module/Contact.php:588 src/Module/Item/Compose.php:188
|
#: src/Module/Contact.php:588 src/Module/Item/Compose.php:188
|
||||||
#: src/Object/Post.php:1060
|
#: src/Object/Post.php:1067
|
||||||
msgid "This is you"
|
msgid "This is you"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/photos.php:1135 mod/photos.php:1191 mod/photos.php:1265
|
#: mod/photos.php:1135 mod/photos.php:1191 mod/photos.php:1265
|
||||||
#: src/Object/Post.php:544 src/Object/Post.php:1062
|
#: src/Object/Post.php:551 src/Object/Post.php:1069
|
||||||
msgid "Comment"
|
msgid "Comment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/photos.php:1137 mod/photos.php:1193 mod/photos.php:1267
|
#: mod/photos.php:1137 mod/photos.php:1193 mod/photos.php:1267
|
||||||
#: src/Content/Conversation.php:405 src/Module/Calendar/Event/Form.php:248
|
#: src/Content/Conversation.php:405 src/Module/Calendar/Event/Form.php:248
|
||||||
#: src/Module/Item/Compose.php:200 src/Module/Post/Edit.php:165
|
#: src/Module/Item/Compose.php:200 src/Module/Post/Edit.php:165
|
||||||
#: src/Object/Post.php:1075
|
#: src/Object/Post.php:1082
|
||||||
msgid "Preview"
|
msgid "Preview"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/photos.php:1138 src/Content/Conversation.php:359
|
#: mod/photos.php:1138 src/Content/Conversation.php:359
|
||||||
#: src/Module/Post/Edit.php:130 src/Object/Post.php:1064
|
#: src/Module/Post/Edit.php:130 src/Object/Post.php:1071
|
||||||
msgid "Loading..."
|
msgid "Loading..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/photos.php:1224 src/Content/Conversation.php:650 src/Object/Post.php:257
|
#: mod/photos.php:1224 src/Content/Conversation.php:650 src/Object/Post.php:258
|
||||||
msgid "Select"
|
msgid "Select"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -629,19 +629,19 @@ msgstr ""
|
||||||
msgid "Delete"
|
msgid "Delete"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/photos.php:1286 src/Object/Post.php:385
|
#: mod/photos.php:1286 src/Object/Post.php:391
|
||||||
msgid "Like"
|
msgid "Like"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/photos.php:1287 src/Object/Post.php:385
|
#: mod/photos.php:1287 src/Object/Post.php:391
|
||||||
msgid "I like this (toggle)"
|
msgid "I like this (toggle)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/photos.php:1288 src/Object/Post.php:386
|
#: mod/photos.php:1288 src/Object/Post.php:392
|
||||||
msgid "Dislike"
|
msgid "Dislike"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/photos.php:1290 src/Object/Post.php:386
|
#: mod/photos.php:1290 src/Object/Post.php:392
|
||||||
msgid "I don't like this (toggle)"
|
msgid "I don't like this (toggle)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -673,77 +673,81 @@ msgid ""
|
||||||
"notifications."
|
"notifications."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:251
|
#: src/App/Page.php:250
|
||||||
msgid "Like not successful"
|
msgid "Collapse this author's posts?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:252
|
#: src/App/Page.php:252
|
||||||
msgid "Dislike not successful"
|
msgid "Like not successful"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:253
|
#: src/App/Page.php:253
|
||||||
msgid "Sharing not successful"
|
msgid "Dislike not successful"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:254
|
#: src/App/Page.php:254
|
||||||
msgid "Attendance unsuccessful"
|
msgid "Sharing not successful"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:255
|
#: src/App/Page.php:255
|
||||||
msgid "Backend error"
|
msgid "Attendance unsuccessful"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:256
|
#: src/App/Page.php:256
|
||||||
|
msgid "Backend error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/App/Page.php:257
|
||||||
msgid "Network error"
|
msgid "Network error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:259
|
#: src/App/Page.php:260
|
||||||
msgid "Drop files here to upload"
|
msgid "Drop files here to upload"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:260
|
#: src/App/Page.php:261
|
||||||
msgid "Your browser does not support drag and drop file uploads."
|
msgid "Your browser does not support drag and drop file uploads."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:261
|
#: src/App/Page.php:262
|
||||||
msgid ""
|
msgid ""
|
||||||
"Please use the fallback form below to upload your files like in the olden "
|
"Please use the fallback form below to upload your files like in the olden "
|
||||||
"days."
|
"days."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:262
|
#: src/App/Page.php:263
|
||||||
msgid "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB."
|
msgid "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:263
|
#: src/App/Page.php:264
|
||||||
msgid "You can't upload files of this type."
|
msgid "You can't upload files of this type."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:264
|
#: src/App/Page.php:265
|
||||||
msgid "Server responded with {{statusCode}} code."
|
msgid "Server responded with {{statusCode}} code."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:265
|
#: src/App/Page.php:266
|
||||||
msgid "Cancel upload"
|
msgid "Cancel upload"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:266
|
#: src/App/Page.php:267
|
||||||
msgid "Upload canceled."
|
msgid "Upload canceled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:267
|
#: src/App/Page.php:268
|
||||||
msgid "Are you sure you want to cancel this upload?"
|
msgid "Are you sure you want to cancel this upload?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:268
|
#: src/App/Page.php:269
|
||||||
msgid "Remove file"
|
msgid "Remove file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:269
|
#: src/App/Page.php:270
|
||||||
msgid "You can't upload any more files."
|
msgid "You can't upload any more files."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:347
|
#: src/App/Page.php:348
|
||||||
msgid "toggle mobile"
|
msgid "toggle mobile"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1213,7 +1217,7 @@ msgid "Visible to <strong>everybody</strong>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:329 src/Module/Item/Compose.php:199
|
#: src/Content/Conversation.php:329 src/Module/Item/Compose.php:199
|
||||||
#: src/Object/Post.php:1074
|
#: src/Object/Post.php:1081
|
||||||
msgid "Please enter a image/video/audio/webpage URL:"
|
msgid "Please enter a image/video/audio/webpage URL:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1258,47 +1262,47 @@ msgid "attach file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:364 src/Module/Item/Compose.php:190
|
#: src/Content/Conversation.php:364 src/Module/Item/Compose.php:190
|
||||||
#: src/Module/Post/Edit.php:171 src/Object/Post.php:1065
|
#: src/Module/Post/Edit.php:171 src/Object/Post.php:1072
|
||||||
msgid "Bold"
|
msgid "Bold"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:365 src/Module/Item/Compose.php:191
|
#: src/Content/Conversation.php:365 src/Module/Item/Compose.php:191
|
||||||
#: src/Module/Post/Edit.php:172 src/Object/Post.php:1066
|
#: src/Module/Post/Edit.php:172 src/Object/Post.php:1073
|
||||||
msgid "Italic"
|
msgid "Italic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:366 src/Module/Item/Compose.php:192
|
#: src/Content/Conversation.php:366 src/Module/Item/Compose.php:192
|
||||||
#: src/Module/Post/Edit.php:173 src/Object/Post.php:1067
|
#: src/Module/Post/Edit.php:173 src/Object/Post.php:1074
|
||||||
msgid "Underline"
|
msgid "Underline"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:367 src/Module/Item/Compose.php:193
|
#: src/Content/Conversation.php:367 src/Module/Item/Compose.php:193
|
||||||
#: src/Module/Post/Edit.php:174 src/Object/Post.php:1068
|
#: src/Module/Post/Edit.php:174 src/Object/Post.php:1075
|
||||||
msgid "Quote"
|
msgid "Quote"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:368 src/Module/Item/Compose.php:194
|
#: src/Content/Conversation.php:368 src/Module/Item/Compose.php:194
|
||||||
#: src/Module/Post/Edit.php:175 src/Object/Post.php:1069
|
#: src/Module/Post/Edit.php:175 src/Object/Post.php:1076
|
||||||
msgid "Add emojis"
|
msgid "Add emojis"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:369 src/Module/Item/Compose.php:195
|
#: src/Content/Conversation.php:369 src/Module/Item/Compose.php:195
|
||||||
#: src/Module/Post/Edit.php:176 src/Object/Post.php:1070
|
#: src/Module/Post/Edit.php:176 src/Object/Post.php:1077
|
||||||
msgid "Code"
|
msgid "Code"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:370 src/Module/Item/Compose.php:196
|
#: src/Content/Conversation.php:370 src/Module/Item/Compose.php:196
|
||||||
#: src/Object/Post.php:1071
|
#: src/Object/Post.php:1078
|
||||||
msgid "Image"
|
msgid "Image"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:371 src/Module/Item/Compose.php:197
|
#: src/Content/Conversation.php:371 src/Module/Item/Compose.php:197
|
||||||
#: src/Module/Post/Edit.php:177 src/Object/Post.php:1072
|
#: src/Module/Post/Edit.php:177 src/Object/Post.php:1079
|
||||||
msgid "Link"
|
msgid "Link"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:372 src/Module/Item/Compose.php:198
|
#: src/Content/Conversation.php:372 src/Module/Item/Compose.php:198
|
||||||
#: src/Module/Post/Edit.php:178 src/Object/Post.php:1073
|
#: src/Module/Post/Edit.php:178 src/Object/Post.php:1080
|
||||||
msgid "Link or Media"
|
msgid "Link or Media"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1364,21 +1368,21 @@ msgstr ""
|
||||||
msgid "Pinned item"
|
msgid "Pinned item"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:694 src/Object/Post.php:496
|
#: src/Content/Conversation.php:694 src/Object/Post.php:502
|
||||||
#: src/Object/Post.php:497
|
#: src/Object/Post.php:503
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "View %s's profile @ %s"
|
msgid "View %s's profile @ %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:707 src/Object/Post.php:484
|
#: src/Content/Conversation.php:707 src/Object/Post.php:490
|
||||||
msgid "Categories:"
|
msgid "Categories:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:708 src/Object/Post.php:485
|
#: src/Content/Conversation.php:708 src/Object/Post.php:491
|
||||||
msgid "Filed under:"
|
msgid "Filed under:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Conversation.php:716 src/Object/Post.php:510
|
#: src/Content/Conversation.php:716 src/Object/Post.php:516
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%s from %s"
|
msgid "%s from %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -1677,7 +1681,7 @@ msgstr ""
|
||||||
msgid "Collapse"
|
msgid "Collapse"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Item.php:431 src/Object/Post.php:465
|
#: src/Content/Item.php:431 src/Object/Post.php:471
|
||||||
msgid "Languages"
|
msgid "Languages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -5746,7 +5750,7 @@ msgid "Only show blocked contacts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Contact.php:362 src/Module/Contact.php:417
|
#: src/Module/Contact.php:362 src/Module/Contact.php:417
|
||||||
#: src/Object/Post.php:345
|
#: src/Object/Post.php:351
|
||||||
msgid "Ignored"
|
msgid "Ignored"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -6451,7 +6455,7 @@ msgstr ""
|
||||||
msgid "Posts that mention or involve you"
|
msgid "Posts that mention or involve you"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Conversation/Network.php:289 src/Object/Post.php:357
|
#: src/Module/Conversation/Network.php:289 src/Object/Post.php:363
|
||||||
msgid "Starred"
|
msgid "Starred"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -11266,217 +11270,222 @@ msgstr ""
|
||||||
msgid "Remove locally"
|
msgid "Remove locally"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:265
|
#: src/Object/Post.php:266
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Block %s"
|
msgid "Block %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:270
|
#: src/Object/Post.php:271
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Ignore %s"
|
msgid "Ignore %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:275
|
#: src/Object/Post.php:276
|
||||||
|
#, php-format
|
||||||
|
msgid "Collapse %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/Object/Post.php:281
|
||||||
msgid "Save to folder"
|
msgid "Save to folder"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:310
|
#: src/Object/Post.php:316
|
||||||
msgid "I will attend"
|
msgid "I will attend"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:310
|
#: src/Object/Post.php:316
|
||||||
msgid "I will not attend"
|
msgid "I will not attend"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:310
|
#: src/Object/Post.php:316
|
||||||
msgid "I might attend"
|
msgid "I might attend"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:340
|
#: src/Object/Post.php:346
|
||||||
msgid "Ignore thread"
|
msgid "Ignore thread"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:341
|
#: src/Object/Post.php:347
|
||||||
msgid "Unignore thread"
|
msgid "Unignore thread"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:342
|
#: src/Object/Post.php:348
|
||||||
msgid "Toggle ignore status"
|
msgid "Toggle ignore status"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:352
|
#: src/Object/Post.php:358
|
||||||
msgid "Add star"
|
msgid "Add star"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:353
|
#: src/Object/Post.php:359
|
||||||
msgid "Remove star"
|
msgid "Remove star"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:354
|
#: src/Object/Post.php:360
|
||||||
msgid "Toggle star status"
|
msgid "Toggle star status"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:365
|
#: src/Object/Post.php:371
|
||||||
msgid "Pin"
|
msgid "Pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:366
|
#: src/Object/Post.php:372
|
||||||
msgid "Unpin"
|
msgid "Unpin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:367
|
#: src/Object/Post.php:373
|
||||||
msgid "Toggle pin status"
|
msgid "Toggle pin status"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:370
|
#: src/Object/Post.php:376
|
||||||
msgid "Pinned"
|
msgid "Pinned"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:375
|
#: src/Object/Post.php:381
|
||||||
msgid "Add tag"
|
msgid "Add tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:388
|
#: src/Object/Post.php:394
|
||||||
msgid "Quote share this"
|
msgid "Quote share this"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:388
|
#: src/Object/Post.php:394
|
||||||
msgid "Quote Share"
|
msgid "Quote Share"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:391
|
#: src/Object/Post.php:397
|
||||||
msgid "Reshare this"
|
msgid "Reshare this"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:391
|
#: src/Object/Post.php:397
|
||||||
msgid "Reshare"
|
msgid "Reshare"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:392
|
#: src/Object/Post.php:398
|
||||||
msgid "Cancel your Reshare"
|
msgid "Cancel your Reshare"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:392
|
#: src/Object/Post.php:398
|
||||||
msgid "Unshare"
|
msgid "Unshare"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:443
|
#: src/Object/Post.php:449
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%s (Received %s)"
|
msgid "%s (Received %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:448
|
#: src/Object/Post.php:454
|
||||||
msgid "Comment this item on your system"
|
msgid "Comment this item on your system"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:448
|
#: src/Object/Post.php:454
|
||||||
msgid "Remote comment"
|
msgid "Remote comment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:469
|
#: src/Object/Post.php:475
|
||||||
msgid "Share via ..."
|
msgid "Share via ..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:469
|
#: src/Object/Post.php:475
|
||||||
msgid "Share via external services"
|
msgid "Share via external services"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:498
|
#: src/Object/Post.php:504
|
||||||
msgid "to"
|
msgid "to"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:499
|
#: src/Object/Post.php:505
|
||||||
msgid "via"
|
msgid "via"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:500
|
#: src/Object/Post.php:506
|
||||||
msgid "Wall-to-Wall"
|
msgid "Wall-to-Wall"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:501
|
#: src/Object/Post.php:507
|
||||||
msgid "via Wall-To-Wall:"
|
msgid "via Wall-To-Wall:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:545
|
#: src/Object/Post.php:552
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Reply to %s"
|
msgid "Reply to %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:548
|
#: src/Object/Post.php:555
|
||||||
msgid "More"
|
msgid "More"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:566
|
#: src/Object/Post.php:573
|
||||||
msgid "Notifier task is pending"
|
msgid "Notifier task is pending"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:567
|
#: src/Object/Post.php:574
|
||||||
msgid "Delivery to remote servers is pending"
|
msgid "Delivery to remote servers is pending"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:568
|
#: src/Object/Post.php:575
|
||||||
msgid "Delivery to remote servers is underway"
|
msgid "Delivery to remote servers is underway"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:569
|
#: src/Object/Post.php:576
|
||||||
msgid "Delivery to remote servers is mostly done"
|
msgid "Delivery to remote servers is mostly done"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:570
|
#: src/Object/Post.php:577
|
||||||
msgid "Delivery to remote servers is done"
|
msgid "Delivery to remote servers is done"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:590
|
#: src/Object/Post.php:597
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d comment"
|
msgid "%d comment"
|
||||||
msgid_plural "%d comments"
|
msgid_plural "%d comments"
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
|
|
||||||
#: src/Object/Post.php:591
|
#: src/Object/Post.php:598
|
||||||
msgid "Show more"
|
msgid "Show more"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:592
|
#: src/Object/Post.php:599
|
||||||
msgid "Show fewer"
|
msgid "Show fewer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:628
|
#: src/Object/Post.php:635
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Reshared by: %s"
|
msgid "Reshared by: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:633
|
#: src/Object/Post.php:640
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Viewed by: %s"
|
msgid "Viewed by: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:638
|
#: src/Object/Post.php:645
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Liked by: %s"
|
msgid "Liked by: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:643
|
#: src/Object/Post.php:650
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Disliked by: %s"
|
msgid "Disliked by: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:648
|
#: src/Object/Post.php:655
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Attended by: %s"
|
msgid "Attended by: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:653
|
#: src/Object/Post.php:660
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Maybe attended by: %s"
|
msgid "Maybe attended by: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:658
|
#: src/Object/Post.php:665
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Not attended by: %s"
|
msgid "Not attended by: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Object/Post.php:663
|
#: src/Object/Post.php:670
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Reacted with %s by: %s"
|
msgid "Reacted with %s by: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -206,6 +206,10 @@ function confirmIgnore() {
|
||||||
return confirm(aStr.ignoreAuthor);
|
return confirm(aStr.ignoreAuthor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function confirmCollapse() {
|
||||||
|
return confirm(aStr.collapseAuthor);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hide and removes an item element from the DOM after the deletion url is
|
* Hide and removes an item element from the DOM after the deletion url is
|
||||||
* successful, restore it else.
|
* successful, restore it else.
|
||||||
|
@ -292,4 +296,33 @@ function ignoreAuthor(url, elementId) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Collapse author posts
|
||||||
|
*
|
||||||
|
* @param {string} url The item collapse URL
|
||||||
|
* @param {string} elementId The DOM id of the item element
|
||||||
|
* @returns {undefined}
|
||||||
|
*/
|
||||||
|
function collapseAuthor(url, elementId) {
|
||||||
|
if (confirmCollapse()) {
|
||||||
|
$("body").css("cursor", "wait");
|
||||||
|
|
||||||
|
var $el = $(document.getElementById(elementId));
|
||||||
|
|
||||||
|
$el.fadeTo("fast", 0.33, function () {
|
||||||
|
$.get(url)
|
||||||
|
.then(function () {
|
||||||
|
//$el.remove();
|
||||||
|
})
|
||||||
|
.fail(function () {
|
||||||
|
// @todo Show related error message
|
||||||
|
$el.show();
|
||||||
|
})
|
||||||
|
.always(function () {
|
||||||
|
$("body").css("cursor", "auto");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
// @license-end
|
// @license-end
|
||||||
|
|
|
@ -6,6 +6,7 @@ They are loaded into the html <head> so that js functions can use them *}}
|
||||||
delitem : "{{$l10n.delitem|escape:'javascript' nofilter}}",
|
delitem : "{{$l10n.delitem|escape:'javascript' nofilter}}",
|
||||||
blockAuthor : "{{$l10n.blockAuthor|escape:'javascript' nofilter}}",
|
blockAuthor : "{{$l10n.blockAuthor|escape:'javascript' nofilter}}",
|
||||||
ignoreAuthor : "{{$l10n.ignoreAuthor|escape:'javascript' nofilter}}",
|
ignoreAuthor : "{{$l10n.ignoreAuthor|escape:'javascript' nofilter}}",
|
||||||
|
collapseAuthor : "{{$l10n.collapseAuthor|escape:'javascript' nofilter}}",
|
||||||
};
|
};
|
||||||
const aActErr = {
|
const aActErr = {
|
||||||
like : "{{$l10n.likeError|escape:'javascript' nofilter}}",
|
like : "{{$l10n.likeError|escape:'javascript' nofilter}}",
|
||||||
|
|
|
@ -404,6 +404,11 @@ as the value of $top_child_total (this is done at the end of this file)
|
||||||
<a class="btn-link navicon ignore" href="javascript:ignoreAuthor('item/ignore/{{$item.id}}/{{$item.return}}', 'item-{{$item.guid}}');" title="{{$item.ignore_author.ignore}}"><i class="fa fa-ban" aria-hidden="true"></i> {{$item.ignore_author.ignore}}</a>
|
<a class="btn-link navicon ignore" href="javascript:ignoreAuthor('item/ignore/{{$item.id}}/{{$item.return}}', 'item-{{$item.guid}}');" title="{{$item.ignore_author.ignore}}"><i class="fa fa-ban" aria-hidden="true"></i> {{$item.ignore_author.ignore}}</a>
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{if $item.collapse}}
|
||||||
|
<li role="menuitem">
|
||||||
|
<a class="btn-link navicon collapse" href="javascript:collapseAuthor('item/collapse/{{$item.id}}/{{$item.return}}', 'item-{{$item.guid}}');" title="{{$item.collapse.collapse}}"><i class="fa fa-ban" aria-hidden="true"></i> {{$item.collapse.collapse}}</a>
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in a new issue