Index: trunk/extensions/PageTriage/modules/ext.pageTriage.views/ext.pageTriage.articleListItem.js |
— | — | @@ -21,16 +21,21 @@ |
22 | 22 | <div class="mwe-pt-info-pane"> \ |
23 | 23 | <div> \ |
24 | 24 | <span class="mwe-pt-page-title"><%= title %></span> \ |
25 | | - <span class="mwe-pt-histlink">(hist)</span> \ |
| 25 | + <span class="mwe-pt-histlink">(<%= gM( "pagetriage-hist" ) %>)</span> \ |
26 | 26 | <span class="mwe-pt-metadata"> \ |
27 | 27 | · \ |
28 | | - bytes \ |
| 28 | + <%= gM( "pagetriage-bytes", page_len ) %> \ |
29 | 29 | · \ |
30 | | - edits \ |
| 30 | + <%= gM( "pagetriage-edits", rev_count ) %> \ |
31 | 31 | · \ |
32 | | - images \ |
33 | | - · \ |
34 | | - categories \ |
| 32 | + <% if( category_count == "0" ) { %> \ |
| 33 | + <span class="mwe-pt-metadata-warning"><%= gM( "pagetriage-no-categories" ) %></span> \ |
| 34 | + <% } else { %> \ |
| 35 | + <%= gM( "pagetriage-categories", category_count ) %> \ |
| 36 | + <% } %> \ |
| 37 | + <% if( linkcount == "0" ) { %> \ |
| 38 | + · <span class="mwe-pt-metadata-warning"><%= gM("pagetriage-orphan") %></span> \ |
| 39 | + <% } %> \ |
35 | 40 | </span> \ |
36 | 41 | </div> \ |
37 | 42 | <div class="mwe-pt-snippet"> \ |
Index: trunk/extensions/PageTriage/modules/ext.pageTriage.views/ext.pageTriage.articleListItem.css |
— | — | @@ -14,16 +14,23 @@ |
15 | 15 | |
16 | 16 | .mwe-pt-page-title { |
17 | 17 | font-size: 1.2em; |
| 18 | + font-weight: bold; |
18 | 19 | } |
19 | 20 | |
20 | 21 | .mwe-pt-histlink { |
21 | | - font-size: 0.5em; |
| 22 | + font-size: 1em; |
22 | 23 | } |
23 | 24 | |
24 | 25 | .mwe-pt-metadata { |
25 | | - font-size:0.8em; |
| 26 | + font-size:1.2em; |
26 | 27 | } |
27 | 28 | |
| 29 | +.mwe-pt-metadata-warning { |
| 30 | + color: red; |
| 31 | + font-weight: bold; |
| 32 | +} |
| 33 | + |
28 | 34 | .mwe-pt-snippet { |
29 | 35 | color: #bebebe; |
30 | | -} |
\ No newline at end of file |
| 36 | +} |
| 37 | + |
Index: trunk/extensions/PageTriage/PageTriage.i18n.php |
— | — | @@ -12,17 +12,29 @@ |
13 | 13 | * @author Ryan Kaldari |
14 | 14 | */ |
15 | 15 | $messages['en'] = array( |
| 16 | + 'pagetriage' => 'Page Triage', |
16 | 17 | 'pagetriage-desc' => 'Facilitates reviewing and approving new pages', |
17 | | - 'pagetriage' => 'Page triage', |
18 | | - 'pagetriagelist' => 'Page triage list', |
19 | 18 | 'pagetriage-api-invalidid' => 'The ID you provided ($1) is not valid.', |
20 | 19 | 'pagetriage-markpatrolled' => 'Unpatrolled', |
| 20 | + 'pagetriage-hist' => 'hist', |
| 21 | + 'pagetriage-bytes' => '$1 bytes', |
| 22 | + 'pagetriage-edits' => '$1 {{PLURAL:$1|edit|edits}}', |
| 23 | + 'pagetriage-categories' => '$1 {{PLURAL:$1|category|categories}}', |
| 24 | + 'pagetriage-no-categories' => 'No categories', |
| 25 | + 'pagetriage-orphan' => 'Orphan', |
21 | 26 | ); |
22 | 27 | |
23 | 28 | /** |
24 | 29 | * Message documentation (Message documentation) |
25 | 30 | */ |
26 | 31 | $messages['qqq'] = array( |
| 32 | + 'pagetriage' => 'The name of this application (Page Triage)', |
27 | 33 | 'pagetriage-desc' => '{{desc}}', |
28 | 34 | 'pagetriage-api-invalidid' => 'Invalid title error message for pagetriage API', |
| 35 | + 'pagetriage-markpatrolled' => 'Button text for the mark-as-patrolled button', |
| 36 | + 'pagetriage-bytes' => 'The number of bytes in the article', |
| 37 | + 'pagetriage-edits' => 'The number of times the article has been edited', |
| 38 | + 'pagetriage-categories' => 'The number of categories in the article', |
| 39 | + 'pagetriage-no-categories' => 'Label indicating an article with no categories', |
| 40 | + 'pagetriage-orphan' => 'Label indicating an article has no external links (orphan)', |
29 | 41 | ); |
Index: trunk/extensions/PageTriage/PageTriage.php |
— | — | @@ -133,17 +133,14 @@ |
134 | 134 | 'ext.pageTriage.external' |
135 | 135 | ), |
136 | 136 | 'scripts' => array( |
137 | | - 'ext.pageTriage.models/ext.pageTriage.article.js', |
138 | | - 'ext.pageTriage.views/ext.pageTriage.articleListItem.js' |
139 | | - ), |
140 | | - 'styles' => array( |
141 | | - 'ext.pageTriage.views/ext.pageTriage.articleListItem.css' |
| 137 | + 'ext.pageTriage.models/ext.pageTriage.article.js' |
142 | 138 | ) |
143 | 139 | ); |
144 | 140 | |
145 | | -/* |
| 141 | + |
146 | 142 | $wgResourceModules['ext.pageTriage.views'] = $ptResourceTemplate + array( |
147 | 143 | 'dependencies' => array( |
| 144 | + 'mediawiki.jqueryMsg', |
148 | 145 | 'ext.pageTriage.models' |
149 | 146 | ), |
150 | 147 | 'scripts' => array( |
— | — | @@ -151,9 +148,17 @@ |
152 | 149 | ), |
153 | 150 | 'styles' => array( |
154 | 151 | 'ext.pageTriage.views/ext.pageTriage.articleListItem.css' |
| 152 | + ), |
| 153 | + 'messages' => array( |
| 154 | + 'pagetriage-hist', |
| 155 | + 'pagetriage-bytes', |
| 156 | + 'pagetriage-edits', |
| 157 | + 'pagetriage-categories', |
| 158 | + 'pagetriage-no-categories', |
| 159 | + 'pagetriage-images', |
| 160 | + 'pagetriage-orphan', |
155 | 161 | ) |
156 | 162 | ); |
157 | | -*/ |
158 | 163 | |
159 | 164 | $wgResourceModules['ext.pageTriage.article'] = $ptResourceTemplate + array( |
160 | 165 | 'styles' => 'ext.pageTriage.article/ext.pageTriage.article.css', |