- <div refs="page-comments@commentCountBar" class="grid half left-focus v-center no-row-gap">
- <h5 comments-title>{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}</h5>
- @if (count($page->comments) === 0 && userCan('comment-create-all'))
- <div class="text-m-right" refs="page-comments@addButtonContainer">
- <button type="button" action="addComment"
- class="button outline">{{ trans('entities.comment_add') }}</button>
+ <div refs="page-comments@comment-count-bar" class="flex-container-row items-center">
+ <div role="tablist" class="flex">
+ <button type="button"
+ role="tab"
+ id="comment-tab-active"
+ aria-controls="comment-tab-panel-active"
+ refs="page-comments@active-tab"
+ aria-selected="true">{{ trans_choice('entities.comment_thread_count', $commentTree->activeThreadCount()) }}</button>
+ <button type="button"
+ role="tab"
+ id="comment-tab-archived"
+ aria-controls="comment-tab-panel-archived"
+ refs="page-comments@archived-tab"
+ aria-selected="false">{{ trans_choice('entities.comment_archived_count', count($commentTree->getArchived())) }}</button>
+ </div>
+ @if ($commentTree->empty() && userCan('comment-create-all'))
+ <div refs="page-comments@add-button-container" class="ml-m flex-container-row" >
+ <button type="button"
+ refs="page-comments@add-comment-button"
+ class="button outline mb-m ml-auto">{{ trans('entities.comment_add') }}</button>