[email protected] has uploaded a new change for review.

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

Change subject: Removed obsolete HTML tags in FlaggablePageView.php and created 
FlaggablePageView.css for styling
......................................................................

Removed obsolete HTML tags in FlaggablePageView.php and created
FlaggablePageView.css for styling

Change-Id: Ia9b57f2c3bdfbc75eec089f03e5a7f412e84844d
---
A frontend/FlaggablePageView.css
M frontend/FlaggablePageView.php
2 files changed, 25 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FlaggedRevs 
refs/changes/78/196478/1

diff --git a/frontend/FlaggablePageView.css b/frontend/FlaggablePageView.css
new file mode 100644
index 0000000..8e3fe4f
--- /dev/null
+++ b/frontend/FlaggablePageView.css
@@ -0,0 +1,19 @@
+#getFormattedDiffTable
+       {
+               border: 0px;
+               padding: 0px;
+               border-spacing: 4px;
+               width: 98%;
+       }
+
+#td-diff-otitle
+       {
+               width: 50%;
+               text-align: center;
+       }
+
+#td-diff-ntitle
+       {
+               width: 50%;
+               text-align: center;
+       }
diff --git a/frontend/FlaggablePageView.php b/frontend/FlaggablePageView.php
index ec21e98..3691f45 100644
--- a/frontend/FlaggablePageView.php
+++ b/frontend/FlaggablePageView.php
@@ -795,19 +795,20 @@
                $tableClass = 'diff diff-contentalign-' .
                        htmlspecialchars( 
$this->getTitle()->getPageLanguage()->alignStart() );
                if ( $multiNotice != '' ) {
-                       $multiNotice = "<tr><td colspan='4' align='center' 
class='diff-multi'>" .
+                       $multiNotice = "<tr><td colspan='4' align="center" 
class='diff-multi' >" .
                                $multiNotice . "</td></tr>";
                }
                return
-                       "<table border='0' width='98%' cellpadding='0' 
cellspacing='4' class='$tableClass'>" .
+                       "<link rel="stylesheet" type="text/css" 
href="FlaggablePageView.css">".
+                       "<table class='$tableClass' id = 
'getFormattedDiffTable' >" . 
                                "<col class='diff-marker' />" .
                                "<col class='diff-content' />" .
                                "<col class='diff-marker' />" .
                                "<col class='diff-content' />" .
                                "<tr>" .
-                                       "<td colspan='2' width='50%' 
align='center' class='diff-otitle'><b>" .
+                                       "<td colspan='2' class='diff-otitle' id 
= 'td-diff-otitle'><b>" .
                                                $leftStatus . "</b></td>" .
-                                       "<td colspan='2' width='50%' 
align='center' class='diff-ntitle'><b>" .
+                                       "<td colspan='2' class='diff-ntitle'> 
id = 'td-diff-ntitle'<b>" .
                                                $rightStatus . "</b></td>" .
                                "</tr>" .
                                $multiNotice .
@@ -815,6 +816,7 @@
                        "</table>";
        }
 
+
        /**
         * Get the normal and display files for the underlying ImagePage.
         * If the a stable version needs to be displayed, this will set 
$normalFile

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia9b57f2c3bdfbc75eec089f03e5a7f412e84844d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FlaggedRevs
Gerrit-Branch: master
Gerrit-Owner: [email protected]

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

Reply via email to