From 3d71add63796c156e0c5f569a3c25add1216a38c Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sun, 27 Apr 2014 15:46:42 -0400 Subject: [PATCH] WIP, adding time entry index page --- app/views/time_entries/index.haml | 9 +++++++++ config/routes.rb | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 app/views/time_entries/index.haml diff --git a/app/views/time_entries/index.haml b/app/views/time_entries/index.haml new file mode 100644 index 0000000..e40505f --- /dev/null +++ b/app/views/time_entries/index.haml @@ -0,0 +1,9 @@ +%a{ class: "btn btn-default btn-lg", href: root_path} + %span{ class:"icon-home"} +%h2 Your Timesheet + +%p Total Hours Worked: #{@hours_worked} +%p Total Credits Available: #{@credits_available} + +%a{class: "btn btn-lg btn-block btn-primary", href: new_time_entry_path } Add Time Entry + diff --git a/config/routes.rb b/config/routes.rb index 8e666b0..2cdad74 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,7 +11,8 @@ Velocipede::Application.routes.draw do get 'task_lists/:id/edit' => "task_lists#edit", as: "edit_task_list" - get 'time_entries/new' => "time_entries#new", as: "new_time_entry" + get 'time_entries' => "time_entries#index", as: "time_entries" + get 'time_entries/new' => "time_entries#new", as: "new_time_entry" ########################### # API Routes