diff options
| author | Michel Etienne | 2014-12-15 10:02:08 +0100 | 
|---|---|---|
| committer | Michel Etienne | 2014-12-15 10:02:08 +0100 | 
| commit | e85c9a8ee0aa0b1058b478879f538ef2c09d23da (patch) | |
| tree | 76e2fa7ecf427cd9a6f56aff3ce2fa5f938883c2 /app | |
| parent | 0f0a9844f579b807fa2a01ebd357bfba75c0e7c6 (diff) | |
| download | chouette-core-e85c9a8ee0aa0b1058b478879f538ef2c09d23da.tar.bz2 | |
manage connection links with type undefined
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/connection_links/show.html.erb | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/app/views/connection_links/show.html.erb b/app/views/connection_links/show.html.erb index 58649d245..0771caac4 100644 --- a/app/views/connection_links/show.html.erb +++ b/app/views/connection_links/show.html.erb @@ -22,7 +22,11 @@      </p>      <p>        <label><%= @connection_link.human_attribute_name("connection_link_type") %>: </label> -      <%= t("connection_link_types.label.#{@connection_link.connection_link_type}") %> +      <% if @connection_link.connection_link_type.blank? %> +        <%= t("connection_link_types.label.undefined") %> +      <% else %> +        <%= t("connection_link_types.label.#{@connection_link.connection_link_type}") %> +      <% end %>      </p>      <p>        <label><%= @connection_link.human_attribute_name("comment") %>: </label> | 
