branch/tag remember - to session instead of cookie

This commit is contained in:
gitlabhq 2011-10-14 18:33:05 +03:00
parent fc34fc86c6
commit 2d577cae9d
4 changed files with 19 additions and 17 deletions

View file

@ -3,4 +3,12 @@ module ProjectsHelper
cookies["project_view"] ||= "tile"
cookies["project_view"] == type ? nil : "display:none"
end
def remember_refs
session[:ui] ||= {}
session[:ui][@project.id] = {
:branch => params[:branch],
:tag => params[:tag]
}
end
end