Robmoen has uploaded a new change for review.

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

Change subject: Add moderation expectations to Special:GatherLists for admins
......................................................................

Add moderation expectations to Special:GatherLists for admins

Include message to administrator with a link to [[beta protocol]]
which outlines the expectations for moderation of collections

bug: T95635
Change-Id: Iab6029d29f89024961f17f96500c8a1f08a62f27
---
M i18n/en.json
M i18n/qqq.json
M includes/views/ReportTable.php
M resources/ext.gather.styles/lists.less
4 files changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather 
refs/changes/49/203949/1

diff --git a/i18n/en.json b/i18n/en.json
index 567ead9..97bcb82 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -26,6 +26,7 @@
        "gather-lists-show-collection": "Do you want to make list \"$1\" by $2 
public again?",
        "gather-lists-show-success-toast": "List \"$1\" was made public again 
successfully.",
        "gather-lists-show-failure-toast": "Failed to show list \"$1\".",
+       "gather-lists-hide-protocol": "Before hiding or un-hiding a list, 
please refer to the [[beta protocol]] for Gather Collections Moderation",
        "gather-editfeed-show": "Show",
        "gather-editfeed-title": "Edits to pages in my collections",
        "gather-editfeed-empty": "There have been no recent edits to any pages 
in this collection.",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index d7a66ff..8520121 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -31,6 +31,7 @@
        "gather-lists-show-collection": "Label asking for confirmation when 
revealing a user's collection for moderation purposes. Parameters:\n* $1 - 
Title of the collection.\n* $2 - User name of the owner.",
        "gather-lists-show-success-toast": "Label for toast displaying that 
specified list was shown successfully. Only shown to admins. Parameters:\n* $1 
- Title of the collection.",
        "gather-lists-show-failure-toast": "Label for toast diaplaying that 
showing specified list failed. Only shown to admins. Parameters:\n* $1 - Title 
of the collection.",
+       "gather-lists-hide-protocol": "Text shown to administrator with a link 
to the [[beta protocol]] page which outlines moderation expectations on 
[[Special:GatherLists]]",
        "gather-editfeed-show": "Label for button that toggles list on feed of 
edits.\n{{Identical|Show}}",
        "gather-editfeed-title": "Title for page that allows you to view edits 
inside a collection.",
        "gather-editfeed-empty": "Message that shows when no edits have been 
made recently to any pages inside a collection.",
diff --git a/includes/views/ReportTable.php b/includes/views/ReportTable.php
index 2dc7bba..ea16191 100644
--- a/includes/views/ReportTable.php
+++ b/includes/views/ReportTable.php
@@ -35,6 +35,11 @@
        protected function getHtml( $data = array() ) {
                $html = '';
                $html .= Html::openElement( 'div', array( 'class' => 'content 
gather-lists' ) );
+               // Display protocol for hiding another users list
+               if ( $data['canHide'] ) {
+                       $html .= Html::rawElement( 'div', array( 'class' => 
'hide-protocol' ),
+                               wfMessage( 'gather-lists-hide-protocol' 
)->parse() );
+               }
                $html .= Html::openElement( 'ul', array() );
                $html .= Html::openElement( 'li', array( 'class' => 'heading' ) 
)
                . Html::element( 'span', array(), wfMessage( 
'gather-lists-collection-title' ) )
diff --git a/resources/ext.gather.styles/lists.less 
b/resources/ext.gather.styles/lists.less
index 9fce8de..5665790 100644
--- a/resources/ext.gather.styles/lists.less
+++ b/resources/ext.gather.styles/lists.less
@@ -4,6 +4,10 @@
 .gather-lists {
        padding-top: 1em;
 
+       .hide-protocol {
+               text-align: center;
+       }
+
        ul {
                display: table;
                width: 100%;

-- 
To view, visit https://gerrit.wikimedia.org/r/203949
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iab6029d29f89024961f17f96500c8a1f08a62f27
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Robmoen <rm...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to