Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
diaspora
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
diasporg
diaspora
Commits
a26dc34a
Commit
a26dc34a
authored
Oct 02, 2012
by
Jason Robinson
Committed by
Florian Staudacher
Oct 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken mobile bookmarklet, isse #3613
parent
ad158975
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
app/controllers/status_messages_controller.rb
app/controllers/status_messages_controller.rb
+11
-1
app/views/status_messages/bookmarklet.mobile.haml
app/views/status_messages/bookmarklet.mobile.haml
+1
-1
No files found.
app/controllers/status_messages_controller.rb
View file @
a26dc34a
...
...
@@ -11,7 +11,17 @@ class StatusMessagesController < ApplicationController
:mobile
,
:json
layout
'blank'
,
:only
=>
[
:bookmarklet
]
layout
:bookmarklet_layout
,
:only
=>
:bookmarklet
# Define bookmarklet layout depending on whether
# user is in mobile or desktop mode
def
bookmarklet_layout
if
request
.
format
==
:mobile
'application'
else
'blank'
end
end
# Called when a user clicks "Mention" on a profile page
# @param person_id [Integer] The id of the person to be mentioned
...
...
app/views/status_messages/bookmarklet.mobile.haml
View file @
a26dc34a
...
...
@@ -18,4 +18,4 @@
});
-
content_for
(
:head
)
do
=
javascript_include_tag
:mobile
\ No newline at end of file
=
javascript_include_tag
:jquery
,
:mobile
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