added default hash for links

This commit is contained in:
Harry Bomrah 2015-06-25 15:27:29 +08:00
parent e168b01f9b
commit afde19052e
1 changed files with 3 additions and 1 deletions

View File

@ -40,9 +40,11 @@
else else
url = @page.external_url_translations[locale] url = @page.external_url_translations[locale]
end end
else
url = "#"
end end
%> %>
<%= n.text_field locale, class:"input-xlarge change", :value=>url rescue nil %> <%= n.text_field locale, class:"input-xlarge change", :value=>url rescue "#" %>
<% end %> <% end %>
</div> </div>
<% end %> <% end %>