Daniel Kinzler has uploaded a new change for review.

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

Change subject: Make Constraints on Property page experimental
......................................................................

Make Constraints on Property page experimental

Since the UI does not yet support claims on peroperties,
don't show a Constraints section on Property pages
unless experimental features are enabled.

Change-Id: I7787c9929345d76ac994509eb286b610b5e66664
---
M repo/includes/PropertyView.php
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/26/123226/1

diff --git a/repo/includes/PropertyView.php b/repo/includes/PropertyView.php
index 2f86870..06960c6 100644
--- a/repo/includes/PropertyView.php
+++ b/repo/includes/PropertyView.php
@@ -50,7 +50,10 @@
                $html .= $this->getHtmlForAliases( $property, $editable );
                $html .= $this->getHtmlForToc();
                $html .= $this->getHtmlForTermBox( $property, $editable );
-               $html .= $this->getHtmlForClaims( $property, $editable );
+
+               if ( defined( 'WB_EXPERIMENTAL_FEATURES' ) && 
WB_EXPERIMENTAL_FEATURES ) {
+                       $html .= $this->getHtmlForClaims( $property, $editable 
);
+               }
 
                $footer = $this->msg( 'wikibase-property-footer' );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7787c9929345d76ac994509eb286b610b5e66664
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Daniel Kinzler <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to