diff --git a/app/models/communities_block.rb b/app/models/communities_block.rb index 15b1820..87382bc 100644 --- a/app/models/communities_block.rb +++ b/app/models/communities_block.rb @@ -8,6 +8,10 @@ class CommunitiesBlock < ProfileListBlock _('Communities') end + def help + _('Here you can see the communities where this user is part.') + end + def footer profile = self.owner lambda do diff --git a/app/models/enterprises_block.rb b/app/models/enterprises_block.rb index d089663..dee8c17 100644 --- a/app/models/enterprises_block.rb +++ b/app/models/enterprises_block.rb @@ -4,6 +4,10 @@ class EnterprisesBlock < ProfileListBlock _('Enterprises') end + def help + _('Here you can see the enterprises where this user works.') + end + def self.description _('A block that displays your enterprises') end diff --git a/app/models/profile_list_block.rb b/app/models/profile_list_block.rb index 233692b..a7cdd10 100644 --- a/app/models/profile_list_block.rb +++ b/app/models/profile_list_block.rb @@ -55,6 +55,10 @@ class ProfileListBlock < Block _('People and Groups') end + def help + _('Clicking on the people or groups will take you to their home page.') + end + def content profiles = self.profiles title = self.title @@ -72,8 +76,4 @@ class ProfileListBlock < Block end end - def help - _('Clicking on the people or groups will take you to their home page.') - end - end diff --git a/app/views/shared/user_menu.rhtml b/app/views/shared/user_menu.rhtml index 5da01c4..57c7b72 100644 --- a/app/views/shared/user_menu.rhtml +++ b/app/views/shared/user_menu.rhtml @@ -1,4 +1,6 @@ -
+
"> <% if logged_in? %> @@ -13,21 +15,30 @@
    -
  • <%= _('My Home Page') %>
  • +
  • <%= _('My Home Page') %>
  • <%= link_to_myprofile( ''+ _('control panel'), - {}, nil, :id => 'link_edit_profile' ) %>
  • + {}, nil, :id => 'link_edit_profile', + :help => _('The control panel is where you find all cool features to make your site rock!

    There you will find how to change your picture, or your personal information, add content to your site, change your look, and more...') + ) %> <%= '

  • '+ link_to( ''+ _('Admin'), - { :controller => 'admin_panel' }, :id => 'link_admin_panel' ) + + { :controller => 'admin_panel' }, :id => 'link_admin_panel', + :help => _('This link will take you to the page where you can use your super-powers!') + ) + '
  • ' if user.is_admin? %>
  • <%= lightbox_link_to( ''+ _('Logout'), - { :controller => 'account', :action => 'logout_popup'}, :id => 'link_logout' ) %>
  • + { :controller => 'account', :action => 'logout_popup'}, + :id => 'link_logout', + :help => _('If you\'ll not use more this web site (for now), or will exit from this computer, where other peple may use, is better to click on this Logout link.') + ) %>
@@ -36,7 +47,8 @@ <%= lightbox_link_to ''+ _('Login'), { :controller => 'account', :action => 'login_popup' }, - :id => 'link_login' %> + :id => 'link_login', + :help => _('Open the logion box to allow you to be recognized and to use the cool functions of this enviroment.') %> <% end %> -- libgit2 0.21.2