Skip to content

Commit 5fc16bd

Browse files
committed
Add "Mark All as Read" button
1 parent 8af7dff commit 5fc16bd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

templates/conversationList.tpl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@
7676
{event name='boxes'}
7777
{/capture}
7878

79+
{capture assign='contentInteractionButtons'}
80+
{if $__wcf->user->userID}
81+
<button type="button" class="markAllAsReadButton contentInteractionButton button small jsOnly">{icon name='check'} <span>{lang}wcf.global.button.markAllAsRead{/lang}</span></button>
82+
{/if}
83+
{/capture}
84+
7985
{capture assign='contentInteractionDropdownItems'}
8086
<li><a rel="alternate" href="{link controller='ConversationRssFeed'}at={$__wcf->getUser()->userID}-{$__wcf->getUser()->accessToken}{/link}">{lang}wcf.global.button.rss{/lang}</a></li>
8187
{/capture}
@@ -86,4 +92,13 @@
8692
{unsafe:$listView->render()}
8793
</div>
8894

95+
96+
{if $__wcf->user->userID}
97+
<script data-relocate="true">
98+
require(['WoltLabSuite/Core/Conversation/Ui/MarkAllAsRead'], ({ setup }) => {
99+
setup();
100+
});
101+
</script>
102+
{/if}
103+
89104
{include file='footer'}

0 commit comments

Comments
 (0)