Commit 6744cb133db8e7e5d34de2f8bdc4307548b9ef86
Committed by
Antonio Terceiro
1 parent
373fb7b6
Exists in
master
and in
28 other branches
ActionItem1050: nice features
Showing
4 changed files
with
14 additions
and
5 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -466,7 +466,7 @@ module ApplicationHelper |
466 | 466 | # displays a link to the community homepage with its image (as generated by |
467 | 467 | # #profile_image) and its name and number of members beside it. |
468 | 468 | def community_image_link( profile, size=:portrait, tag='li' ) |
469 | - name = profile.short_name | |
469 | + name = profile.name | |
470 | 470 | content_tag tag, |
471 | 471 | link_to( |
472 | 472 | content_tag( 'span', profile_image( profile, size ), :class => 'profile-image' ) + |
... | ... | @@ -476,7 +476,8 @@ module ApplicationHelper |
476 | 476 | :onclick => 'document.location.href = this.href', # work-arround for ie. |
477 | 477 | :class => 'profile_link url', |
478 | 478 | :help => _('Click on this icon to go to the <b>%s</b>\'s home page') % profile.name, |
479 | - :title => profile.name ), | |
479 | + :title => profile.name ) + | |
480 | + '<br class="may-clear"/>', | |
480 | 481 | :class => 'vcard' |
481 | 482 | end |
482 | 483 | ... | ... |
app/helpers/block_helper.rb
app/views/layouts/application-ng.rhtml
app/views/shared/noosfero_layout_features.rhtml
... | ... | @@ -5,3 +5,11 @@ |
5 | 5 | <% if ask_to_join? %> |
6 | 6 | <%= render :file => 'shared/join_community_popup' %> |
7 | 7 | <% end %> |
8 | + | |
9 | + <script type="text/javascript"> | |
10 | + $$("a").each(function(a){ | |
11 | + if ( a.href == document.location.href ) { | |
12 | + a.className += " link-this-page"; | |
13 | + } | |
14 | + }); | |
15 | + </script> | ... | ... |