diff --git a/app/views/attendance_tracker/today.html.erb b/app/views/attendance_tracker/today.html.erb new file mode 100644 index 0000000..ecc54c7 --- /dev/null +++ b/app/views/attendance_tracker/today.html.erb @@ -0,0 +1,63 @@ +
| Lecture | +Date | +Status | +Action | ++ |
|---|---|---|---|---|
|
+
+
+
+ Week <%= week_number %>
+
+
+
+ <% total_for_week = lectures.sum { |lecture| lecture.total_overall_time }.seconds %>
+ <%# TODO: Improve this figure, atm it is for lectures in week, not time spent in week (ie
+ prepping for lecture next week will count in next week not current week) %>
+ <% if total_for_week > 0 %>
+ (Total <%= humanise_duration(lectures.sum { |lecture| lecture.total_overall_time }.seconds) %>
+ )
+ <% end %>
+
+ |
+ ||||