Add trash flag for articles in frontend
authorJoshua Rüsweg <josh@bastelstu.be>
Wed, 9 Aug 2017 11:24:30 +0000 (13:24 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Wed, 9 Aug 2017 11:24:42 +0000 (13:24 +0200)
See #2209

com.woltlab.wcf/templates/article.tpl
com.woltlab.wcf/templates/articleListItems.tpl

index 606bfe2cb0a756c9da5a5e306a8cb834d1f76492..e8085b31bbd547b3f5af7b6b5fadf5068e9d4be9 100644 (file)
@@ -3,7 +3,7 @@
 {assign var='__mainItemScope' value='itemprop="mainEntity" itemscope itemtype="http://schema.org/Article"'}
 
 {capture assign='contentHeader'}
-       <header class="contentHeader articleContentHeader">
+       <header class="contentHeader articleContentHeader{if $article->isDeleted} messageDeleted{/if}">
                <div class="contentHeaderTitle">
                        <h1 class="contentTitle" itemprop="name headline">{$articleContent->title}</h1>
                        <ul class="inlineList contentHeaderMetaData articleMetaData">
@@ -52,6 +52,8 @@
                                
                                {if ARTICLE_ENABLE_VISIT_TRACKING && $article->isNew()}<li><span class="badge label newMessageBadge">{lang}wcf.message.new{/lang}</span></li>{/if}
                                
+                               {if $article->isDeleted}<li><span class="badge label red">{lang}wcf.message.status.deleted{/lang}</span></li>{/if}
+                               
                                <li class="articleLikesBadge"></li>
                                
                                {event name='contentHeaderMetaData'}
index ed497e932ab2593a7f05bb661eeed3dea1c471fd..c1997da53d4254792bf6b916cf190058a99ef9bb 100644 (file)
@@ -43,6 +43,8 @@
                                                                {/if}
                                                                
                                                                {if ARTICLE_ENABLE_VISIT_TRACKING && $article->isNew()}<li><span class="badge label newMessageBadge">{lang}wcf.message.new{/lang}</span></li>{/if}
+
+                                                               {if $article->isDeleted}<li><span class="badge label red">{lang}wcf.message.status.deleted{/lang}</span></li>{/if}
                                                        </ul>
                                                </div>