Merge branch 'stable' into develop
This commit is contained in:
commit
85f9a0eaa9
2 changed files with 2 additions and 7 deletions
|
|
@ -70,6 +70,7 @@ With the port to Bootstrap 3, app/views/terms/default.haml has a new structure.
|
|||
* Drop outdated/unused mbp-respond.min.js and mbp-modernizr-custom.js [#6257](https://github.com/diaspora/diaspora/pull/6257)
|
||||
* Refactor ApplicationController#after\_sign\_out\_path\_for [#6258](https://github.com/diaspora/diaspora/pull/6258)
|
||||
* Extract StatusMessageService from StatusMessagesController [#6280](https://github.com/diaspora/diaspora/pull/6280)
|
||||
* Refactor HomeController#toggle\_mobile [#6260](https://github.com/diaspora/diaspora/pull/6260)
|
||||
|
||||
## Bug fixes
|
||||
* Fix indentation and a link title on the default home page [#6212](https://github.com/diaspora/diaspora/pull/6212)
|
||||
|
|
|
|||
|
|
@ -26,13 +26,7 @@ class HomeController < ApplicationController
|
|||
end
|
||||
|
||||
def toggle_mobile
|
||||
if session[:mobile_view].nil?
|
||||
# we're most probably not on mobile, but user wants it anyway
|
||||
session[:mobile_view] = true
|
||||
else
|
||||
# switch from mobile to normal html
|
||||
session[:mobile_view] = !session[:mobile_view]
|
||||
end
|
||||
session[:mobile_view] = session[:mobile_view].nil? ? true : !session[:mobile_view]
|
||||
|
||||
redirect_to :back
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue