aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-09-06 23:23:45 +0200
committerJochen Topf <jochen@topf.org>2014-09-06 23:23:45 +0200
commit64c631b8022b9901ecf86929a3d57ee0debb338d (patch)
treefd778cdeb946e4f214c8764614da27d19cd272bb
parent543a4a540b4f33e1933777a6bb47a3978bedf5c4 (diff)
downloadtaginfo-64c631b8022b9901ecf86929a3d57ee0debb338d.tar
taginfo-64c631b8022b9901ecf86929a3d57ee0debb338d.tar.gz
Fix project description view.
-rw-r--r--web/i18n/de.yml1
-rw-r--r--web/i18n/en.yml1
-rw-r--r--web/viewsjs/project.js.erb5
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;