diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-27 12:53:13 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:45 +0000 |
commit | 0f43f36254c9bbd1a66f5fd0951d5c2517581e4d (patch) | |
tree | 49190077f7ce5ab895f991054832ec70bf377440 /app/controllers/user_controller.rb | |
parent | f31ff5e5cfd6247338ad769c713a7f21af4a0623 (diff) |
Display batch requests for user on 'my requests' page
This is the most rudimentary possible way to give them access to the batch request urls, pending #1239
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r-- | app/controllers/user_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 175425280..8d6522923 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -26,12 +26,15 @@ class UserController < ApplicationController if params[:view].nil? @show_requests = true @show_profile = true + @show_batches = false elsif params[:view] == 'profile' @show_profile = true @show_requests = false + @show_batches = false elsif params[:view] == 'requests' @show_profile = false @show_requests = true + @show_batches = true end @display_user = User.find(:first, :conditions => [ "url_name = ? and email_confirmed = ?", params[:url_name], true ]) |