Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/202287
Change subject: WIP: Add a tag showing privacy status
......................................................................
WIP: Add a tag showing privacy status
Bug: T93828
Change-Id: I02b24bfe2d93e9ad7a1b212aa8c9b30622c7fd55
---
M includes/views/Collection.php
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather
refs/changes/87/202287/1
diff --git a/includes/views/Collection.php b/includes/views/Collection.php
index 73f1c01..ee4e282 100644
--- a/includes/views/Collection.php
+++ b/includes/views/Collection.php
@@ -44,8 +44,17 @@
$collection = $this->collection;
$description = $collection->getDescription();
$owner = $collection->getOwner();
+ if ( $collection->isHidden() ) {
+ $privacy = 'Hidden';
+ } else {
+ $privacy = $collection->isPublic() ? 'Public' :
'Private';
+ }
$html = Html::openElement( 'div', array( 'class' =>
'collection-header' ) ) .
+ // FIXME: Title should appear below privacy.
+ Html::openElement( 'div', array( 'class' =>
'collection-meta' ) ) .
+ Html::element( 'div', array( 'class' =>
'collection-privacy' ), $privacy ) .
+ Html::closeElement( 'div' ) .
Html::element( 'div', array( 'class' =>
'collection-description' ), $description ) .
$this->getOwnerHtml( $owner ) .
$this->getActionButtonsHtml() .
--
To view, visit https://gerrit.wikimedia.org/r/202287
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I02b24bfe2d93e9ad7a1b212aa8c9b30622c7fd55
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits