diff --git a/app/controllers/dmsf_state_controller.rb b/app/controllers/dmsf_state_controller.rb index e831d0a8..434df33f 100644 --- a/app/controllers/dmsf_state_controller.rb +++ b/app/controllers/dmsf_state_controller.rb @@ -49,11 +49,14 @@ class DmsfStateController < ApplicationController end def user_pref + end + + def user_pref_save @user_pref = DmsfUserPref.for(@project, User.current) @user_pref.email_notify = params[:email_notify]; @user_pref.save flash[:notice] = l(:notice_your_preferences_were_saved) - redirect_to URI.unescape(params[:current]) + redirect_to :action => "user_pref", :id => @project end def folder_notify_activate diff --git a/app/views/dmsf/index.html.erb b/app/views/dmsf/index.html.erb index 76e7541f..75824374 100644 --- a/app/views/dmsf/index.html.erb +++ b/app/views/dmsf/index.html.erb @@ -1,4 +1,4 @@ -<% html_title("DMSF") %> +<% html_title(l(:dmsf)) %>
<% if User.current.allowed_to?(:folder_manipulation, @project) %> @@ -162,7 +162,7 @@ form_tag({:action => "entries_operation", :id => @project, :folder_id => @folder <%= render(:partial => "multi_upload") %>
-<%= render(:partial => "user_pref") %> +<%= link_to(l(:link_user_preferences), {:controller => "dmsf_state", :action => "user_pref", :id => @project}) %> <% content_for :header_tags do %>