Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Milan
diaspora
Commits
b0a4d5d4
Commit
b0a4d5d4
authored
Mar 23, 2014
by
Jonne Haß
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4870 from svbergerem/activate-hovercards
Activate hovercards in SPV and conversations
parents
029520a3
cd241ee9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
Changelog.md
Changelog.md
+1
-0
app/assets/javascripts/app/pages/single-post-viewer.js
app/assets/javascripts/app/pages/single-post-viewer.js
+0
-1
app/helpers/people_helper.rb
app/helpers/people_helper.rb
+4
-0
No files found.
Changelog.md
View file @
b0a4d5d4
...
...
@@ -34,6 +34,7 @@
*
New menu for the mobile version
[
#4673
](
https://github.com/diaspora/diaspora/pull/4673
)
*
Added comment count to statistic to enable calculations of posts/comments ratios
[
#4799
](
https://github.com/diaspora/diaspora/pull/4799
)
*
Add filters to notifications controller
[
#4814
](
https://github.com/diaspora/diaspora/pull/4814
)
*
Activate hovercards in SPV and conversations
[
#4870
](
https://github.com/diaspora/diaspora/pull/4870
)
# 0.3.0.3
...
...
app/assets/javascripts/app/pages/single-post-viewer.js
View file @
b0a4d5d4
...
...
@@ -34,7 +34,6 @@ app.pages.SinglePostViewer = app.views.Base.extend({
var
html_title
=
app
.
helpers
.
textFormatter
(
this
.
model
.
get
(
"
title
"
),
this
.
model
);
//... and converts html to plain text
document
.
title
=
$
(
'
<div>
'
).
html
(
html_title
).
text
();
app
.
hovercard
.
deactivate
()
// No hovercards for now.
}
},
...
...
app/helpers/people_helper.rb
View file @
b0a4d5d4
...
...
@@ -26,6 +26,7 @@ module PeopleHelper
def
person_link
(
person
,
opts
=
{})
opts
[
:class
]
||=
""
opts
[
:class
]
<<
" self"
if
defined?
(
user_signed_in?
)
&&
user_signed_in?
&&
current_user
.
person
==
person
opts
[
:class
]
<<
" hovercardable"
if
defined?
(
user_signed_in?
)
&&
user_signed_in?
&&
current_user
.
person
!=
person
remote_or_hovercard_link
=
Rails
.
application
.
routes
.
url_helpers
.
person_path
(
person
).
html_safe
"<a data-hovercard='
#{
remote_or_hovercard_link
}
' href='
#{
remote_or_hovercard_link
}
' class='
#{
opts
[
:class
]
}
'
#{
(
"target="
+
opts
[
:target
])
if
opts
[
:target
]
}
>
#{
h
(
person
.
name
)
}
</a>"
.
html_safe
end
...
...
@@ -39,6 +40,9 @@ module PeopleHelper
if
opts
[
:to
]
==
:photos
link_to
person_image_tag
(
person
,
opts
[
:size
]),
person_photos_path
(
person
)
else
opts
[
:class
]
||=
""
opts
[
:class
]
<<
" self"
if
defined?
(
user_signed_in?
)
&&
user_signed_in?
&&
current_user
.
person
==
person
opts
[
:class
]
<<
" hovercardable"
if
defined?
(
user_signed_in?
)
&&
user_signed_in?
&&
current_user
.
person
!=
person
remote_or_hovercard_link
=
Rails
.
application
.
routes
.
url_helpers
.
person_path
(
person
).
html_safe
"<a href='
#{
remote_or_hovercard_link
}
' class='
#{
opts
[
:class
]
}
'
#{
(
"target="
+
opts
[
:target
])
if
opts
[
:target
]
}
>
#{
person_image_tag
(
person
,
opts
[
:size
])
}
...
...
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