Unify profile sidebar
This commit is contained in:
parent
eea3818c45
commit
d73da263d9
2 changed files with 13 additions and 13 deletions
|
|
@ -461,6 +461,15 @@ form.new_comment
|
||||||
h4
|
h4
|
||||||
:font-weight bold
|
:font-weight bold
|
||||||
|
|
||||||
|
#image_list
|
||||||
|
.section
|
||||||
|
:margin
|
||||||
|
:bottom 4px
|
||||||
|
|
||||||
|
img
|
||||||
|
:height 45px
|
||||||
|
:width 45px
|
||||||
|
|
||||||
#sharing_message
|
#sharing_message
|
||||||
:font-size smaller
|
:font-size smaller
|
||||||
:align middle
|
:align middle
|
||||||
|
|
@ -1883,15 +1892,6 @@ h1.tag
|
||||||
.hover_edit
|
.hover_edit
|
||||||
:display inline
|
:display inline
|
||||||
|
|
||||||
#contacts_of_contact
|
|
||||||
.section
|
|
||||||
:margin
|
|
||||||
:bottom 4px
|
|
||||||
|
|
||||||
.avatar
|
|
||||||
:height 45px
|
|
||||||
:width 45px
|
|
||||||
|
|
||||||
.date
|
.date
|
||||||
:background
|
:background
|
||||||
:color #e6e6e6
|
:color #e6e6e6
|
||||||
|
|
|
||||||
|
|
@ -45,22 +45,22 @@
|
||||||
=t('.born')
|
=t('.born')
|
||||||
= birthday_format(person.birthday)
|
= birthday_format(person.birthday)
|
||||||
- if @photos.present?
|
- if @photos.present?
|
||||||
%li
|
%li#image_list
|
||||||
%h4
|
%h4
|
||||||
= t('.photos')
|
= t('.photos')
|
||||||
.item_count
|
.item_count
|
||||||
= "#{@photos.count}"
|
= "#{@photos.count}"
|
||||||
- @photos.limit(3).each do |photo|
|
- @photos.limit(8).each do |photo|
|
||||||
= image_tag(photo.url(:thumb_small))
|
= image_tag(photo.url(:thumb_small))
|
||||||
%br
|
%br
|
||||||
= link_to t('layouts.header.view_all'), person_photos_path(person)
|
= link_to t('layouts.header.view_all'), person_photos_path(person)
|
||||||
|
|
||||||
- if person == current_user.person
|
- if person == current_user.person
|
||||||
%li#contacts_of_contact
|
%li#image_list
|
||||||
%h4
|
%h4
|
||||||
= t('_contacts')
|
= t('_contacts')
|
||||||
.item_count
|
.item_count
|
||||||
= my_contacts_count
|
= all_contacts_count
|
||||||
.section.contact_pictures
|
.section.contact_pictures
|
||||||
- current_user.contacts.limit(8).each do |contact|
|
- current_user.contacts.limit(8).each do |contact|
|
||||||
= person_image_link contact.person, :size => :thumb_small
|
= person_image_link contact.person, :size => :thumb_small
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue