diff options
author | Faton Selishta <fatonselishta@gmail.com> | 2011-06-02 14:32:00 +0000 |
---|---|---|
committer | Faton Selishta <fatonselishta@gmail.com> | 2011-06-02 14:32:00 +0000 |
commit | 018e04dd94503dec29fe13c8f1044a0fda887698 (patch) | |
tree | d22c31839ab6430e45b44abc48ac2dcb6f151328 /app/controllers/request_controller.rb | |
parent | 03288683a6b4f95b5f3a007433b4adf8c5f22c17 (diff) |
Specific code for our requirements (kosovo law, our request etc..)
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 6b1373e07..0c02effa7 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -404,6 +404,12 @@ class RequestController < ApplicationController redirect_to respond_to_last_url(@info_request) elsif @info_request.calculate_status == 'gone_postal' redirect_to respond_to_last_url(@info_request) + "?gone_postal=1" + elsif @info_request.calculate_status == 'deadline_extended' + flash[:notice] = "Authority has requested extension of the deadline." + redirect_to unhappy_url(@info_request) + elsif @info_request.calculate_status == 'wrong_response' + flash[:notice] = "Oh no! Sorry to hear that your request was wrong. Here is what to do now." + redirect_to unhappy_url(@info_request) elsif @info_request.calculate_status == 'internal_review' flash[:notice] = "<p>Thank you! Hopefully your wait isn't too long.</p><p>You should get a response within 20 days, or be told if it will take longer (<a href=\"" + unhappy_url(@info_request) + "#internal_review\">details</a>).</p>" redirect_to request_url(@info_request) |