From 0ac0e4e332a440b0229615a743c877fe01645706 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 24 Apr 2022 15:02:04 +0200 Subject: [PATCH] Added standalone button for "mark as read" --- com.woltlab.wcf/templates/articleList.tpl | 6 +++--- com.woltlab.wcf/templates/categoryArticleList.tpl | 6 +++--- com.woltlab.wcf/templates/unreadArticleList.tpl | 4 ++-- com.woltlab.wcf/templates/watchedArticleList.tpl | 4 ++-- wcfsetup/install/lang/de.xml | 2 +- wcfsetup/install/lang/en.xml | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/com.woltlab.wcf/templates/articleList.tpl b/com.woltlab.wcf/templates/articleList.tpl index 4aeb58ce57..6c25bf3722 100644 --- a/com.woltlab.wcf/templates/articleList.tpl +++ b/com.woltlab.wcf/templates/articleList.tpl @@ -71,13 +71,13 @@ {event name='sortOptions'} + {if ARTICLE_ENABLE_VISIT_TRACKING} + {lang}wcf.global.button.markAsRead{/lang} + {/if} {/capture} {capture assign='contentInteractionDropdownItems'}
  • {lang}wcf.global.button.rss{/lang}
  • - {if ARTICLE_ENABLE_VISIT_TRACKING} -
  • {lang}wcf.article.markAllAsRead{/lang}
  • - {/if} {/capture} {include file='header'} diff --git a/com.woltlab.wcf/templates/categoryArticleList.tpl b/com.woltlab.wcf/templates/categoryArticleList.tpl index 789ecc2827..4a99e1cb48 100644 --- a/com.woltlab.wcf/templates/categoryArticleList.tpl +++ b/com.woltlab.wcf/templates/categoryArticleList.tpl @@ -66,13 +66,13 @@ {if $__wcf->user->userID} {lang}wcf.user.objectWatch.button.subscribe{/lang} {/if} + {if ARTICLE_ENABLE_VISIT_TRACKING} + {lang}wcf.global.button.markAsRead{/lang} + {/if} {/capture} {capture assign='contentInteractionDropdownItems'}
  • {lang}wcf.global.button.rss{/lang}
  • - {if ARTICLE_ENABLE_VISIT_TRACKING} -
  • {lang}wcf.article.markAllAsRead{/lang}
  • - {/if} {/capture} {include file='header'} diff --git a/com.woltlab.wcf/templates/unreadArticleList.tpl b/com.woltlab.wcf/templates/unreadArticleList.tpl index ad138203ee..0b98b3ee18 100644 --- a/com.woltlab.wcf/templates/unreadArticleList.tpl +++ b/com.woltlab.wcf/templates/unreadArticleList.tpl @@ -43,9 +43,9 @@ {pages print=true assign='pagesLinks' controller='UnreadArticleList' link="pageNo=%d"} {/capture} -{capture assign='contentInteractionDropdownItems'} +{capture assign='contentInteractionButtons'} {if ARTICLE_ENABLE_VISIT_TRACKING} -
  • {lang}wcf.article.markAllAsRead{/lang}
  • + {lang}wcf.global.button.markAsRead{/lang} {/if} {/capture} diff --git a/com.woltlab.wcf/templates/watchedArticleList.tpl b/com.woltlab.wcf/templates/watchedArticleList.tpl index 071b65c4a2..8da362a589 100644 --- a/com.woltlab.wcf/templates/watchedArticleList.tpl +++ b/com.woltlab.wcf/templates/watchedArticleList.tpl @@ -41,9 +41,9 @@ {pages print=true assign='pagesLinks' controller='WatchedArticleList' link="pageNo=%d"} {/capture} -{capture assign='contentInteractionDropdownItems'} +{capture assign='contentInteractionButtons'} {if ARTICLE_ENABLE_VISIT_TRACKING} -
  • {lang}wcf.article.markAllAsRead{/lang}
  • + {lang}wcf.global.button.markAsRead{/lang} {/if} {/capture} diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 7b7edf4d12..e9ca50ce93 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -3324,7 +3324,6 @@ freigeschaltet. {if LANGUAGE_USE_INFORMAL_VARIANT}Du kannst{else}Sie können{/if - username}]]> hasLabels()} {/if}{$article->getTitle()} verfasst.]]> @@ -5606,5 +5605,6 @@ Benachrichtigungen auf {PAGE_TITLE|phra + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 1614d422ac..9367d35d83 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -3251,7 +3251,6 @@ Your account on the website: {@PAGE_TITLE|phrase} [URL:{link isEmail=true}{/link - username}]]> hasLabels()}
      {foreach from=$article->getLabels() item=label}
    • {@$label->render()}
    • {/foreach}
    {/if}
    {$article->getTitle()}.]]> @@ -5608,5 +5607,6 @@ your notifications on {PAGE_TITLE|phras + -- 2.20.1