Commit 11482d6eb0d57d6baeb06b75263de008498f9485
1 parent
2f2e61e0
Exists in
master
and in
28 other branches
ActionItem169: listing profiles with ul/li
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1469 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
5 additions
and
25 deletions
Show diff stats
app/models/profile_list_block.rb
@@ -60,7 +60,10 @@ class ProfileListBlock < Block | @@ -60,7 +60,10 @@ class ProfileListBlock < Block | ||
60 | title = self.title | 60 | title = self.title |
61 | lambda do | 61 | lambda do |
62 | block_title(title) + | 62 | block_title(title) + |
63 | - profiles.map {|item| content_tag('div', profile_image_link(item), :class => 'profile-list-block-link') }.join("\n") | 63 | + content_tag( |
64 | + 'ul', | ||
65 | + profiles.map {|item| content_tag('li', profile_image_link(item)) }.join("\n") | ||
66 | + ) | ||
64 | end | 67 | end |
65 | end | 68 | end |
66 | 69 |
public/stylesheets/blocks/profile-list-block.css
1 | -div.profile-list-block div.profile-list-block-link, | ||
2 | -div.communities-block div.profile-list-block-link, | ||
3 | -div.members-block div.profile-list-block-link, | ||
4 | -div.enterprises-block div.profile-list-block-link | ||
5 | -{ | ||
6 | - display: block; | ||
7 | - float: left; | ||
8 | - | ||
9 | - width: 100px; | ||
10 | - height: 110px; | ||
11 | - overflow: hidden; | ||
12 | - | ||
13 | - font-size: smaller; | ||
14 | - text-align: center; | ||
15 | - | ||
16 | -} | ||
17 | - | ||
18 | -div.profile-list-block, | ||
19 | -div.communities-block, | ||
20 | -div.members-block, | ||
21 | -div.enterprises-block { | ||
22 | - clear: both; | ||
23 | -} | ||
24 | - | 1 | +/* nothing yet */ |