don't show hovercard for current_user in likes field + fixed hovercard styling in likes field
This commit is contained in:
parent
fdaa44ca9c
commit
e994c90559
3 changed files with 8 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ module NotificationsHelper
|
|||
actors =people || note.actors
|
||||
number_of_actors = actors.count
|
||||
sentence_translations = {:two_words_connector => " #{t('notifications.index.and')} ", :last_word_connector => ", #{t('notifications.index.and')} " }
|
||||
actor_links = actors.collect{ |person| link_to("#{h(person.name.titlecase.strip)}", person_path(person), :class => 'hovercardable')}
|
||||
actor_links = actors.collect{ |person| link_to("#{h(person.name.titlecase.strip)}", person_path(person), :class => ('hovercardable' if defined?(user_signed_in?) && user_signed_in? && current_user.person != person))}
|
||||
|
||||
if number_of_actors < 4
|
||||
message = actor_links.to_sentence(sentence_translations)
|
||||
|
|
|
|||
|
|
@ -3078,6 +3078,8 @@ ul.left_nav
|
|||
:width 70px
|
||||
:margin
|
||||
:right 10px
|
||||
:left 0
|
||||
:top 0 !important
|
||||
|
||||
:background
|
||||
:color $background
|
||||
|
|
@ -3095,6 +3097,7 @@ ul.left_nav
|
|||
:margin
|
||||
:bottom 10px
|
||||
a
|
||||
:color $blue
|
||||
:font
|
||||
:weight bold !important
|
||||
|
||||
|
|
|
|||
|
|
@ -122,16 +122,19 @@
|
|||
|
||||
ul
|
||||
@include user-select(none)
|
||||
:font
|
||||
:size normal
|
||||
|
||||
:padding 0 !important
|
||||
:margin 0 !important
|
||||
:color #333
|
||||
:color #000
|
||||
|
||||
> li
|
||||
:font-size 11px !important
|
||||
:padding 3px 2px
|
||||
:left 24px
|
||||
:position relative
|
||||
:color #222
|
||||
|
||||
.check,
|
||||
.checkWhite
|
||||
|
|
|
|||
Loading…
Reference in a new issue