<% if current_user %> <%= csrf_meta_tags %> <% @ruling_timer_temp = RulingTimerTemp.where(:user=>current_user).first %> <% @ruling_timer_temp = RulingTimerTemp.new if @ruling_timer_temp.nil? %> <% @ruling_timer_temp.check_and_store %> <% @new_sub_tasks = RulingTimerSubTask.where(:user=>current_user,:status.ne=>"finish",:id.nin=>@ruling_timer_temp.sub_task_ids).to_a %>
<%=DateTime.now.new_offset('+08:00').strftime('%l:%M %p')%> <% if @ruling_timer_temp.status == "working" %> <%=t("ruling_timer.working")%> <% else %> <% if @ruling_timer_temp.status == "rest"%> 繼續 <% else %> <% if @ruling_timer_temp.all_work_times_seconds == 0 %> 打卡上班 <% else %> 記錄的下班時間 <% end %> <% end %> <% end %> <% if @new_sub_tasks.count != 0 %> <% end %>
<% end %>