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

Change subject: Table formatting
......................................................................

Table formatting

Change-Id: Ibc50ec50a32c5e34774af9cba0dc3cd0a5eef7ad
---
M includes/CommentStreamsAllComments.php
M resources/CommentStreamsAllComments.css
2 files changed, 9 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CommentStreams 
refs/changes/98/360398/1

diff --git a/includes/CommentStreamsAllComments.php 
b/includes/CommentStreamsAllComments.php
index a1cfa52..9631842 100644
--- a/includes/CommentStreamsAllComments.php
+++ b/includes/CommentStreamsAllComments.php
@@ -76,13 +76,17 @@
                                $associatedpageid = $comment->getAssociatedId();
                                $associatedpagename =
                                        WikiPage::newFromId( $associatedpageid 
)->getTitle()->getPrefixedText();
+                               $author = $comment->getUser()->getName();
                                $lasteditor = User::newFromId( 
$wikipage->getRevision()->getUser() )->getName();
+                               if ( $lasteditor === $author ) {
+                                       $lasteditor = '';
+                               }
                                $wikitext .= '|-' . PHP_EOL;
                                $wikitext .= '|[[' . $pagename . ']]' . PHP_EOL;
                                $wikitext .= '|[[' . $associatedpagename . ']]' 
. PHP_EOL;
                                $wikitext .= '|' . $comment->getCommentTitle() 
. PHP_EOL;
                                $wikitext .= '|' . $comment->getWikiText() . 
PHP_EOL;
-                               $wikitext .= '|' . 
$comment->getUser()->getName() . PHP_EOL;
+                               $wikitext .= '|' . $author . PHP_EOL;
                                $wikitext .= '|' . $lasteditor . PHP_EOL;
                                $wikitext .= '|' . $comment->getCreationDate() 
. PHP_EOL;
                                $wikitext .= '|' . 
$comment->getModificationDate() . PHP_EOL;
diff --git a/resources/CommentStreamsAllComments.css 
b/resources/CommentStreamsAllComments.css
index d1c905e..e39ea4b 100644
--- a/resources/CommentStreamsAllComments.css
+++ b/resources/CommentStreamsAllComments.css
@@ -10,6 +10,10 @@
        width: 100%;
 }
 
+.csall-wikitable th {
+       text-align: center;
+}
+
 .csall-navigationtable {
        width: 100%;
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc50ec50a32c5e34774af9cba0dc3cd0a5eef7ad
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CommentStreams
Gerrit-Branch: master
Gerrit-Owner: Cicalese <[email protected]>

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

Reply via email to