From 6bc537f6f9d8318615fcc0098745645bb6ad79da Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 14 Mar 2017 18:25:23 +0000 Subject: [PATCH] Adds titles on icon links. git-svn-id: http://svn.redmine.org/redmine/trunk@16403 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/my_helper.rb | 7 +++++-- app/views/my/blocks/_issues.erb | 2 +- app/views/my/blocks/_timelog.html.erb | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/helpers/my_helper.rb b/app/helpers/my_helper.rb index 2a20a7bf2..5181def2d 100644 --- a/app/helpers/my_helper.rb +++ b/app/helpers/my_helper.rb @@ -34,8 +34,11 @@ module MyHelper def render_block(block, user) content = render_block_content(block, user) if content.present? - handle = content_tag('span', '', :class => 'sort-handle') - close = link_to(l(:button_delete), {:action => "remove_block", :block => block}, :remote => true, :method => 'post', :class => "icon-only icon-close") + handle = content_tag('span', '', :class => 'sort-handle', :title => l(:button_move)) + close = link_to(l(:button_delete), + {:action => "remove_block", :block => block}, + :remote => true, :method => 'post', + :class => "icon-only icon-close", :title => l(:button_delete)) content = content_tag('div', handle + close, :class => 'contextual') + content content_tag('div', content, :class => "mypage-box", :id => "block-#{block}") diff --git a/app/views/my/blocks/_issues.erb b/app/views/my/blocks/_issues.erb index bbd10af33..1b208a297 100644 --- a/app/views/my/blocks/_issues.erb +++ b/app/views/my/blocks/_issues.erb @@ -1,7 +1,7 @@ <% issues, query = issues_items(block, settings) %>
- <%= link_to_function l(:label_options), "$('##{block}-settings').toggle();", :class => 'icon-only icon-settings' %> + <%= link_to_function l(:label_options), "$('##{block}-settings').toggle();", :class => 'icon-only icon-settings', :title => l(:label_options) %>

diff --git a/app/views/my/blocks/_timelog.html.erb b/app/views/my/blocks/_timelog.html.erb index 23ccc8271..e5e36612d 100644 --- a/app/views/my/blocks/_timelog.html.erb +++ b/app/views/my/blocks/_timelog.html.erb @@ -5,7 +5,7 @@ entries_by_day = entries.group_by(&:spent_on)
<%= link_to l(:button_log_time), new_time_entry_path, :class => "icon icon-add" if User.current.allowed_to?(:log_time, nil, :global => true) %> - <%= link_to_function l(:label_options), "$('#timelog-settings').toggle();", :class => 'icon-only icon-settings' %> + <%= link_to_function l(:label_options), "$('#timelog-settings').toggle();", :class => 'icon-only icon-settings', :title => l(:label_options) %>

-- 2.39.5