Hide content element if event has no description
authorMarcel Werk <burntime@woltlab.com>
Tue, 14 Mar 2017 17:44:00 +0000 (18:44 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 14 Mar 2017 17:44:00 +0000 (18:44 +0100)
com.woltlab.wcf/templates/recentActivityListItem.tpl

index f70decf5ac4a42d945fee68f867d0e8f47aceb1b..d824d03b3a2e1186783cc7308072c3eff8da1f9f 100644 (file)
@@ -13,7 +13,9 @@
                                        <small class="containerContentType">{lang}wcf.user.recentActivity.{@$event->getObjectTypeName()}{/lang}</small>
                                </div>
                                
-                               <div class="containerContent{if !$event->isRawHtml()} htmlContent{/if}">{@$event->getDescription()}</div>
+                               {if $event->getDescription()}
+                                       <div class="containerContent{if !$event->isRawHtml()} htmlContent{/if}">{@$event->getDescription()}</div>
+                               {/if}
                        </div>
                </div>
        </li>