aboutsummaryrefslogtreecommitdiff
path: root/web/viewsjs
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-24 22:57:47 +0100
committerJochen Topf <jochen@topf.org>2013-01-24 22:57:47 +0100
commit47dc19653b22e64faa060bb9d295c059ea2f9bdd (patch)
treea7ebe30b7e68fbbaf1a19ac1db567c070fb3b156 /web/viewsjs
parentc276cc2985433281bcf98df2d7c062c4e17ab530 (diff)
downloadtaginfo-47dc19653b22e64faa060bb9d295c059ea2f9bdd.tar
taginfo-47dc19653b22e64faa060bb9d295c059ea2f9bdd.tar.gz
Add in_wiki column to key values view
Diffstat (limited to 'web/viewsjs')
-rw-r--r--web/viewsjs/key.js.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/viewsjs/key.js.erb b/web/viewsjs/key.js.erb
index 6c89295..b9c6763 100644
--- a/web/viewsjs/key.js.erb
+++ b/web/viewsjs/key.js.erb
@@ -35,6 +35,7 @@ var create_flexigrid_for = {
colModel: [
{ display: '<%= osm.value %>', name: 'value', width: 200, sortable: true },
{ display: '<%= misc.count %>', name: 'count', width: 260, sortable: true, align: 'center' },
+ { display: '<img src="/img/sources/wiki.16.png" alt="Wiki" width="16" height="16" title="<%= misc.in_wiki_tooltip %>"/>', name: 'in_wiki', width: 20, sortable: true, align: 'center' },
{ display: '<span title="<%= page.tag_description_from_wiki %>"><%= misc.description %></span>', name: 'description', width: 600, sortable: false, align: 'left' }
],
searchitems: [
@@ -47,6 +48,7 @@ var create_flexigrid_for = {
return { 'cell': [
hover_expand(link_to_value(key, row.value)),
fmt_value_with_percent(row.count, row.fraction),
+ fmt_checkmark(row.in_wiki),
row.description
] };
});