r114569 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114568‎ | r114569 | r114570 >
Date:18:50, 28 March 2012
Author:raindrift
Status:deferred
Tags:
Comment:
fixed a bug where anon contributions didn't display correctly
added a comment
Modified paths:
  • /trunk/extensions/PageTriage/SpecialPageTriage.php (modified) (history)
  • /trunk/extensions/PageTriage/modules/ext.pageTriage.models/ext.pageTriage.article.js (modified) (history)

Diff [purge]

Index: trunk/extensions/PageTriage/SpecialPageTriage.php
@@ -123,24 +123,26 @@
124124 ·
125125 <a href="<%= user_contribs_title.getUrl() %>">contribs</a>)
126126 </span>
127 - &#xb7;
128 - <%= gM( 'pagetriage-editcount', user_editcount, user_creation_date_pretty ) %>
129 - <% if( user_bot == "1" ) { %>
 127+ <% if( typeof ( user_editcount ) != 'undefined' ) { %>
130128 &#xb7;
131 - <%= gM( 'pagetriage-author-bot' ) %>
 129+ <%= gM( 'pagetriage-editcount', user_editcount, user_creation_date_pretty ) %>
 130+ <% if( user_bot == "1" ) { %>
 131+ &#xb7;
 132+ <%= gM( 'pagetriage-author-bot' ) %>
 133+ <% } %>
 134+ <% if( user_autoconfirmed == "0" ) { %>
 135+ &#xb7;
 136+ <span class="mwe-pt-metadata-warning">
 137+ <%= gM( 'pagetriage-author-not-autoconfirmed' ) %>
 138+ </span>
 139+ <% } %>
 140+ <% if( user_block_status == "1" ) { %>
 141+ &#xb7;
 142+ <span class="mwe-pt-metadata-warning">
 143+ <%= gM( 'pagetriage-author-blocked' ) %>
 144+ </span>
 145+ <% } %>
132146 <% } %>
133 - <% if( user_autoconfirmed == "0" ) { %>
134 - &#xb7;
135 - <span class="mwe-pt-metadata-warning">
136 - <%= gM( 'pagetriage-author-not-autoconfirmed' ) %>
137 - </span>
138 - <% } %>
139 - <% if( user_block_status == "1" ) { %>
140 - &#xb7;
141 - <span class="mwe-pt-metadata-warning">
142 - <%= gM( 'pagetriage-author-blocked' ) %>
143 - </span>
144 - <% } %>
145147 <% } else { %>
146148 <%= gM('pagetriage-no-author') %>
147149 <% } %>
Index: trunk/extensions/PageTriage/modules/ext.pageTriage.models/ext.pageTriage.article.js
@@ -1,3 +1,6 @@
 2+// Article represents the metadata for a single article.
 3+// ArticleList is a collection of articles for use in the list view
 4+//
25 $( function() {
36 mw.pageTriage = {
47 Article: Backbone.Model.extend( {

Status & tagging log