diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-23 19:06:18 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-23 19:06:18 +0100 |
commit | 480c018596d1883a402be16eb4420244bd3d2ff5 (patch) | |
tree | 2af18b30e127b190ddbbf2813934c13d9305931f | |
parent | 47ec7124db3083a9a2838eec2479ec56f7990d5c (diff) | |
download | taginfo-480c018596d1883a402be16eb4420244bd3d2ff5.tar taginfo-480c018596d1883a402be16eb4420244bd3d2ff5.tar.gz |
Add actual view...
-rw-r--r-- | web/views/embed/relation.erb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/web/views/embed/relation.erb b/web/views/embed/relation.erb new file mode 100644 index 0000000..8bc8cdd --- /dev/null +++ b/web/views/embed/relation.erb @@ -0,0 +1,16 @@ +<% if @rtype == '{{{type}}}' %> +<a target="_blank" title="More information about relation type '<%= escape_html(@rtype) %>' at Taginfo" href="http://taginfo.openstreetmap.org/">tag<b>info</b> [More...]</a> +<p>Statistics about the relation type will appear here.</p> +<% elsif @dbrtype.nil? %> +<a target="_blank" title="More information about relation type '<%= escape_html(@rtype) %>' at Taginfo" href="http://taginfo.openstreetmap.org/relations/?rtype=<%= escape(@rtype) %>">tag<b>info</b> [More...]</a> +<p>This relation type does not appear in the OSM database.</p> +<% else %> +<a target="_blank" title="More information about relation type '<%= escape_html(@rtype) %>' at Taginfo" href="http://taginfo.openstreetmap.org/relations/?rtype=<%= escape(@rtype) %>">tag<b>info</b> [More...]</a> +<p>There are<br/> +<b><%= @dbrtype['count'].to_i.to_s_with_ts %> relations</b><br/> +of type '<%= escape_html(@rtype) %>' with<br/> +<b><%= @dbrtype['members_all'].to_i.to_s_with_ts %> members</b>.</p> +<% unless @roles.empty? %> +<p>Prevalent roles:<br/><%= @roles.join(', ') %></p> +<% end +end %> |