diff options
| author | Zakaria BOUZIANE | 2014-09-30 11:22:08 +0200 |
|---|---|---|
| committer | Zakaria BOUZIANE | 2014-09-30 11:22:08 +0200 |
| commit | beb4b02b54a4fa2a737cb2be521728cd8118cad6 (patch) | |
| tree | d4e7ccdaa45e62eb3dfd08ccb91a27a00d9d5deb /app/views/api | |
| parent | 7971467d6e6661a8d03ba25f1ecd20761f633301 (diff) | |
| download | chouette-core-beb4b02b54a4fa2a737cb2be521728cd8118cad6.tar.bz2 | |
HUB Export : adding Group of Lines export
Diffstat (limited to 'app/views/api')
| -rw-r--r-- | app/views/api/hub/groupe_de_lignes.hub.erb | 1 | ||||
| -rw-r--r-- | app/views/api/hub/lignes.hub.erb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/api/hub/groupe_de_lignes.hub.erb b/app/views/api/hub/groupe_de_lignes.hub.erb new file mode 100644 index 000000000..f098b7a5e --- /dev/null +++ b/app/views/api/hub/groupe_de_lignes.hub.erb @@ -0,0 +1 @@ +<%= @group_of_lines.objectid.sub(/(\w*\:\w*\:)(\w*)/, '\2') %>;<%= @group_of_lines.name %>;<%= @group_of_lines.id %> diff --git a/app/views/api/hub/lignes.hub.erb b/app/views/api/hub/lignes.hub.erb index e5d2c4c4c..f8b007044 100644 --- a/app/views/api/hub/lignes.hub.erb +++ b/app/views/api/hub/lignes.hub.erb @@ -1 +1 @@ -<%= @line.objectid.sub(/(\w*\:\w*\:)(\w*)/, '\2') %>;<%= @line.number %>;<%= @line.name %>;;;<%= Chouette::Company.find(@line.company_id).objectid.sub(/(\w*\:\w*\:)(\w*)/, '\2') %>;<%= Chouette::Network.find(@line.network_id).objectid.sub(/(\w*\:\w*\:)(\w*)/, '\2') %>;;<%= @line.id %> +<%= @line.objectid.sub(/(\w*\:\w*\:)(\w*)/, '\2') %>;<%= @line.number %>;<%= @line.name %>;;;<%= Chouette::Company.find(@line.company_id).objectid.sub(/(\w*\:\w*\:)(\w*)/, '\2') %>;<%= Chouette::Network.find(@line.network_id).objectid.sub(/(\w*\:\w*\:)(\w*)/, '\2') %>;<%= @group_of_line %>;<%= @line.id %> |
