Subtitle is wrapped in a DIV
authorjdlrobson <jdlrobson@gmail.com>
Thu, 28 Mar 2019 20:14:49 +0000 (13:14 -0700)
committerjdlrobson <jdlrobson@gmail.com>
Thu, 28 Mar 2019 20:16:33 +0000 (13:16 -0700)
Skins should be able to style this as they wish. This wraps the
link and text in an element so it can be styled as a component
of the page.

Change-Id: I34bd361e0384f6b127ca0ac1e06d3298a2a2c457

includes/actions/HistoryAction.php

index fbf43e0..cc11233 100644 (file)
@@ -78,7 +78,7 @@ class HistoryAction extends FormlessAction {
                                        ->rawParams( $this->getLanguage()->pipeList( $links ) )
                                        ->escaped();
                }
-               return $subtitle;
+               return Html::rawElement( 'div', [ 'class' => 'mw-history-subtitle' ], $subtitle );
        }
 
        /**