diff --git a/app/views/my/blocks/_timelog.html.erb b/app/views/my/blocks/_timelog.html.erb
index be8e05e..7953ee6 100644
--- a/app/views/my/blocks/_timelog.html.erb
+++ b/app/views/my/blocks/_timelog.html.erb
@@ -1,4 +1,7 @@
-
<%=l(:label_spent_time)%> (<%= l(:label_last_n_days, 7) %>)
+
+ <%= link_to l(:label_spent_time), time_entries_path(:user_id => 'me') %>
+ (<%= l(:label_last_n_days, 7) %>)
+
<%
entries = timelog_items
entries_by_day = entries.group_by(&:spent_on)
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 7b9c9e8..2cc9bf7 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -429,6 +429,14 @@ class TimelogControllerTest < ActionController::TestCase
assert_tag 'a', :attributes => {:href => '/time_entries/new'}, :content => /Log time/
end
+ def test_index_my_spent_time
+ @request.session[:user_id] = 2
+ get :index, :user_id => 'me'
+ assert_response :success
+ assert_template 'index'
+ assert assigns(:entries).all? {|entry| entry.user_id == 2}
+ end
+
def test_index_at_project_level
get :index, :project_id => 'ecookbook'
assert_response :success