Page MenuHomePhabricator

Add history link for banners
Closed, ResolvedPublic1 Estimated Story Points

Description

The banner detail page currently has links to preview a banner, and edit it on-wiki.

Screenshot 2016-04-14 23.26.46.png (294×1 px, 40 KB)

It would also be useful to provide a direct link to the banner's revision history. Currently the easiest way to reach it is go via "Edit banner on-wiki", and then use the History tab, but this is non-obvious.

Event Timeline

Ejegg set the point value for this task to 1.Apr 19 2016, 8:17 PM

Could this work and be added to the relevant file?

$bannerTitle {
      $links[] = Linker::link(
        $bannerTitle,
        $this->msg( 'centralnotice-banner-history' )->escaped(), // centralnotice-banner-history needs to be added to the i18n file
        [ 'class' => 'cn-banner-list-element-label-text' ],
        [ 'action' => 'history' ]
        );
    }

Change 408519 had a related patch set uploaded (by MarcoAurelio; owner: MarcoAurelio):
[mediawiki/extensions/CentralNotice@master] Add link to banner history on SpecialCentralNoticeBanners

https://gerrit.wikimedia.org/r/408519

Change 408519 merged by jenkins-bot:
[mediawiki/extensions/CentralNotice@master] Add link to banner history on SpecialCentralNoticeBanners

https://gerrit.wikimedia.org/r/408519

Pcoombe claimed this task.