Commit 6291300347ab93a7089556e9d1e0f6b082a7ec43
1 parent
4c1cc6ae
Exists in
master
and in
28 other branches
ActionItem85: changed the span of the block
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@799 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
12 additions
and
16 deletions
Show diff stats
app/models/enterprises_block.rb
@@ -2,17 +2,16 @@ class EnterprisesBlock < Design::Block | @@ -2,17 +2,16 @@ class EnterprisesBlock < Design::Block | ||
2 | 2 | ||
3 | def content | 3 | def content |
4 | 4 | ||
5 | - lambda do | ||
6 | - content_tag(:ul, | ||
7 | - Enterprise.find(:all).map do |p| | ||
8 | - content_tag(:li, | ||
9 | - content_tag(:span, | ||
10 | - link_to_homepage( p.name, p.identifier) | 5 | + lambda do |
6 | + content_tag( | ||
7 | + 'ul', | ||
8 | + Enterprise.find(:all).map do |p| | ||
9 | + content_tag( | ||
10 | + 'li', | ||
11 | + link_to_homepage(content_tag('span', p.name, :class => 'people_list_block'), p.identifier) | ||
12 | + ) | ||
13 | + end.join("\n") | ||
11 | ) | 14 | ) |
12 | - ) | ||
13 | - end.join("\n"), | ||
14 | - :class => 'enterprises_list_block' | ||
15 | - ) | ||
16 | end | 15 | end |
17 | 16 | ||
18 | end | 17 | end |
app/models/list_block.rb
@@ -8,12 +8,9 @@ class ListBlock < Design::Block | @@ -8,12 +8,9 @@ class ListBlock < Design::Block | ||
8 | Person.find(:all).map do |p| | 8 | Person.find(:all).map do |p| |
9 | content_tag( | 9 | content_tag( |
10 | 'li', | 10 | 'li', |
11 | - content_tag( | ||
12 | - 'span', | ||
13 | - link_to_homepage( p.name, p.identifier) | ||
14 | - )) | ||
15 | - end.join("\n"), | ||
16 | - :class => 'people_list_block' | 11 | + link_to_homepage(content_tag('span', p.name, :class => 'people_list_block'), p.identifier) |
12 | + ) | ||
13 | + end.join("\n") | ||
17 | ) | 14 | ) |
18 | end | 15 | end |
19 | 16 |