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
app/views/pages

View File

@ -40,9 +40,11 @@
else
url = @page.external_url_translations[locale]
end
else
url = "#"
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 %>
</div>
<% end %>