Index: trunk/extensions/PageTriage/SpecialPageTriage.php |
— | — | @@ -116,7 +116,30 @@ |
117 | 117 | </span> |
118 | 118 | </div> |
119 | 119 | <div class="mwe-pt-author"> |
120 | | - Author info goes here... |
| 120 | + <% if( typeof( user_name ) != 'undefined' ) { %> |
| 121 | + <%= gM( 'pagetriage-byline', user_name ) %> |
| 122 | + <span class="mwe-pt-talk-contribs">(talk · contribs)</span> |
| 123 | + · |
| 124 | + <%= gM( 'pagetriage-editcount', user_editcount, user_creation_date ) %> |
| 125 | + <% if( user_bot == "1" ) { %> |
| 126 | + · |
| 127 | + <%= gM( 'pagetriage-author-bot' ) %> |
| 128 | + <% } %> |
| 129 | + <% if( user_autoconfirmed == "0" ) { %> |
| 130 | + · |
| 131 | + <span class="mwe-pt-metadata-warning"> |
| 132 | + <%= gM( 'pagetriage-author-not-autoconfirmed' ) %> |
| 133 | + </span> |
| 134 | + <% } %> |
| 135 | + <% if( user_block_status == "1" ) { %> |
| 136 | + · |
| 137 | + <span class="mwe-pt-metadata-warning"> |
| 138 | + <%= gM( 'pagetriage-author-blocked' ) %> |
| 139 | + </span> |
| 140 | + <% } %> |
| 141 | + <% } else { %> |
| 142 | + <%= gM('pagetriage-no-author') %> |
| 143 | + <% } %> |
121 | 144 | </div> |
122 | 145 | <div class="mwe-pt-snippet"> |
123 | 146 | <%= snippet %> |
Index: trunk/extensions/PageTriage/modules/ext.pageTriage.views/ext.pageTriage.articleListItem.css |
— | — | @@ -58,6 +58,10 @@ |
59 | 59 | .mwe-pt-author { |
60 | 60 | } |
61 | 61 | |
| 62 | +.mwe-pt-talk-contribs { |
| 63 | + font-size: 0.8em; |
| 64 | +} |
| 65 | + |
62 | 66 | /* the article snippet */ |
63 | 67 | .mwe-pt-snippet { |
64 | 68 | color: #bebebe; |
Index: trunk/extensions/PageTriage/PageTriage.i18n.php |
— | — | @@ -22,6 +22,12 @@ |
23 | 23 | 'pagetriage-categories' => '$1 {{PLURAL:$1|category|categories}}', |
24 | 24 | 'pagetriage-no-categories' => 'No categories', |
25 | 25 | 'pagetriage-orphan' => 'Orphan', |
| 26 | + 'pagetriage-no-author' => 'No author information present', |
| 27 | + 'pagetriage-byline' => 'By $1', |
| 28 | + 'pagetriage-editcount' => '$1 edits since $2', |
| 29 | + 'pagetriage-author-not-autoconfirmed' => 'Non-autoconfirmed', |
| 30 | + 'pagetriage-author-blocked' => 'Blocked', |
| 31 | + 'pagetriage-author-bot' => 'Bot', |
26 | 32 | ); |
27 | 33 | |
28 | 34 | /** |
— | — | @@ -37,4 +43,12 @@ |
38 | 44 | 'pagetriage-categories' => 'The number of categories in the article', |
39 | 45 | 'pagetriage-no-categories' => 'Label indicating an article with no categories', |
40 | 46 | 'pagetriage-orphan' => 'Label indicating an article has no external links (orphan)', |
| 47 | + 'pagetriage-no-author' => 'Error message for missing article author information', |
| 48 | + 'pagetriage-byline' => 'Text indicating the article author. $1 is the author username', |
| 49 | + 'pagetriage-editcount' => 'Display of article author\'s editing experience. $1 is total edit count, $2 is author\'s join date', |
| 50 | + 'pagetriage-author-not-autoconfirmed' => 'String indicating that the author was not yet autoconfirmed when the article was last edited', |
| 51 | + 'pagetriage-author-blocked' => 'String indicating that the author was blocked when the article was last edited', |
| 52 | + 'pagetriage-author-bot' => 'String indicating that the author is a bot', |
| 53 | + |
| 54 | + |
41 | 55 | ); |
Index: trunk/extensions/PageTriage/PageTriage.php |
— | — | @@ -157,6 +157,13 @@ |
158 | 158 | 'pagetriage-no-categories', |
159 | 159 | 'pagetriage-images', |
160 | 160 | 'pagetriage-orphan', |
| 161 | + 'pagetriage-no-author', |
| 162 | + 'pagetriage-byline', |
| 163 | + 'pagetriage-editcount', |
| 164 | + 'pagetriage-author-not-autoconfirmed', |
| 165 | + 'pagetriage-author-blocked', |
| 166 | + 'pagetriage-author-bot', |
| 167 | + |
161 | 168 | ) |
162 | 169 | ); |
163 | 170 | |