summaryrefslogtreecommitdiff
path: root/web/views/keys.erb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2010-10-24 15:32:32 +0200
committerJochen Topf <jochen@topf.org>2010-10-24 15:32:32 +0200
commit1dc5013314a56a830a6d0f439866e7b18a217d5a (patch)
tree8a0fa3e0ed60f0895be5aa87860f51629d96adb5 /web/views/keys.erb
parent19340b4165b9db3b91e0fbc9d1e6850c447042f8 (diff)
downloadtaginfo-1dc5013314a56a830a6d0f439866e7b18a217d5a.tar
taginfo-1dc5013314a56a830a6d0f439866e7b18a217d5a.tar.gz
Begin of Potlatch support
Diffstat (limited to 'web/views/keys.erb')
-rw-r--r--web/views/keys.erb14
1 files changed, 10 insertions, 4 deletions
diff --git a/web/views/keys.erb b/web/views/keys.erb
index 6b21d83..5eaaaf1 100644
--- a/web/views/keys.erb
+++ b/web/views/keys.erb
@@ -10,14 +10,17 @@
method: 'GET',
dataType: 'json',
colModel: [
- { display: 'Key', name: 'key', width: 200, sortable: true, align: 'left' },
+ { display: 'Key', name: 'key', width: 180, sortable: true, align: 'left' },
{ display: '<span title="Number of objects with this key"><img src="/img/types/all.16.png" alt=""/> Total</span>', name: 'count_all', width: 250, sortable: true, align: 'center' },
{ display: '<span title="Number of nodes with this key"><img src="/img/types/node.16.png" alt=""/> Nodes</span>', name: 'count_nodes', width: 250, sortable: true, align: 'center' },
{ display: '<span title="Number of ways with this key"><img src="/img/types/way.16.png" alt=""/> Ways</span>', name: 'count_ways', width: 250, sortable: true, align: 'center' },
{ display: '<span title="Number of relations with this key"><img src="/img/types/relation.16.png" alt=""/> Relation</span>', name: 'count_relations', width: 250, sortable: true, align: 'center' },
- { display: 'Users', name: 'users_all', width: 44, sortable: true, align: 'right' },
- { display: '<span title="Number of different values for this key">Values</span>', name: 'values_all', width: 70, sortable: true, align: 'right' },
- { display: 'Prevalent Values', name: 'prevalent_values', width: 500, sortable: true, align: 'left' }
+ { display: 'Users', name: 'users_all', width: 44, sortable: true, align: 'right' },
+ { display: '<img src="/img/sources/wiki.16.png" alt="Wiki" title="Wiki"/>', name: 'in_wiki', width: 20, sortable: true, align: 'center' },
+ { display: '<img src="/img/sources/josm.16.png" alt="JOSM" title="JOSM"/>', name: 'in_josm', width: 20, sortable: true, align: 'center' },
+ // { display: '<img src="/img/sources/potlatch.16.png" alt="Potlatch 2" title="Potlatch 2"/>', name: 'in_potlatch', width: 20, sortable: true, align: 'center' },
+ { display: '<span title="Number of different values for this key">Values</span>', name: 'values_all', width: 70, sortable: true, align: 'right' },
+ { display: 'Prevalent Values', name: 'prevalent_values', width: 500, sortable: true, align: 'left' }
],
searchitems: [
{ display: 'Key', name: 'key' }
@@ -39,6 +42,9 @@
print_value_with_percent(row.count_ways, row.count_ways_fraction),
print_value_with_percent(row.count_relations, row.count_relations_fraction),
print_with_ts(row.users_all),
+ row.in_wiki ? '&#x2714;' : '-',
+ row.in_josm ? '&#x2714;' : '-',
+ // row.in_potlatch ? '&#x2714;' : '-',
print_with_ts(row.values_all),
print_tag_list(row.key, row.prevalent_values)
] };