Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
diaspora
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Gigadoc 2
diaspora
Commits
2ce7a1e1
Commit
2ce7a1e1
authored
Aug 27, 2015
by
augier
Committed by
Jonne Haß
Aug 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mobile subdomain
closes #6354
parent
f627919f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
0 deletions
+17
-0
Changelog.md
Changelog.md
+1
-0
app/controllers/home_controller.rb
app/controllers/home_controller.rb
+6
-0
config/routes.rb
config/routes.rb
+1
-0
features/mobile/home.feature
features/mobile/home.feature
+7
-0
features/support/paths.rb
features/support/paths.rb
+2
-0
No files found.
Changelog.md
View file @
2ce7a1e1
...
...
@@ -27,6 +27,7 @@
*
Display original author on reshares of NSFW posts
[
#6270
](
https://github.com/diaspora/diaspora/pull/6270
)
*
Use avatars in hovercards as links to the profile
[
#6297
](
https://github.com/diaspora/diaspora/pull/6297
)
*
Remove avatars of ignored users from stream faces
[
#6320
](
https://github.com/diaspora/diaspora/pull/6320
)
*
New /m route to force the mobile view
[
#6354
](
https://github.com/diaspora/diaspora/pull/6354
)
# 0.5.2.0
...
...
app/controllers/home_controller.rb
View file @
2ce7a1e1
...
...
@@ -30,4 +30,10 @@ class HomeController < ApplicationController
redirect_to
:back
end
def
force_mobile
session
[
:mobile_view
]
=
true
redirect_to
stream_path
end
end
config/routes.rb
View file @
2ce7a1e1
...
...
@@ -224,6 +224,7 @@ Diaspora::Application.routes.draw do
# Mobile site
get
'mobile/toggle'
,
:to
=>
'home#toggle_mobile'
,
:as
=>
'toggle_mobile'
get
"/m"
,
to:
"home#force_mobile"
,
as:
"force_mobile"
# Help
get
'help'
=>
'help#faq'
,
:as
=>
'help'
...
...
features/mobile/home.feature
View file @
2ce7a1e1
...
...
@@ -10,3 +10,10 @@ Feature: Visit the landing page of the pod
When
I toggle the mobile view
And
I go to the root page
Then
I should see
"Welcome, friend"
When
I am on the root page
Then
I should see
"Welcome, friend"
When
I go to the mobile path
Then
I should see
"LOG IN"
When
I go to the mobile path
Then
I should see
"LOG IN"
features/support/paths.rb
View file @
2ce7a1e1
...
...
@@ -5,6 +5,8 @@ module NavigationHelpers
person_photos_path
(
@me
.
person
)
when
/^the home(?: )?page$/
stream_path
when
/^the mobile path$/
force_mobile_path
when
/^step (\d)$/
if
$1
.
to_i
==
1
getting_started_path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment