Save and display creator of Order

This commit is contained in:
Julius 2012-11-12 14:24:49 +01:00
parent 69c4fc5817
commit c17ff281c3
8 changed files with 25 additions and 4 deletions

View file

@ -154,5 +154,11 @@ module ApplicationHelper
link_to h(address), "http://maps.google.de/?q=#{h(address)}", :title => "Show it on google maps",
:target => "_blank"
end
# offers a link for writing message to user
# checks for nil (useful for relations)
def link_to_user_message_if_valid(user)
user.nil? ? '??' : ( link_to user.nick, user_message_path(user), :title => _('Nachricht schreiben') )
end
end