From 64c631b8022b9901ecf86929a3d57ee0debb338d Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sat, 6 Sep 2014 23:23:45 +0200 Subject: Fix project description view. --- web/i18n/de.yml | 1 + web/i18n/en.yml | 1 + web/viewsjs/project.js.erb | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/i18n/de.yml b/web/i18n/de.yml index dfe24cd..a5322b7 100644 --- a/web/i18n/de.yml +++ b/web/i18n/de.yml @@ -351,6 +351,7 @@ pages: tags: title: Tags, die von diesem Projekt verwenden werden intro: Die folgenden Daten wurden von dem Projekt zur Verfügung gestellt. Sie sind nicht notwendigerweise komplett. Für Details schau bitte in die Projekt-Dokumentation. + description: Wie dieser Key/Tag im Projekt benutzt wird flexigrid: pagetext: Seite diff --git a/web/i18n/en.yml b/web/i18n/en.yml index bf7ceb9..60ca12d 100644 --- a/web/i18n/en.yml +++ b/web/i18n/en.yml @@ -421,6 +421,7 @@ pages: tags: title: Tags used by this project intro: This data is provided by the project and not necessarily complete. Please see the project documentation for details. + description: How this key/tag is used in the project flexigrid: pagetext: Page diff --git a/web/viewsjs/project.js.erb b/web/viewsjs/project.js.erb index 435b07f..6636092 100644 --- a/web/viewsjs/project.js.erb +++ b/web/viewsjs/project.js.erb @@ -1,6 +1,7 @@ <% osm = @trans.t.osm misc = @trans.t.misc + page = @trans.t.pages.project %> var create_flexigrid_for = { tags: function(project) { @@ -9,7 +10,7 @@ var create_flexigrid_for = { colModel: [ { display: '<%= h(osm.tag) %>', name: 'tag', width: 260, sortable: true }, { display: '<%= h(osm.objects) %>', name: 'objects', width: 80, sortable: false }, - { display: '<%= h(misc.description) %>', name: 'description', width: 800, sortable: false, align: 'left' } + { display: '<%= h(page.tags.description) %>', name: 'description', width: 800, sortable: false, align: 'left' } ], searchitems: [ { display: '<%= h(osm.key) %>/<%= h(osm.value) %>', name: 'key_value' } @@ -24,7 +25,7 @@ var create_flexigrid_for = { fmt_type_icon('way', row.on_way) + fmt_type_icon('area', row.on_area) + fmt_type_icon('relation', row.on_relation), - project_tag_desc(row.description, row.doc_url, row.icon_url) + project_tag_desc(row.description, row.icon_url, row.doc_url) ] }; }); delete data.data; -- cgit v1.2.3