aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-10 22:38:21 +0100
committerJochen Topf <jochen@topf.org>2013-01-10 22:38:21 +0100
commitd52e0358934abe60a48ec520825e023452bff21d (patch)
tree02d1ab2684c3965adb541ec5ec330a8308a21036
parent00f907bc0084e94db927f427c64381fbca3dcc34 (diff)
downloadtaginfo-d52e0358934abe60a48ec520825e023452bff21d.tar
taginfo-d52e0358934abe60a48ec520825e023452bff21d.tar.gz
Improve display of wiki_pages_about_non_existing_keys report
-rw-r--r--web/viewsjs/reports/wiki_pages_about_non_existing_keys.js.erb10
1 files changed, 7 insertions, 3 deletions
diff --git a/web/viewsjs/reports/wiki_pages_about_non_existing_keys.js.erb b/web/viewsjs/reports/wiki_pages_about_non_existing_keys.js.erb
index 07e85a2..a0addf6 100644
--- a/web/viewsjs/reports/wiki_pages_about_non_existing_keys.js.erb
+++ b/web/viewsjs/reports/wiki_pages_about_non_existing_keys.js.erb
@@ -8,8 +8,8 @@ function page_init() {
colModel: [
{ display: '<img src="/img/sources/wiki.16.png" alt="Wiki" width="16" height="16" title="Wiki"/>', name: 'in_wiki', width: 20, sortable: true, align: 'center' },
{ display: '<img src="/img/sources/josm.16.png" alt="JOSM" width="16" height="16" title="JOSM"/>', name: 'in_josm', width: 20, sortable: true, align: 'center' },
- { display: '<%= osm.key %>', name: 'key', width: 260, sortable: true, align: 'left' },
- { display: '<%= page.wiki_pages %>', name: 'wikipages', width: 400, sortable: false, align: 'left' }
+ { display: '<%= osm.key %>', name: 'key', width: 250, sortable: true, align: 'left' },
+ { display: '<%= page.wiki_pages %>', name: 'wikipages', width: 600, sortable: false, align: 'left' }
],
searchitems: [
{ display: '<%= osm.key %>', name: 'key' }
@@ -20,7 +20,11 @@ function page_init() {
data.rows = jQuery.map(data.data, function(row, i) {
var wikilinks = [];
jQuery(row.wikipages).each(function(i, wikipage) {
- wikilinks.push(print_wiki_link(wikipage.title));
+ var w = print_wiki_link(wikipage.title);
+ if (wikipage.type == 'redirect') {
+ w += ' (REDIRECT)';
+ }
+ wikilinks.push(w);
});
return { 'cell': [
print_checkmark(row.in_wiki),