Make use of the new webcomponent for notices
authorMarcel Werk <burntime@woltlab.com>
Tue, 21 Nov 2023 17:47:12 +0000 (18:47 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 21 Nov 2023 17:47:12 +0000 (18:47 +0100)
templates/conversation.tpl
templates/conversationList.tpl
templates/conversationQuickReply.tpl

index dfde4b6da0a497ea4fdc636befcc178ac6ed10d5..f77e30a1f58f80d31532342d428f548b06aa2949 100644 (file)
 
 <div class="section">
        <ul class="messageList">
-               {if $pageNo == 1 && !$conversation->joinedAt|empty}<li><p class="info" role="status">{lang}wcf.conversation.visibility.previousMessages{/lang}</p></li>{/if}
+               {if $pageNo == 1 && !$conversation->joinedAt|empty}
+                       <li><woltlab-core-notice type="info">{lang}wcf.conversation.visibility.previousMessages{/lang}</woltlab-core-notice></li>
+               {/if}
                {include file='conversationMessageList'}
                {hascontent}
                        <li class="messageListPagination">
                        </li>
                {/hascontent}
                {if $conversation->canReply()}{include file='conversationQuickReply'}{/if}
-               {if $pageNo == $pages && !$conversation->leftAt|empty}<li><p class="info" role="status">{lang}wcf.conversation.visibility.nextMessages{/lang}</p></li>{/if}
+               {if $pageNo == $pages && !$conversation->leftAt|empty}
+                       <li><woltlab-core-notice type="info">{lang}wcf.conversation.visibility.nextMessages{/lang}</woltlab-core-notice></li>
+               {/if}
        </ul>
 </div>
 
index 8a3d928c7c446eb726b41ccd5f350a35da53d5f7..3db37286d6a206979f25427a333136841697678d 100644 (file)
 {include file='header'}
 
 {if !$items}
-       <p class="info" role="status">{lang}wcf.conversation.noConversations{/lang}</p>
+       <woltlab-core-notice type="info">{lang}wcf.conversation.noConversations{/lang}</woltlab-core-notice>
 {else}
        <div class="section tabularBox messageGroupList conversationList jsClipboardContainer" data-type="com.woltlab.wcf.conversation.conversation">
                <ol class="tabularList">
index 2cccf42f9d86f91f660a6902821ac08925b42374..379e48a4b244f135e72bca52cdecc1688b1ac9f7 100644 (file)
@@ -6,18 +6,21 @@
                        <div class="messageBody">
                                {if !$conversation->isDraft}
                                        {if !$conversation->hasOtherParticipants()}
-                                               <p class="warning" role="status">{lang}wcf.conversation.noParticipantsWarning{/lang}</p>
+                                               <woltlab-core-notice type="warning">{lang}wcf.conversation.noParticipantsWarning{/lang}</woltlab-core-notice>
                                        {/if}
                                        {if $participants[$__wcf->user->userID]->isInvisible}
-                                               <p class="warning invisibleParticipantWarning" role="status">{lang}wcf.conversation.invisibleParticipantWarning{/lang}</p>
+                                               <woltlab-core-notice type="warning" class="invisibleParticipantWarning">{lang}wcf.conversation.invisibleParticipantWarning{/lang}</woltlab-core-notice>
                                        {/if}
                                {/if}
 
                                {event name='beforeWysiwyg'}
                                
-                               <textarea id="text" name="text" class="wysiwygTextarea"
-                                         data-autosave="com.woltlab.wcf.conversation.messageAdd-{$conversation->conversationID}"
-                                         data-support-mention="true"
+                               <textarea
+                                       id="text"
+                                       name="text"
+                                       class="wysiwygTextarea"
+                                       data-autosave="com.woltlab.wcf.conversation.messageAdd-{$conversation->conversationID}"
+                                       data-support-mention="true"
                                ></textarea>
                                {include file='messageFormTabsInline' inConversationQuickReply=true}
                        </div>