MarcoAurelio has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/404163 )

Change subject: elections.php: update code for SE2018
......................................................................

elections.php: update code for SE2018

Change-Id: I9ccb13a61675a3bb1925d4e623b52a014a83c6b3
---
M Elections/elections.php
1 file changed, 13 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/stewardbots 
refs/changes/63/404163/1

diff --git a/Elections/elections.php b/Elections/elections.php
index bbc14f7..844bc3d 100644
--- a/Elections/elections.php
+++ b/Elections/elections.php
@@ -41,7 +41,7 @@
 "http://www.w3.org/TR/html4/loose.dtd";>
 <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en" dir="ltr">
 <head>
-       <title>Steward elections 2017</title>
+       <title>Steward elections 2018</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" 
href="/stewardbots/resources/Common.css" />
        <link rel="stylesheet" type="text/css" 
href="/stewardbots/resources/stylesheet.css" />
@@ -57,7 +57,7 @@
        <div id="globalWrapper">
                <div id="content" class="mw-body" role="main">
                        <h2>Steward elections</h2>
-                       <p>This page contains an unofficial tally of the votes 
in the <a href="//meta.wikimedia.org/wiki/Stewards/Elections_2017">2017 steward 
elections</a>.</p>
+                       <p>This page contains an unofficial tally of the votes 
in the <a href="//meta.wikimedia.org/wiki/Stewards/Elections_2018">2018 steward 
elections</a>.</p>
 <?php
 $cacheFile = './cache/elections.php';
 $useCache = false;
@@ -95,14 +95,14 @@
                                </thead>
                        <tbody>
 <?php
-       $pages = getPages( 'Stewards/Elections_2017' );
+       $pages = getPages( 'Stewards/Elections_2018' );
        $content = '';
        if ( $pages ) {
                $content = $pages[0]['content'];
        }
 
         preg_match_all(
-                 '/^\{\{[Ss]e[_ ]candidate[_ 
]indexer\|2017\|(?<user>[^\|\}]+)(?:\|(?<status>[^\|\}]+))?\}\}/m',
+                 '/^\{\{[Ss]e[_ ]candidate[_ 
]indexer\|2018\|(?<user>[^\|\}]+)(?:\|(?<status>[^\|\}]+))?\}\}/m',
                  $content, $m
         );
 
@@ -113,7 +113,7 @@
                $user = $m['user'][$i];
                $status = $m['status'][$i];
                if ( !$status || $status == 'yes' ) {
-                       $titles[] = 'Stewards/Elections_2017/Votes/' . $user;
+                       $titles[] = 'Stewards/Elections_2018/Votes/' . $user;
                }
        }
 
@@ -159,7 +159,7 @@
 ?>
                                <tr>
                                        <td><?php echo $i;?></td>
-                                       <td><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2017/Votes/<?php echo 
$user;?>"><?php echo $user;?></a></td>
+                                       <td><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2018/Votes/<?php echo 
$user;?>"><?php echo $user;?></a></td>
                                        <td <?php echo $bgyes;?>><?php echo 
$votes['yes'];?></td>
                                        <td><?php echo $votes['no'];?></td>
                                        <td><?php echo $votes['neutral'];?></td>
@@ -170,7 +170,7 @@
 ?>
                                <tr>
                                        <td><?php echo $i; ?></td>
-                                       <td><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2017/Votes/<?php echo 
$user;?>"><?php echo $user; ?></a></td>
+                                       <td><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2018/Votes/<?php echo 
$user;?>"><?php echo $user; ?></a></td>
                                        <td colspan="4">Could not get votes. 
Please <a 
href="//phabricator.wikimedia.org/maniphest/task/create/?projects=Tool-stewardbots">report</a>
 this.</td>
                                </tr>
 <?php
@@ -216,11 +216,11 @@
                                <h3>Steward elections</h3>
                                <div class="pBody">
                                        <ul>
-                                               <li><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2017">Elections page</a></li>
-                                               <li><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2017/Guidelines">Guidelines</a></li>
-                                               <li><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2017/Statements">Statements</a></li>
-                                               <li><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2017/Questions">Questions</a></li>
-                                               <li><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2017/Statistics">Statistics</a></li>
+                                               <li><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2018">Elections page</a></li>
+                                               <li><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2018/Guidelines">Guidelines</a></li>
+                                               <li><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2018/Statements">Statements</a></li>
+                                               <li><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2018/Questions">Questions</a></li>
+                                               <li><a 
href="//meta.wikimedia.org/wiki/Stewards/Elections_2018/Statistics">Statistics</a></li>
                                        </ul>
                                </div>
                        </div>
@@ -234,7 +234,7 @@
 width="88" /></a>
                        </div>
                        <ul id="f-list">
-                               <li id="lastmod">This page was last modified 12 
January 2017.</li>
+                               <li id="lastmod">This page was last modified 12 
January 2018.</li>
                                <li id="about">This tool was written by <a 
href="//meta.wikimedia.org/wiki/User:Erwin">Erwin</a> and is mantained by the 
stewardbots project.</li>
                        </ul>
                </div>

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ccb13a61675a3bb1925d4e623b52a014a83c6b3
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/stewardbots
Gerrit-Branch: master
Gerrit-Owner: MarcoAurelio <maure...@tools.wmflabs.org>

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

Reply via email to