Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
diaspora
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Milan
diaspora
Commits
1d5d872d
Commit
1d5d872d
authored
Mar 28, 2015
by
Jonne Haß
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5821 from svbergerem/fix-layout-regression
Fix layout regression: missing header on search page
parents
331f4ed9
176938c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
app/controllers/people_controller.rb
app/controllers/people_controller.rb
+2
-4
app/controllers/photos_controller.rb
app/controllers/photos_controller.rb
+1
-3
No files found.
app/controllers/people_controller.rb
View file @
1d5d872d
...
...
@@ -6,8 +6,6 @@ class PeopleController < ApplicationController
before_action
:authenticate_user!
,
except:
[
:show
,
:stream
]
before_action
:find_person
,
only:
[
:show
,
:stream
,
:hovercard
]
layout
proc
{
request
.
format
==
:mobile
?
"application"
:
"with_header"
},
only:
%i( show contacts )
respond_to
:html
,
:except
=>
[
:tag_index
]
respond_to
:json
,
:only
=>
[
:index
,
:show
]
respond_to
:js
,
:only
=>
[
:tag_index
]
...
...
@@ -91,7 +89,7 @@ class PeopleController < ApplicationController
gon
.
preloads
[
:contacts
]
=
{
count:
Contact
.
contact_contacts_for
(
current_user
,
@person
).
count
(
:all
),
}
respond_with
@person
respond_with
@person
,
layout:
"with_header"
end
format
.
mobile
do
...
...
@@ -151,7 +149,7 @@ class PeopleController < ApplicationController
}
@contacts_of_contact
=
@contacts_of_contact
.
paginate
(
:page
=>
params
[
:page
],
:per_page
=>
(
params
[
:limit
]
||
15
))
@hashes
=
hashes_for_people
@contacts_of_contact
,
@aspects
respond_with
@person
respond_with
@person
,
layout:
"with_header"
else
flash
[
:error
]
=
I18n
.
t
'people.show.does_not_exist'
redirect_to
people_path
...
...
app/controllers/photos_controller.rb
View file @
1d5d872d
...
...
@@ -6,8 +6,6 @@ class PhotosController < ApplicationController
before_action
:authenticate_user!
,
:except
=>
:show
respond_to
:html
,
:json
layout
proc
{
request
.
format
==
:mobile
?
"application"
:
"with_header"
},
only: :index
def
show
@photo
=
if
user_signed_in?
current_user
.
photos_from
(
Person
.
find_by_guid
(
params
[
:person_id
])).
where
(
id:
params
[
:id
]).
first
...
...
@@ -34,7 +32,7 @@ class PhotosController < ApplicationController
gon
.
preloads
[
:contacts
]
=
{
count:
Contact
.
contact_contacts_for
(
current_user
,
@person
).
count
(
:all
),
}
render
'people/show'
render
"people/show"
,
layout:
"with_header"
end
format
.
json
{
render_for_api
:backbone
,
:json
=>
@posts
,
:root
=>
:photos
}
end
...
...
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