Commit 6450ed78a1c84e42a05df32bb31096a11108f4f8
1 parent
8b4d0486
Exists in
master
and in
29 other branches
ActionItem135: changed the view of list of people
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1080 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/design_blocks/list_block/views/index.rhtml
1 | 1 | <ul class='people_list_block'> |
2 | 2 | <% @people.each do |p| %> |
3 | - <li> <%= link_to_homepage(content_tag('span', (p.image ? (image_tag p.image.public_filename) : p.name)), p.identifier) %> </li> | |
3 | + <li> <%= link_to_homepage(content_tag('span',p.name) + (p.image ? image_tag(p.image.public_filename :portrait) : ''), p.identifier) %> </li> | |
4 | 4 | <% end %> |
5 | 5 | </ul> | ... | ... |
app/models/image.rb
... | ... | @@ -5,7 +5,7 @@ class Image < ActiveRecord::Base |
5 | 5 | :storage => :file_system, |
6 | 6 | :max_size => 500.kilobytes, |
7 | 7 | :resize_to => '320x200>', |
8 | - :thumbnails => { :thumb => '100x100>', :minor => '64x64>' } | |
8 | + :thumbnails => { :thumb => '100x100>', :minor => '64x64>', :portrait => 'x95' } | |
9 | 9 | |
10 | 10 | validates_as_attachment |
11 | 11 | end | ... | ... |