Added info message if you try to reply to a conversation without recipients
authorMarcel Werk <burntime@woltlab.com>
Fri, 6 Jun 2014 16:17:26 +0000 (18:17 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 6 Jun 2014 16:17:26 +0000 (18:17 +0200)
language/de.xml
language/en.xml
templates/conversationMessageAdd.tpl
templates/conversationQuickReply.tpl

index b63976fef0f9fa6470704663b8ac85491f071b9d..c532d09eea0da74b3ffef381fedfc9c1cbf41228 100644 (file)
                <item name="wcf.conversation.error.mailboxIsFull"><![CDATA[Sie haben das zulässige Limit für Konversationen bereits erreicht und können keine neuen Konversationen starten.]]></item>
                <item name="wcf.conversation.markAllAsRead"><![CDATA[Alle Konversationen als gelesen markieren]]></item>
                <item name="wcf.conversation.message.editNote"><![CDATA[{$message->username} hat diese Nachricht {#$message->editCount} mal editiert, zuletzt: {@$message->lastEditTime|time}.]]></item>
+               <item name="wcf.conversation.noParticipantsWarning"><![CDATA[Sie sind dabei auf eine Konversation ohne weitere Teilnehmer zu antworten. Alle anderen Teilnehmer haben diese Konversation verlassen. Niemand wird Ihre Nachricht lesen!]]></item>
        </category>
        
        <category name="wcf.conversation.edit">
index d84087a6eb49107d06ea3aae0856edf5b3d29e89..e74df55724645fcb21dfdb0cf58add6972a42f0a 100644 (file)
                <item name="wcf.conversation.error.mailboxIsFull"><![CDATA[You have reached your maximum limit of conversations and are unable to start new ones.]]></item>
                <item name="wcf.conversation.markAllAsRead"><![CDATA[Mark All Conversations Read]]></item>
                <item name="wcf.conversation.message.editNote"><![CDATA[TODO: {$message->username} hat diese Nachricht {#$message->editCount} mal editiert, zuletzt: {@$message->lastEditTime|time}.]]></item>
+               <item name="wcf.conversation.noParticipantsWarning"><![CDATA[TODO: Sie sind dabei auf eine Konversation ohne weitere Teilnehmer zu antworten. Alle anderen Teilnehmer haben diese Konversation verlassen. Niemand wird Ihre Nachricht lesen!]]></item>
        </category>
        
        <category name="wcf.conversation.edit">
index 7595543fe13371788539a4a0f3464614357a5f7a..02e7408c8bafe170151ceaff628e37eba0f9bc75 100644 (file)
 
 {include file='userNotice'}
 
+{if !$conversation->isDraft && (($conversation->userID == $__wcf->user->userID && $conversation->participants == 0) || (!$conversation->isInvisible && $conversation->participants == 1))}
+       <p class="warning">{lang}wcf.conversation.noParticipantsWarning{/lang}</p>
+{/if}
+
 {include file='formError'}
 
 <form id="messageContainer" class="jsFormGuard" method="post" action="{link controller='ConversationMessageAdd' id=$conversationID}{/link}">
index 880bff51fe528b64a4776a26ec83c8fbcddfd7b0..fc5a06bad45829e9a2cb44287cc9e127c5ff9778 100644 (file)
@@ -9,6 +9,10 @@
                                        </header>
                                        
                                        <div class="messageBody">
+                                               {if !$conversation->isDraft && (($conversation->userID == $__wcf->user->userID && $conversation->participants == 0) || (!$conversation->isInvisible && $conversation->participants == 1))}
+                                                       <p class="warning" style="margin-bottom: 14px">{lang}wcf.conversation.noParticipantsWarning{/lang}</p>
+                                               {/if}
+                                               
                                                <textarea id="text" name="text" rows="20" cols="40" style="width: 100%"></textarea>
                                        </div>