diff options
author | jessib <jessib@leap.se> | 2013-01-22 11:12:37 -0800 |
---|---|---|
committer | jessib <jessib@leap.se> | 2013-01-22 11:12:37 -0800 |
commit | e1c0b7f23d7be1d8f3139aa255bd121969ece97a (patch) | |
tree | 9f9085f0e4f484d5d49797242778db6ea9e9fad0 /help/app/controllers/tickets_controller.rb | |
parent | ed1caa740f0e58cfd5f2d908946461154db68174 (diff) |
Translate text rather than having it in code directly.
Diffstat (limited to 'help/app/controllers/tickets_controller.rb')
-rw-r--r-- | help/app/controllers/tickets_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/help/app/controllers/tickets_controller.rb b/help/app/controllers/tickets_controller.rb index b613088..372ff6e 100644 --- a/help/app/controllers/tickets_controller.rb +++ b/help/app/controllers/tickets_controller.rb @@ -24,7 +24,8 @@ class TicketsController < ApplicationController end flash[:notice] = 'Ticket was successfully created.' if @ticket.save if !logged_in? - flash[:notice] = flash[:notice] + ' You can later access this ticket at the url ' + request.protocol + request.host_with_port + ticket_path(@ticket.id) + '. You might want to bookmark this page to find it again. Anybody with this URL will be able to access this ticket, so if you are on a shared computer you might want to remove it from the browser history' #todo + # cannot set this until ticket has been saved, as @ticket.id will not be set + flash[:notice] += " " + t(:access_ticket_text, :full_url => request.protocol + request.host_with_port + ticket_path(@ticket.id)) end respond_with(@ticket) |