From 6744cb133db8e7e5d34de2f8bdc4307548b9ef86 Mon Sep 17 00:00:00 2001 From: Aurelio A. Heckert Date: Mon, 25 May 2009 21:18:19 -0300 Subject: [PATCH] ActionItem1050: nice features --- app/helpers/application_helper.rb | 5 +++-- app/helpers/block_helper.rb | 4 +++- app/views/layouts/application-ng.rhtml | 2 -- app/views/shared/noosfero_layout_features.rhtml | 8 ++++++++ 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4ab6a69..e6e1b93 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -466,7 +466,7 @@ module ApplicationHelper # displays a link to the community homepage with its image (as generated by # #profile_image) and its name and number of members beside it. def community_image_link( profile, size=:portrait, tag='li' ) - name = profile.short_name + name = profile.name content_tag tag, link_to( content_tag( 'span', profile_image( profile, size ), :class => 'profile-image' ) + @@ -476,7 +476,8 @@ module ApplicationHelper :onclick => 'document.location.href = this.href', # work-arround for ie. :class => 'profile_link url', :help => _('Click on this icon to go to the %s\'s home page') % profile.name, - :title => profile.name ), + :title => profile.name ) + + '
', :class => 'vcard' end diff --git a/app/helpers/block_helper.rb b/app/helpers/block_helper.rb index d90fdb1..e5c9b04 100644 --- a/app/helpers/block_helper.rb +++ b/app/helpers/block_helper.rb @@ -1,7 +1,9 @@ module BlockHelper def block_title(title) - content_tag('h3', title, :class => 'block-title') + tag_class = 'block-title' + tag_class += ' empty' if title.empty? + content_tag 'h3', title, :class => tag_class end end diff --git a/app/views/layouts/application-ng.rhtml b/app/views/layouts/application-ng.rhtml index 8e7d631..0601e95 100644 --- a/app/views/layouts/application-ng.rhtml +++ b/app/views/layouts/application-ng.rhtml @@ -102,8 +102,6 @@ - <%= noosfero_layout_features %> - diff --git a/app/views/shared/noosfero_layout_features.rhtml b/app/views/shared/noosfero_layout_features.rhtml index 02c12e1..151177f 100644 --- a/app/views/shared/noosfero_layout_features.rhtml +++ b/app/views/shared/noosfero_layout_features.rhtml @@ -5,3 +5,11 @@ <% if ask_to_join? %> <%= render :file => 'shared/join_community_popup' %> <% end %> + + -- libgit2 0.21.2