Adamw has uploaded a new change for review.

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


Change subject: WIP: GlobalAllocation can show historical configurations
......................................................................

WIP: GlobalAllocation can show historical configurations

Change-Id: I083c5c4074332d75a7a9ab34f959f7f0d81d1dc9
---
M special/SpecialGlobalAllocation.php
1 file changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice 
refs/changes/50/55450/1

diff --git a/special/SpecialGlobalAllocation.php 
b/special/SpecialGlobalAllocation.php
index c519b37..fe9c864 100644
--- a/special/SpecialGlobalAllocation.php
+++ b/special/SpecialGlobalAllocation.php
@@ -49,6 +49,8 @@
         */
        public $location = null;
 
+       public $timestamp;
+
        /**
         * Constructor
         */
@@ -72,6 +74,7 @@
                $this->project = $request->getText( 'project', $this->project );
                $this->language = $request->getText( 'language', 
$this->language );
                $this->location = $request->getVal( 'country', $this->location 
);
+               $this->timestamp = wfTimestamp( $request->getVal( 'timestamp', 
0 ), TS_MW );
 
                // Begin output
                $this->setHeaders();
@@ -164,6 +167,17 @@
                $htmlOut .= Html::closeElement( 'select' );
                $htmlOut .= Html::closeElement( 'td' );
                $htmlOut .= Html::closeElement( 'tr' );
+
+               $htmlOut .= Html::openElement( 'tr' );
+               $htmlOut .= Html::openElement( 'td' );
+               $htmlOut .= $this->msg( 'centralnotice-date' );
+               $htmlOut .= Html::closeElement( 'td' );
+               $htmlOut .= Html::openElement( 'td' );
+               $htmlOut .= $this->dateSelector( 'filter', $this->timestamp );
+               $htmlOut .= $this->timeSelector( 'filter', $this->timestamp );
+               $htmlOut .= Html::closeElement( 'td' );
+               $htmlOut .= Html::closeElement( 'tr' );
+
                $htmlOut .= Html::closeElement( 'table' );
 
                $htmlOut .= Xml::tags( 'div',

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I083c5c4074332d75a7a9ab34f959f7f0d81d1dc9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>

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

Reply via email to