Unify profile sidebar

This commit is contained in:
Steffen van Bergerem 2013-08-19 14:53:55 +02:00
parent eea3818c45
commit d73da263d9
2 changed files with 13 additions and 13 deletions

View file

@ -461,6 +461,15 @@ form.new_comment
h4
:font-weight bold
#image_list
.section
:margin
:bottom 4px
img
:height 45px
:width 45px
#sharing_message
:font-size smaller
:align middle
@ -1883,15 +1892,6 @@ h1.tag
.hover_edit
:display inline
#contacts_of_contact
.section
:margin
:bottom 4px
.avatar
:height 45px
:width 45px
.date
:background
:color #e6e6e6

View file

@ -45,22 +45,22 @@
=t('.born')
= birthday_format(person.birthday)
- if @photos.present?
%li
%li#image_list
%h4
= t('.photos')
.item_count
= "#{@photos.count}"
- @photos.limit(3).each do |photo|
- @photos.limit(8).each do |photo|
= image_tag(photo.url(:thumb_small))
%br
= link_to t('layouts.header.view_all'), person_photos_path(person)
- if person == current_user.person
%li#contacts_of_contact
%li#image_list
%h4
= t('_contacts')
.item_count
= my_contacts_count
= all_contacts_count
.section.contact_pictures
- current_user.contacts.limit(8).each do |contact|
= person_image_link contact.person, :size => :thumb_small