diff options
author | Jochen Topf <jochen@topf.org> | 2015-03-06 09:03:28 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2015-03-06 09:03:28 +0100 |
commit | 520be26f5ab0a68959be073d9aa56bf7f173b7cf (patch) | |
tree | 6123836c27b3e072731e546dc97152ce0b2cf303 | |
parent | bcc7efc99bf87d6e8164dff537d2cc4a5c358b22 (diff) | |
download | taginfo-520be26f5ab0a68959be073d9aa56bf7f173b7cf.tar taginfo-520be26f5ab0a68959be073d9aa56bf7f173b7cf.tar.gz |
Remove outdated and long disabled JOSM styles report.
-rw-r--r-- | web/lib/reports.rb | 1 | ||||
-rw-r--r-- | web/views/reports/josm_styles.erb | 22 | ||||
-rw-r--r-- | web/viewsjs/reports/josm_styles.js.erb | 38 |
3 files changed, 0 insertions, 61 deletions
diff --git a/web/lib/reports.rb b/web/lib/reports.rb index db16948..71e2555 100644 --- a/web/lib/reports.rb +++ b/web/lib/reports.rb @@ -52,7 +52,6 @@ class Report end Report.new 'Database statistics', :db -Report.new 'JOSM styles' # disabled Report.new 'Characters in keys', :db Report.new 'Frequently used keys without wiki page', :db, :wiki Report.new 'Key lengths', :db diff --git a/web/views/reports/josm_styles.erb b/web/views/reports/josm_styles.erb deleted file mode 100644 index 22e7a7a..0000000 --- a/web/views/reports/josm_styles.erb +++ /dev/null @@ -1,22 +0,0 @@ -<div class="pre"> - <h1><%= h(t.reports.josm_styles.name) %></h1> -<!-- - Select style: - <select> - <% ['standard'].each do |style| %> - <option id="<%= style %>" name="<%= style %>"><%= style %></option> - <% end %> - </select>--> -</div> -<div class="box resize"> - <table id="grid-rules"> - </table> -</div> -<% javascript do - JS.raw(<<"JAVASCRIPT") -function page_init2() { - create_flexigrid_with_option('standard'); -} -JAVASCRIPT -end -%> diff --git a/web/viewsjs/reports/josm_styles.js.erb b/web/viewsjs/reports/josm_styles.js.erb deleted file mode 100644 index 6e49956..0000000 --- a/web/viewsjs/reports/josm_styles.js.erb +++ /dev/null @@ -1,38 +0,0 @@ -<% - osm = @trans.t.osm - misc = @trans.t.misc - %> -function create_flexigrid_with_option(stylename) { - create_flexigrid('grid-rules', { - url: '/api/4/josm/style/rules?style=' + stylename, - colModel: [ - { display: '<%= h(osm.key) %>', name: 'key', width: 300, sortable: true }, - { display: '<%= h(osm.value) %>', name: 'value', width: 300, sortable: true }, - { display: '<%= h(misc.icon) %>', name: 'icon', width: 40, sortable: false, align: 'center' }, - { display: '<%= h(misc.line) %>', name: 'line', width: 40, sortable: false, align: 'center' }, - { display: '<%= h(misc.area) %>', name: 'area', width: 40, sortable: false, align: 'center' } - ], - searchitems: [ - { display: '<%= h(osm.key) %>/<%= h(osm.value) %>', name: 'key' } - ], - sortname: 'key', - sortorder: 'asc', - preProcess: function(data) { - data.rows = jQuery.map(data.data, function(row, i) { - return { 'cell': [ - link_to_key(row.key), - fmt_josm_value(row.key, row.value, row.value_bool), - fmt_josm_icon('standard', row.icon), - fmt_josm_line(row.line_width, row.line_color), - fmt_josm_area(row.area_color) - ] }; - }); - return data; - } - }); -} - -function page_init() { - up = function() { window.location = '/reports'; }; - page_init2(); -} |