added tag helper text on profile, edit on hover
This commit is contained in:
parent
7636fec270
commit
20b5ca7570
4 changed files with 45 additions and 2 deletions
|
|
@ -59,7 +59,17 @@
|
||||||
%span.diaspora_handle
|
%span.diaspora_handle
|
||||||
= @person.diaspora_handle
|
= @person.diaspora_handle
|
||||||
.description
|
.description
|
||||||
= @person.profile.format_tags(@person.profile.tag_string)
|
- if !@person.profile.tag_string.blank?
|
||||||
|
= @person.profile.format_tags(@person.profile.tag_string)
|
||||||
|
- if @person == current_user.person
|
||||||
|
%span.hover_edit
|
||||||
|
= link_to t('.edit'), edit_profile_path
|
||||||
|
- else
|
||||||
|
- if @person == current_user.person
|
||||||
|
%i
|
||||||
|
= t('.you_have_no_tags')
|
||||||
|
%span.add_tags
|
||||||
|
= link_to t('.add_some'), edit_profile_path
|
||||||
%hr
|
%hr
|
||||||
|
|
||||||
- if @posts.count > 0
|
- if @posts.count > 0
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
.span-12.prepend-5.last
|
.span-12.prepend-5.last
|
||||||
- content_for :submit_block do
|
- content_for :submit_block do
|
||||||
= link_to t('cancel'), edit_user_path(current_user)
|
= link_to t('cancel'), person_path(current_user.person)
|
||||||
= t('or')
|
= t('or')
|
||||||
= submit_tag t('.update_profile')
|
= submit_tag t('.update_profile')
|
||||||
= render :partial => 'edit', :locals => {:person => @person,
|
= render :partial => 'edit', :locals => {:person => @person,
|
||||||
|
|
|
||||||
|
|
@ -333,6 +333,9 @@ en:
|
||||||
fail: "Sorry, we couldn't find %{handle}."
|
fail: "Sorry, we couldn't find %{handle}."
|
||||||
show:
|
show:
|
||||||
no_posts: "no posts to display!"
|
no_posts: "no posts to display!"
|
||||||
|
you_have_no_tags: "you have no tags!"
|
||||||
|
add_some: "add some"
|
||||||
|
edit: "edit"
|
||||||
incoming_request: "%{name} wants to share with you"
|
incoming_request: "%{name} wants to share with you"
|
||||||
return_to_aspects: "Return to your aspects page"
|
return_to_aspects: "Return to your aspects page"
|
||||||
to_accept_or_ignore: "to accept or ignore it."
|
to_accept_or_ignore: "to accept or ignore it."
|
||||||
|
|
|
||||||
|
|
@ -250,6 +250,8 @@ header
|
||||||
:top 4px
|
:top 4px
|
||||||
:margin
|
:margin
|
||||||
:right 1em
|
:right 1em
|
||||||
|
&:active
|
||||||
|
:top 5px
|
||||||
|
|
||||||
.stream
|
.stream
|
||||||
audio
|
audio
|
||||||
|
|
@ -1698,6 +1700,9 @@ h3 span.current_gs_step
|
||||||
:size smaller
|
:size smaller
|
||||||
:width 28px
|
:width 28px
|
||||||
|
|
||||||
|
&:active
|
||||||
|
:top 6px
|
||||||
|
|
||||||
a
|
a
|
||||||
:z-index 5
|
:z-index 5
|
||||||
:position absolute
|
:position absolute
|
||||||
|
|
@ -2760,8 +2765,16 @@ ul.show_comments
|
||||||
:display none
|
:display none
|
||||||
|
|
||||||
.tag
|
.tag
|
||||||
|
&:hover
|
||||||
|
:text
|
||||||
|
:decoration none
|
||||||
|
:border
|
||||||
|
:bottom 1px solid $blue
|
||||||
|
|
||||||
:background
|
:background
|
||||||
:color lighten($blue, 47%)
|
:color lighten($blue, 47%)
|
||||||
|
:border
|
||||||
|
:bottom 1px dotted $blue
|
||||||
:font
|
:font
|
||||||
:weight bold
|
:weight bold
|
||||||
|
|
||||||
|
|
@ -2772,3 +2785,20 @@ ul.show_comments
|
||||||
:color #999
|
:color #999
|
||||||
:margin
|
:margin
|
||||||
:left 6px
|
:left 6px
|
||||||
|
|
||||||
|
.add_tags
|
||||||
|
:font
|
||||||
|
:weight normal
|
||||||
|
:size 11px
|
||||||
|
|
||||||
|
.hover_edit
|
||||||
|
:display none
|
||||||
|
:font
|
||||||
|
:weight normal
|
||||||
|
:size 11px
|
||||||
|
:margin
|
||||||
|
:left 5px
|
||||||
|
|
||||||
|
.description:hover
|
||||||
|
.hover_edit
|
||||||
|
:display inline
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue