Commit 6744cb133db8e7e5d34de2f8bdc4307548b9ef86
Committed by
Antonio Terceiro
1 parent
373fb7b6
Exists in
master
and in
22 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,7 +466,7 @@ module ApplicationHelper | ||
| 466 | # displays a link to the community homepage with its image (as generated by | 466 | # displays a link to the community homepage with its image (as generated by |
| 467 | # #profile_image) and its name and number of members beside it. | 467 | # #profile_image) and its name and number of members beside it. |
| 468 | def community_image_link( profile, size=:portrait, tag='li' ) | 468 | def community_image_link( profile, size=:portrait, tag='li' ) |
| 469 | - name = profile.short_name | 469 | + name = profile.name |
| 470 | content_tag tag, | 470 | content_tag tag, |
| 471 | link_to( | 471 | link_to( |
| 472 | content_tag( 'span', profile_image( profile, size ), :class => 'profile-image' ) + | 472 | content_tag( 'span', profile_image( profile, size ), :class => 'profile-image' ) + |
| @@ -476,7 +476,8 @@ module ApplicationHelper | @@ -476,7 +476,8 @@ module ApplicationHelper | ||
| 476 | :onclick => 'document.location.href = this.href', # work-arround for ie. | 476 | :onclick => 'document.location.href = this.href', # work-arround for ie. |
| 477 | :class => 'profile_link url', | 477 | :class => 'profile_link url', |
| 478 | :help => _('Click on this icon to go to the <b>%s</b>\'s home page') % profile.name, | 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 | :class => 'vcard' | 481 | :class => 'vcard' |
| 481 | end | 482 | end |
| 482 | 483 |
app/helpers/block_helper.rb
app/views/layouts/application-ng.rhtml
| @@ -102,8 +102,6 @@ | @@ -102,8 +102,6 @@ | ||
| 102 | <div id="theme-footer"> | 102 | <div id="theme-footer"> |
| 103 | <%= theme_footer %> | 103 | <%= theme_footer %> |
| 104 | </div><!-- end id="theme-footer" --> | 104 | </div><!-- end id="theme-footer" --> |
| 105 | - | ||
| 106 | <%= noosfero_layout_features %> | 105 | <%= noosfero_layout_features %> |
| 107 | - | ||
| 108 | </body> | 106 | </body> |
| 109 | </html> | 107 | </html> |
app/views/shared/noosfero_layout_features.rhtml
| @@ -5,3 +5,11 @@ | @@ -5,3 +5,11 @@ | ||
| 5 | <% if ask_to_join? %> | 5 | <% if ask_to_join? %> |
| 6 | <%= render :file => 'shared/join_community_popup' %> | 6 | <%= render :file => 'shared/join_community_popup' %> |
| 7 | <% end %> | 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> |