]> source.dussan.org Git - redmine.git/commitdiff
Move the "Log time" link on My page.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 15 Mar 2017 18:01:19 +0000 (18:01 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 15 Mar 2017 18:01:19 +0000 (18:01 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16407 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/my/blocks/_timelog.html.erb

index e5e36612dd5ebf7cc97968fae62c0f124ce8dc6f..83716d35eab4d111e9cc1d8440b68ad19793b0ec 100644 (file)
@@ -4,13 +4,13 @@ entries_by_day = entries.group_by(&:spent_on)
 %>
 
 <div class="contextual">
-  <%= 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', :title => l(:label_options) %>
 </div>
 
 <h3>
   <%= link_to l(:label_spent_time), time_entries_path(:user_id => 'me') %>
   (<%= l(:label_last_n_days, days) %>: <%= l_hours_short entries.sum(&:hours) %>)
+  <%= link_to l(:button_log_time), new_time_entry_path, :class => "icon-only icon-add", :title => l(:button_log_time) if User.current.allowed_to?(:log_time, nil, :global => true) %>
 </h3>