Commit fe8a636035cda88823c7119ee11b39d87190ebac
1 parent
3b9ee290
Exists in
master
and in
29 other branches
ActionItem190: add help for the user menu
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1493 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
4 changed files
with
30 additions
and
10 deletions
Show diff stats
app/models/communities_block.rb
app/models/enterprises_block.rb
app/models/profile_list_block.rb
| ... | ... | @@ -55,6 +55,10 @@ class ProfileListBlock < Block |
| 55 | 55 | _('People and Groups') |
| 56 | 56 | end |
| 57 | 57 | |
| 58 | + def help | |
| 59 | + _('Clicking on the people or groups will take you to their home page.') | |
| 60 | + end | |
| 61 | + | |
| 58 | 62 | def content |
| 59 | 63 | profiles = self.profiles |
| 60 | 64 | title = self.title |
| ... | ... | @@ -72,8 +76,4 @@ class ProfileListBlock < Block |
| 72 | 76 | end |
| 73 | 77 | end |
| 74 | 78 | |
| 75 | - def help | |
| 76 | - _('Clicking on the people or groups will take you to their home page.') | |
| 77 | - end | |
| 78 | - | |
| 79 | 79 | end | ... | ... |
app/views/shared/user_menu.rhtml
| 1 | -<div id="user_menu" class="top_extra_menu AOM_paddingBottom_6"> | |
| 1 | +<div id="user_menu" class="top_extra_menu AOM_paddingBottom_6"<%= | |
| 2 | + ' help="'+ _('This is your menu, for your personal functionalies.') +'"' if logged_in? | |
| 3 | + %>"> | |
| 2 | 4 | |
| 3 | 5 | <% if logged_in? %> |
| 4 | 6 | |
| ... | ... | @@ -13,21 +15,30 @@ |
| 13 | 15 | <div id="user_menu_ul"> |
| 14 | 16 | <ul> |
| 15 | 17 | |
| 16 | - <li><a href="<%= homepage_path(:profile => current_user.login) %>"><span class="icon-menu-home"></span><%= _('My Home Page') %></a></li> | |
| 18 | + <li><a href="<%= homepage_path(:profile => current_user.login) %>" | |
| 19 | + help="<%= _('Go to your home page. <p/> Is good to see if it\'s cool enought and you can make this rock! <b>;-)</b>') %>" | |
| 20 | + ><span class="icon-menu-home"></span><%= _('My Home Page') %></a></li> | |
| 17 | 21 | |
| 18 | 22 | <!-- li><a href="#"><span class="icon-menu-blog"></span> Meu Blog</a></li --> |
| 19 | 23 | |
| 20 | 24 | <li><%= link_to_myprofile( '<span class="icon-menu-ctrl-panel"></span>'+ _('control panel'), |
| 21 | - {}, nil, :id => 'link_edit_profile' ) %></li> | |
| 25 | + {}, nil, :id => 'link_edit_profile', | |
| 26 | + :help => _('The control panel is where you find all <b>cool features</b> to make your site rock! <p/> There you will find how to <b>change your picture</b>, or your <b>personal information</b>, add <b>content to your site</b>, <b>change your look</b>, and <b>more</b>...') | |
| 27 | + ) %></li> | |
| 22 | 28 | |
| 23 | 29 | <%= |
| 24 | 30 | '<li>'+ link_to( '<span class="icon-menu-"></span>'+ _('Admin'), |
| 25 | - { :controller => 'admin_panel' }, :id => 'link_admin_panel' ) + | |
| 31 | + { :controller => 'admin_panel' }, :id => 'link_admin_panel', | |
| 32 | + :help => _('This link will take you to the page where you can use your <b>super-powers</b>!') | |
| 33 | + ) + | |
| 26 | 34 | '</li>' if user.is_admin? |
| 27 | 35 | %> |
| 28 | 36 | |
| 29 | 37 | <li><%= lightbox_link_to( '<span class="icon-menu-logout"></span>'+ _('Logout'), |
| 30 | - { :controller => 'account', :action => 'logout_popup'}, :id => 'link_logout' ) %></li> | |
| 38 | + { :controller => 'account', :action => 'logout_popup'}, | |
| 39 | + :id => 'link_logout', | |
| 40 | + :help => _('If you\'ll not use more this web site (for now), or will exit from this computer, <b>where other peple may use</b>, is better to click on this <i>Logout</i> link.') | |
| 41 | + ) %></li> | |
| 31 | 42 | |
| 32 | 43 | </ul> |
| 33 | 44 | </div><!-- id="user_menu_ul" --> |
| ... | ... | @@ -36,7 +47,8 @@ |
| 36 | 47 | |
| 37 | 48 | <%= lightbox_link_to '<span class="icon-menu-login"></span>'+ _('Login'), |
| 38 | 49 | { :controller => 'account', :action => 'login_popup' }, |
| 39 | - :id => 'link_login' %> | |
| 50 | + :id => 'link_login', | |
| 51 | + :help => _('Open the logion box to allow you to be recognized and to use the <b>cool functions</b> of this enviroment.') %> | |
| 40 | 52 | |
| 41 | 53 | <% end %> |
| 42 | 54 | ... | ... |